Repository navigation
ci: narrow native-host lane selection and reuse build caches - #2131
Conversation
Unowned src/ and bridge/ files no longer fall back to the full baseline. They run the Linux suite plus the Linux x64 installed-package/Inspector baseline. New apple and package scopes own the Apple artifact lane, the package matrix and the Windows curated lane, including the test files those lanes invoke. Manual-only verifier entrypoints run static checks and the Linux suite. CHANGELOG, SECURITY, GitHub templates and the native Windows README are documentation-only. Pull requests omit the macOS x64 package host unless labelled ci:full. The Windows and Apple lanes restore the shared Turbo build cache, the Windows lane drops its duplicate typecheck, and the Linux suite uses six shards. Main pushes keep the full baseline. 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. |
There was a problem hiding this comment.
💡 Codex Review
Lines 94 to 101 in e395e8c
When a PR changes only a package.json command such as verify:keyed-archive, its concrete entrypoint is scripts/verify/apple/keyed-archive.mjs, but the new Apple scope owns it through scripts/verify/apple/**. includes(entry) performs literal equality rather than glob matching, so scriptOwners is empty and the change falls through to full(...), unnecessarily scheduling every provider and native-host lane instead of the owning Apple lane. The same affects the new glob-owned Inspector and Windows verifier commands.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Script-only package.json edits resolved their entrypoint with literal equality, so glob-owned verifiers such as scripts/verify/apple/** and scripts/verify/inspector/** fell back to the full baseline instead of selecting their owning lane. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d2e75e2211
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "src/native/Apple*", | ||
| "src/native/NativeMacOS*", | ||
| "src/native/NativeUi*", | ||
| "src/native/Lldb*", |
There was a problem hiding this comment.
Include Mac provider dependencies in the Apple scope
When a PR changes an unlisted direct dependency such as src/native/NativeMachoInspection.ts or src/native/SignatureTargetBinding.ts, the planner treats it as generic runtime code and skips apple-artifacts. NativeMacOSProvider invokes both for inspect_macho/inspect_signature, and that lane's verifyNativeProvenance exercises those operations through the real CLI and MCP adapters, so Mac-specific regressions in them now surface only after merge. Add these Mac-provider implementation files (or an appropriate encompassing pattern) to the Apple scope.
AGENTS.md reference: AGENTS.md:L48-L48
Useful? React with 👍 / 👎.
Why
Replaying
scripts/ci/plan.mjsover the last 120 first-parent commits on main showed that 93/120 (77.5%) selected the full baseline. That means the 4-host package matrix, the Windows curated lane, the Apple macOS lane, NativeAOT and all 8 real-provider lanes. The main cause was theUnclassified inputfallback: almost everysrc/file without an owner landed there.Changes
appleandpackagescopes inscripts/ci/scopes.mjs. They own the Apple artifact lane and the package matrix plus Windows curated lane (Windows native, Inspector, setup/config, packaging entrypoints).src/**orbridge/**file selects the Linux suite plus the Linux x64 installed-package/Inspector baseline..agents/skills/**does the same and also selects docs.MANUAL_VERIFIERSlists real Ghidra/Hopper/IDA/Electron, client, JEB/apktool/ADB, packaged-Ghidra-Windows and WASM verifiers. No automatic lane runs them. A new test fails if an automatic workflow (ci.yml,workflow_callorpull_requestworkflows) ever reaches one throughnpm runornode scripts/....ci:full. Main pushes, schedule and dispatch keep it.CHANGELOG.md,SECURITY.md,.github/ISSUE_TEMPLATE/**,.github/pull_request_template.md,native/windows/README.md.npm run typecheck, which the Linuxstaticjob already runs, and restoresrea-build-cachebeforebuild:cached.rea-build-cachebefore itsbuild:cachedverifiers.Main pushes keep the full baseline.
CI requiredand all job names are unchanged.Replay (same 120 commits, PR event)
runtimehad been full only because it touched a manual verifier.Coverage tradeoffs
src/application,src/domain,src/artifacts, …) can fail only on arm64, macOS, Windows, the Apple lane, or a provider lane that does not own the file. Such a failure is no longer caught on the PR; the main-push full baseline reports it after merge. Ownership globs do not follow imports. Useci:fullwhen a change may have effects on other hosts or providers.ci:full. Main pushes still do.packageimpliesruntime.Validation
npm run test:focused -- tests/boundary/filesystem/ciChangeScope.test.ts tests/process-global/curatedWindowsLane.test.ts: 80 passednpm run check:fast,npm run docs:check: passactionlint1.7.7 (-shellcheck= -pyflakes=): pass🤖 Generated with Claude Code