fix: resolve E2E test dependency graph failures - #307
Conversation
…st environment; update dependency overrides in pnpm-workspace.yaml to resolve vulnerabilities
… pnpm-workspace.yaml
Reviewer's GuideAligns workspace dependency catalog/overrides, centralizes React and Azure Storage Queue versions, and fixes E2E/turbo build graph plus a staff-role repository test to resolve dependency graph and runtime issues. Flow diagram for corrected Turbo E2E build dependency graphflowchart TD
subgraph Core_services
server_mongodb_memory_mock[server-mongodb-memory-mock]
server_oauth2_mock[server-oauth2-mock]
service_queue_storage[ocom service-queue-storage]
end
e2e_tests[ocom-verification e2e-tests]
server_mongodb_memory_mock --> e2e_tests
server_oauth2_mock --> e2e_tests
service_queue_storage --> e2e_tests
e2e_tests --> acceptance_ui_build[acceptance UI build/tests]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've found 1 issue, and left some high level feedback:
Fixed security issues:
-
@opentelemetry/propagator-jaeger (link)
-
@vitest/browser (link)
-
axios (link)
-
fast-uri (link)
-
postcss (link)
-
react-router (link)
-
svgo (link)
-
websocket-driver (link)
-
React and react-dom are now sourced from the catalog in several packages; consider standardizing remaining packages that still pin React versions directly to "catalog:" for consistency and easier central version management.
-
The updated staff-role.repository test now uses String(staffRoleDoc._id) for ID comparison; if _id can be a non-primitive (e.g., ObjectId), consider normalizing via toString() or adjusting the mock type to avoid subtle mismatches between test and runtime behavior.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- React and react-dom are now sourced from the catalog in several packages; consider standardizing remaining packages that still pin React versions directly to "catalog:" for consistency and easier central version management.
- The updated staff-role.repository test now uses String(staffRoleDoc._id) for ID comparison; if _id can be a non-primitive (e.g., ObjectId), consider normalizing via toString() or adjusting the mock type to avoid subtle mismatches between test and runtime behavior.
## Individual Comments
### Comment 1
<location path="pnpm-workspace.yaml" line_range="141" />
<code_context>
immutable: 3.8.3
launch-editor: ^2.14.1
- 'react-router-dom@7.15.0>react-router': 7.15.1
+ 'react-router-dom@7.18.0>react-router': 8.3.0
sequelize: 6.37.8
smol-toml: 1.6.1
</code_context>
<issue_to_address>
**issue (bug_risk):** Mapping react-router-dom 7.18.0 to react-router 8.3.0 may create version skew and potential runtime issues.
`react-router-dom` 7.x is designed to work with `react-router` 7.x. Pinning `react-router` 8.3.0 under `react-router-dom@7.18.0` may introduce subtle incompatibilities if peer requirements don’t match. Consider keeping them on the same major unless this pairing has been explicitly tested and verified.
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
@sourcery-ai review |
There was a problem hiding this comment.
Hey - I've left some high level feedback:
Fixed security issues:
-
@opentelemetry/propagator-jaeger (link)
-
@vitest/browser (link)
-
axios (link)
-
fast-uri (link)
-
postcss (link)
-
react-router (link)
-
svgo (link)
-
websocket-driver (link)
-
Now that React and react-dom are sourced from the catalog in several workspaces, consider also centralizing related typings (e.g. @types/react) and any remaining direct React version pins to avoid subtle version drift across packages.
-
You’ve moved @azure/storage-queue to the catalog; review other Azure client libraries in the workspace (e.g. @azure/identity, @azure/storage-blob) for similar catalog usage to keep cross-service versions aligned and simplify future upgrades.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Now that React and react-dom are sourced from the catalog in several workspaces, consider also centralizing related typings (e.g. @types/react) and any remaining direct React version pins to avoid subtle version drift across packages.
- You’ve moved @azure/storage-queue to the catalog; review other Azure client libraries in the workspace (e.g. @azure/identity, @azure/storage-blob) for similar catalog usage to keep cross-service versions aligned and simplify future upgrades.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Summary
Verification
pnpm run test:e2epnpm run test:acceptancepnpm run test:coveragepnpm run buildpnpm run auditSummary by Sourcery
Resolve E2E build dependency graph issues and align workspace dependencies with updated, secure catalog versions, including new Azure Storage Queue catalog entry and React stack upgrades.
Bug Fixes:
Enhancements:
Build:
Tests:
Chores: