Repository navigation
ci: install Rust for the Linux test shards and test-changed - #8630
Conversation
The lidge self-hosted Linux pool has no cargo, unlike ubuntu-latest, so on the dev batch run 43343080374 test 1/5 (lidge-ocx-12) failed tests/clients/link-ocx-child-e2e.test.ts with "neither cargo nor prebuilt ocx-child binary is available", and the ocx-child conformance run silently skipped. Install the stable toolchain with the same pinned dtolnay/rust-toolchain commit the other jobs use, in both jobs that run those tests, so the prerequisite is explicit on either runner kind.
Codex Review Summary: ✅ CompletedThis 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. |
|
✅ Deterministic PR hygiene checks passed. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Maintainer judgment (dev integration, MAINTAINERS.md maintainer-integration exception): merging without a second maintainer approval, as part of the DEV-RED repair for dev batch run 43343080374 (test 1/5, self-hosted lidge-ocx-12).
|
… cargo, and pin the edited ci.yml After #8630 the Linux test shards and test changed install cargo and run ocx-child's conformance suite through the Bun wrappers when those tests are selected; only fmt, clippy and the crate's own unit and lifecycle suites are left to this job. The last release-evidence entry pins the edited ci.yml blob.
…te-helper job The separate ocx-child job put ci.yml at 2040 lines, past the 2000-line file-size rule, and #8630 already gives the Linux shards cargo for the Bun wrappers. The remote_helper filter now also selects native/ocx-child/** and the conformance fixture, and remote-helper gains one Linux-only step that runs cargo fmt --check, clippy -D warnings and test --locked for native/ocx-child. The separate job and all of its wiring (filter output, env, gate needs, GATED_JOBS, expected_for) are gone, and the workflow tests are back to dev's. ci.yml is at 1996 lines; the release-evidence entry pins its new blob.
…8635) * ci: run fmt, clippy and the tests of native/ocx-child when a change touches it * ci: let an edit to ci.yml select the ocx-child job so it verifies itself * ci: approve the changed ci.yml in the release evidence policy, keeping the earlier entries * ci: select ocx-child for its conformance fixture, drop the cache, pin Rust 1.100.0, and refresh the policy blob in place * ci: say what the ocx-child job adds now that the Linux shards install cargo, and pin the edited ci.yml After #8630 the Linux test shards and test changed install cargo and run ocx-child's conformance suite through the Bun wrappers when those tests are selected; only fmt, clippy and the crate's own unit and lifecycle suites are left to this job. The last release-evidence entry pins the edited ci.yml blob. * ci: run ocx-child's fmt, clippy and tests as a Linux step of the remote-helper job The separate ocx-child job put ci.yml at 2040 lines, past the 2000-line file-size rule, and #8630 already gives the Linux shards cargo for the Bun wrappers. The remote_helper filter now also selects native/ocx-child/** and the conformance fixture, and remote-helper gains one Linux-only step that runs cargo fmt --check, clippy -D warnings and test --locked for native/ocx-child. The separate job and all of its wiring (filter output, env, gate needs, GATED_JOBS, expected_for) are gone, and the workflow tests are back to dev's. ci.yml is at 1996 lines; the release-evidence entry pins its new blob.
Append a ci policy entry, as #8630 did, keeping earlier entries: new blobs for scripts/test.ts and scripts/structure-ssot.ts, plus scripts/git-repository-env.ts, which both now import (the entry already pins scripts/test.ts's other direct imports). node --test .github/scripts/release-evidence.test.cjs: 26 pass, 0 fail.
…is inherited (#8652) * docs(devlog): plan test git environment isolation * test(harness): reproduce fixture git writing into an inherited GIT_DIR repository Red on purpose: the shared fixture helper still spawns git with the inherited environment and writes user.* with git config, so a hostile GIT_DIR/GIT_WORK_TREE lands user.name, user.email and core.worktree in the outer repository, and the script helpers read the outer index instead of the root they were given. * fix(test): keep test git off the developer's repository when GIT_DIR is inherited A test process that inherits GIT_DIR/GIT_WORK_TREE/GIT_INDEX_FILE (a hook, rebase --exec, bisect run, a --git-dir/--work-tree wrapper) sent every fixture git command to that repository: git init reinitialised it with core.worktree, git config wrote user.* into its .git/config, and add/commit landed in it. Bun.spawn without an env keeps the start environment, so scrubbing process.env alone cannot fix it. - scripts/git-repository-env.ts: git's --local-env-vars list and a scrub. - tests/helpers/git-fixture.ts: fixtureGitEnv (no inherited repo, no system/global config, identity via GIT_AUTHOR_*/GIT_COMMITTER_*) and repositoryGitEnv for checkout reads; every test-side git call passes one. initFixtureRepo writes no config. - createIsolatedTestEnvironment and the preload drop the variables; inspectChangedRun, test-layout move/verify, structure-ssot and file-size-ratchet scrub their git env. - tests/helpers/git-config-guard.ts: the preload fails a case after which the checkout's common .git/config changed core.bare/hookspath/worktree or user.name/email. - setup-hooks.test.ts passes a hostile base env instead of assigning process.env.GIT_DIR. * docs(devlog): record red/green and validation evidence for test git isolation * test(harness): keep the hash-pinned messages differential recorders byte-identical messages-sse-baseline-contract pins the SSE recorder's SHA-256 as provenance for its golden. The recorders are children doing read-only git reads of pinned commits and get their env from the parent test, so they keep their original bytes. * ci: pin the git-isolated scripts in the release evidence policy Append a ci policy entry, as #8630 did, keeping earlier entries: new blobs for scripts/test.ts and scripts/structure-ssot.ts, plus scripts/git-repository-env.ts, which both now import (the entry already pins scripts/test.ts's other direct imports). node --test .github/scripts/release-evidence.test.cjs: 26 pass, 0 fail. --------- Co-authored-by: lidge-jun <[email protected]>
Summary
On the dev batch (run 43343080374), job
test 1/5ran on the lidge self-hosted Linux pool (lidge-ocx-12) and failed both cases oftests/clients/link-ocx-child-e2e.test.tsatfindOrBuildOcxChildBinarywith "neither cargo nor prebuilt ocx-child binary is available". Other lanes on the same pool reported the same cause.ubuntu-latestships cargo, but the self-hosted image does not, and neither thetestnor thetest changedjob installed it. The prerequisite was only ever implicit in the hosted image. The same gap madetests/clients/link-ocx-child-conformance.test.tsskip its Rust conformance run silently there.This adds a
Setup Ruststep (stable toolchain) to both jobs, using the same pinneddtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74decommit as the existingremote-helper, desktop and release jobs. On a runner without rustup, the action installs it into the runner user's~/.cargoand adds that toPATH;tests/helpers/rust-toolchain-env.tsalready derivesCARGO_HOME/RUSTUP_HOMEfrom the proxy's location.native/ocx-childneeds Rust 1.90+, which stable satisfies. No test is skipped or changed. As #8605 did,.github/scripts/release-evidence-policy.jsongains acientry pinning the newci.ymlblob (6bf9d715ec); earlier entries and all other pinned files are unchanged.Verification
node --test .github/scripts/release-evidence.test.cjs: 26 pass, 0 fail (the PR's firstgatesrun failed only on the missing pin).bun test tests/ci-workflows tests/test-layout.test.ts: 1904 pass, 1 fail. The one failure,tests/ci-workflows/bun-runtime.test.ts> "PATH-selected process provenance survives durable selection and project dotenv", fails identically on unmodified dev on this host (19 pass, 1 fail on both), and the case does not readci.yml.NOT RUN: the self-hosted job itself. This PR's
test changedjob exercises the new step on whichever runner it lands on; the self-hostedtest N/5shards run on the maintainer's next dev batch.Checklist
persist-credentials: falseis unchanged; a separate security review is requested.)Summary by CodeRabbit