Repository navigation
test: align stale fixtures with recent native and launcher contracts - #6945
Merged
Merged
Conversation
… lost 41e10b2 made a bound metadata target that fails the source boundary (`path`) or disappears (`ENOENT`) report AnalysisArtifactChangedError, as its comment and docs/testing.md state, but left the module test expecting AnalysisInputError. The test now asserts the shipped contract, so main's Test shard and Portable tests lanes pass again. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis 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. |
…tures c2caae8 moved launcher environment preparation into scripts/lib/cli-process-environment.mjs, made scripts/rea.mjs import it and made verifyPackagePack require it in the packed listing, and updated the dispatcher fixtures, but two other fixtures still omit it: - packageTarListing's fake tar listing, so every case stops at "package omitted the CLI process environment owner" before its own assertion; - deferredRuntime's copied compiled package, so the copied launcher fails to resolve its import instead of reporting the corrupted catalog. Both fixtures now include the module, as the package ships it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
9f5dd56 records a successful `plutil -lint` of an XML plist source in provenance, as docs/native-investigation.md states, but the macOS typed-value CLI test still expected only the `file` step for both formats. XML sources now expect the lint step; binary sources are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
3 tasks done
11 of 22 tasks
This was referenced Oct 24, 2026
This was referenced Oct 24, 2026
This was referenced Oct 24, 2026
This was referenced Oct 26, 2026
shoyann
added a commit
to shoyann/rea
that referenced
this pull request
Oct 26, 2026
Bring in the upstream Apple metadata error-contract tests (morluto#6945) and Webpack factory fixture correction (morluto#6951). Preserve the five-file physical symlink target fix relative to main.
3 tasks done
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.
What broke: three recent maintainer commits changed contracts on purpose but left fixtures behind, so main's required Source tests, Test shard and Portable tests lanes fail (plus the macOS Real Apple lane).
The fix: align the stale fixtures with the shipped contracts: 41e10b2 (bound-target errors), c2caae8 (launcher's
scripts/lib/cli-process-environment.mjs) and 9f5dd56 (XML plist lint provenance).Risk: test-only; no production code changes.
Summary
41e10b2 (
fix(filesystem): distinguish admission and bound-target failures) changedappleDispatchMetadataPrimaryFailure. A bound metadata target that fails the source boundary (ArtifactReaderFailurereasonpath), or whose read fails withENOENT, now reportsAnalysisArtifactChangedErrorinstead ofAnalysisInputError. The code comment there and the newdocs/testing.mdparagraph both state this: "Each refusal must reportartifact_changed". The module test was not updated and still expectsAnalysisInputError, so it fails on every main run since then (e.g. CI run 40059009782 on ae24b78, Test shard (1/6)). This blocks every open PR's required checks. No issue is linked; this is a main-health fix.Two more stale fixtures fail on main's later commits (e.g. CI run 40061496630 on 915e56e), and they're fixed here too:
refactor(cli): share process environment preparation) moved launcher environment preparation intoscripts/lib/cli-process-environment.mjs, madescripts/rea.mjsimport it, and madeverifyPackagePackrequire it in the packed listing. It updateddispatcher.test.tsbut not:tests/boundary/process/packageTarListing.test.ts: its fake listing omits the module, so all 3 cases stop atpackage omitted the CLI process environment owner.tests/boundary/mcp/deferredRuntime.test.ts: its copied compiled package omits the module, so the copied launcher fails with an ESM resolve error instead ofSERVER_START_FAILED.fix(native): validate XML plist source admission) records a successfulplutil -lintof an XML source in provenance (documented indocs/native-investigation.md). The macOS-onlytests/boundary/cli/nativePlistCli.test.tstyped-value case still expected onlyfilefor both formats. XML now expects the lint step; binary is unchanged.Problem and expected behavior
npm run test:local -- src/native/AppleDispatchMetadata.failure.test.tson main →expected 'AnalysisArtifactChangedError' to be 'AnalysisInputError'(2 of 5 tests).EACCES/EPERM) staysAnalysisAccessDeniedError;integrity,pathandENOENTareAnalysisArtifactChangedError.Change and scope
src/native/AppleDispatchMetadata.failure.test.ts: expectations and names describe a bound target.packageTarListing.test.tsanddeferredRuntime.test.tsfixtures includescripts/lib/cli-process-environment.mjs, asdispatcher.test.tsalready does.nativePlistCli.test.tsexpects the XML lint provenance step.tests/boundary/mcp/nativeDispatchBoundTarget.test.ts.javascriptStaticAnalysis.routeProperties,javascriptSemanticAnalysis.reference_lifetimes) are separate and not addressed here.Contract and boundary impact
src/native/AppleDispatchMetadata.ts); unchanged here.docs/public/product-catalog.json), package, or installation impact: none.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
src/native/AppleDispatchMetadata.failure.test.ts,tests/boundary/process/packageTarListing.test.ts,tests/boundary/mcp/deferredRuntime.test.ts,tests/boundary/cli/nativePlistCli.test.ts.expected 'AnalysisArtifactChangedError' to be 'AnalysisInputError'. On 21a2030 without this PR,npm run test:focusedfailsdeferredRuntime(ESM resolve error),packageTarListing(3 cases) andnativePlistCliXML typed values (extraplutilprovenance entry), all locally on macOS.For evidence-bearing changes:
Validation performed
npm run test:local -- src/native/AppleDispatchMetadata.failure.test.ts(on 21a2030 + this PR): 5 passed.npm run test:local -- src/native/AppleDispatchMetadata.failure.test.ts src/native/AppleDispatchMetadata*.test.ts: 2 files, 109 tests passed.npm run test:focused -- tests/boundary/process/packageTarListing.test.ts tests/boundary/cli/nativePlistCli.test.ts(macOS, on 21a2030 + this PR): 2 files, 21 tests passed.npm run test:focused -- tests/boundary/mcp/deferredRuntime.test.ts: 29 passed.npm run check:fast: passed.npm run format:check: passed.Compatibility, safety, and release
Author readiness
Human owner: @kaoru0822-kitauji
Before merge
type(scope): outcome.🤖 Generated with Claude Code