Repository navigation
test(javascript): give the worker checkpoint fixture the coverage its producer always writes - #11093
Merged
Merged
Conversation
… producer always writes
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
[Low impact] This fixture-only change appears safe to merge. SummaryAdds the required
Reviews (1) · Last reviewed commit: "test(javascript): give the worker checkp..." · Reviewed by Greptile |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Since #10990 (15de1d4) the JavaScript worker's static checkpoint schema requires
analysis_coverage, which the producer always writes. The shared test fixturetests/fixtures/javascriptWorkerCheckpoint.tsstill omitted it, so every worker-protocol test that hands that fixture to the real worker parser fails onmainwithAnalysisOutputError(analysis_coverage: expected object, received undefined) instead of reaching the behaviour under test. #10990 was merged by the local gate, which runs typecheck/lint/guards but not tests, so this did not surface before merge.Problem and expected behavior
On
main,npm run test:focused -- tests/boundary/javascript/workerOrderAudit.test.ts tests/boundary/javascript/workerFailureComposition.test.tsfails 9 tests (4 + 5). Expected: the fixture is a valid "minimal complete static checkpoint", so those tests exercise frame ordering, cancellation and checkpoint-read failures rather than a schema refusal.Change and scope
analysis_coveragerecord (syntax complete with 0 errors, no unknown findings or uncertainty, complete examination, Electron applicability unknown) to the shared fixture. No production code changes.Contract and boundary impact
javaScriptWorkerStaticAnalysisSchema) is unchanged; only the test fixture now matches it.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
workerOrderAudit.test.tsandworkerFailureComposition.test.ts.origin/main(29dd58c),workerOrderAudit.test.tsfails 4 of 35 andworkerFailureComposition.test.tsfails 5 of 13, each with theanalysis_coverageschema refusal.Validation performed
npm run test:focused -- tests/boundary/javascript/workerOrderAudit.test.ts tests/boundary/javascript/workerFailureComposition.test.tson main without the fix: 9 failed (4 + 5).Compatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.