-
Notifications
You must be signed in to change notification settings - Fork 232
Use vitest v3, Resolve GHSA-9crc-q9x8-ghqq #7340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
aruniverse
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why didn't rush catch this?
The mismatched dependencies were in the pnpm lockfile. Some were '2.1.1', while others were '2.1.0'. I guess rush doesn't catch mismatched deps that are in lockfiles |
|
setting back to draft for now, circling back to fix regression for vitest/browser at a later point |
|
Marked as active again - I had to update the setup file for core frontend to import the barrel file. Vitest now inlines setup files into test files , messing up dependency resolution in test files and reintroducing circular imports otherwise |
|
This pull request is now in conflicts. Could you fix it @hl662? 🙏 |
Pull request was converted to draft
dassaf4
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
core-geometry looks good
|
@Mergifyio backport release/4.10.x release/4.11.x |
✅ Backports have been createdDetails
|
Co-authored-by: Arun George <[email protected]> (cherry picked from commit ffa6c0f) # Conflicts: # common/config/rush/pnpm-lock.yaml # core/bentley/package.json # core/common/package.json # core/frontend/src/test/setupTests.ts # core/geometry/package.json # core/quantity/package.json
Co-authored-by: Arun George <[email protected]> (cherry picked from commit ffa6c0f) # Conflicts: # common/config/rush/pnpm-lock.yaml # core/bentley/package.json # core/common/package.json # core/frontend/src/test/setupTests.ts # core/geometry/package.json # core/quantity/package.json
…port #7340) [release/4.11.x] (#7714) Co-authored-by: Nam Le <[email protected]> Co-authored-by: Arun George <[email protected]> Co-authored-by: chuckkir <[email protected]> Co-authored-by: naveedkhan8067 <[email protected]>
Co-authored-by: Arun George <[email protected]>
Resolve GHSA-9crc-q9x8-hgqq
Consume vitest 3.0.5 (and adjacent vitest packages like
browser,coverage-v8.All vitest deps follow the same version number, to avoid dependency mismatch warnings when running tests.
Bump core-geometry's global testTimeout to a minute - there's no slowdown to the CI times or locally, since the tests are running in parallel.
Drop coverage reporting in core-frontend until the dynamic imports issue can be resolved (Opened issue).
Import core-frontend's barrel file before running any core-frontend test suite.
Enable parallel tests in core-frontend again. (This helps counteract the performance slowdown importing the barrel file above will have)