Repository navigation
test(javascript): retain resource ownership in deep-return fixture - #1644
Merged
morluto merged 1 commit intoOct 10, 2026
Merged
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
10 tasks done
7 tasks done
Owner
|
Thanks for catching the missed caller-owned scope in the deep-return child, @evenafterallisaid. Reusing the owned-scope helper makes the regression await cleanup and still exercise the deep-return path, with no new production wrapper. That closes a real CI gap. |
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
migrate the deep-return test's embedded child script to the existing JavaScript analysis helper that owns and closes an artifact resource scope. this repairs the test failure introduced by the caller-owned scope API migration.
problem and expected behavior
ffe0574 requires an
ArtifactResourceScopefor direct JavaScript analysis calls. this test's JavaScript string still called the compiled service without that argument, so typechecking did not catch the missed migration. it now fails withCannot read properties of undefined (reading 'run')before exercising deep-source analysis.the test should retain its default-stack regression while owning and awaiting artifact cleanup. the same failure appears in shard 4 of #1642: one test failed, 1523 passed, and 14 skipped. the source-map changes in that pr do not modify this call.
no issue is linked because this was identified directly from the ci failure; existing issues and prs were checked for overlap.
change and scope
the child imports
analyzeJavaScriptApplicationWithOwnedScopefrom the existing verifier helper and reads its returned Evidence. the helper already passes a fresh scope to the real compiled analyzer, closes it on success or failure, and propagates analysis and cleanup errors. no new wrapper or production behavior is added.contract and boundary impact
evidence and regression coverage
0fa0b046with the sameundefined.runerror as ci; it passes after the migration.validation performed
npm run test:focused -- tests/boundary/filesystem/javascriptApplicationDeepReturns.test.tsbefore the edit — failed with the ci error.npm run check— passed, including typecheck, lint, formatting, module boundaries, metadata, knip, and architecture guards; 635 lint warnings, zero errors.git diff --check— passed.compatibility, safety, and release
review checklist