Repository navigation
fix(reporters): fix missing testModules in onTestRunEnd when merging blobs from different root directory test runs - #10348
Merged
Conversation
Co-authored-by: Codex <noreply@openai.com>
✅ Deploy Preview for vitest-dev ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
onTestRunEnd(testModules) when merging blobs from different root directory test runsonTestRunEnd(testModules) when merging blobs from different root directory test runs
hi-ogawa
commented
May 14, 2026
Comment on lines
+58
to
+65
| // merge-reports forces the original task id from the test run | ||
| taskIdOverride?: string, | ||
| ) { | ||
| const projectName = project.config.name | ||
| this.taskId = generateFileHash( | ||
| this.taskId = taskIdOverride ?? generateFileHash( | ||
| relative(project.config.root, moduleId), | ||
| projectName, | ||
| metaOverride ?? { typecheck: pool === 'typescript', __vitest_label__: project.config.mergeReportsLabel }, | ||
| { typecheck: pool === 'typescript', __vitest_label__: project.config.mergeReportsLabel }, |
Collaborator
Author
There was a problem hiding this comment.
We were trying hard to replay taskId hash by passing metaOverride, but it turned out the hash can be still off because of relative(project.config.root, moduleId). So, we now ditch hash replay entirely and just pass over taskIdOverride from the real test run instead.
onTestRunEnd(testModules) when merging blobs from different root directory test runstestModules in onTestRunEnd when merging blobs from different root directory test runs
hi-ogawa
added a commit
to hi-ogawa/vitest
that referenced
this pull request
May 14, 2026
hi-ogawa
marked this pull request as ready for review
May 14, 2026 10:06
sheremet-va
previously approved these changes
May 14, 2026
3 of 7 tasks
sheremet-va
approved these changes
May 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
TestModulewhen merging blobs from different platform/root #10347The missing
testModulesinonTestRunEndwas due toTestSpecification.taskIdmismatches during merge reports. See the comment below for details.Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
pnpm-lock.yamlunless you introduce a new test example.Tests
pnpm test:ci.Documentation
pnpm run docscommand.Changesets
feat:,fix:,perf:,docs:, orchore:.