Skip to content

ci: lint and test ocx-child as a Linux step of the remote-helper job - #8635

Merged
lidge-jun merged 7 commits into
devfrom
ci/ocx-child-cargo
Nov 13, 2026
Merged

lidge-jun merged 7 commits into
devfrom
ci/ocx-child-cargo

Conversation

@lidge-jun

@lidge-jun lidge-jun commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Summary

No CI job runs cargo fmt, cargo clippy or the crate's own tests for the Rust lightweight Child (native/ocx-child). Since #8630 the Linux test shards and test changed install cargo, so the Bun wrappers there build ocx-child and run its conformance suite, but only when those tests are selected (the shards run on a pull request only with ci:full or a CI change). Nothing lints the crate, and its unit tests and its process-level lifecycle_guards and relay_and_lifecycle suites run nowhere.

Change. The existing remote-helper job now covers both Rust crates:

  • the remote_helper path filter also selects native/ocx-child/** and tests/fixtures/link/ocx-child-conformance.json (the fixture the crate's conformance tests read);
  • remote-helper gains one step, if: runner.os == 'Linux', that runs cargo fmt --check, cargo clippy --locked --all-targets -- -D warnings and cargo test --locked for native/ocx-child/Cargo.toml;
  • the filter comment and the job comment are reworded in place.

The step reuses the job's checkout, its dtolnay/rust-toolchain step (same pinned commit), its gate entry (CHANGES_REMOTE_HELPER already means requested) and its filter-output validation. No job, output, gate key or GATED_JOBS entry is added. ci.yml grows by 8 lines, to 1996.

What this costs.

  • The toolchain is remote-helper's floating stable, which that job already uses. A new stable clippy lint can therefore fail pull requests for either crate until it is fixed.
  • A pull request that touches one crate now also runs the other crate's Linux checks: an ocx-child change runs the helper's fmt, clippy and tests (about a minute), and a helper change runs ocx-child's (about 30 s).
  • On a full lane=all dispatch, remote-helper runs on Ubuntu, macOS and Windows; the new step runs on Ubuntu only, so the other two legs neither gain nor lose anything.
  • ci.yml has three lines of headroom left under the 2000-line rule in tests/ci-workflows/file-size-ratchet.test.ts.

Security review (workflow change). No action is added or changed. The step runs cargo on repository files inside the existing job, which keeps contents: read, persist-credentials: false and no secrets. Release evidence: .github/scripts/release-evidence-policy.json keeps every entry dev has, byte for byte. It gains one new approved ci entry last, identical to dev's newest entry except for this pull request's final ci.yml blob ID (git hash-object --no-filters). release-evidence.cjs and its job list are unchanged.

Stays inert by default. Pull requests that touch neither Rust crate nor the conformance fixture see no change; the remote-helper job is not selected for them, as before.

Requested in the final review of #8612 (O5), which changes native/ocx-child; kept separate so that pull request does not need workflow review.

Verification

Test that failed first: tests/ci-workflows/ci-scope-gaps.test.ts gains "an edit to ocx-child or its conformance fixture alone". It checks four things: the remote_helper filter selects native/ocx-child/src/cli.rs and the fixture; the crate path alone starts no full suite; the remote-helper step that names native/ocx-child/Cargo.toml is if: runner.os == 'Linux' and runs the three commands; no other job names that manifest. Against dev's ci.yml it fails, and with this change it passes. The other workflow tests (ci-review-lanes, ci-privacy-gate, the checkout count) are back to dev's content.

At head 6ad1483:

  • node .github/scripts/release-evidence.cjs policy-check: exit 0. node --test .github/scripts/release-evidence.test.cjs: 26 pass, 0 fail.
  • bun test tests/ci-workflows/file-size-ratchet.test.ts: 9 pass, 0 fail (ci.yml at 1996 lines).
  • bun test on ci-scope-gaps, ci-review-lanes, ci-privacy-gate, ci-scope-reduction, ci-workflows, ci-bun-install-frozen and file-size-ratchet: 25 fail, all of which also fail on an export of origin/dev run on this machine. They need GNU timeout (bun-install-frozen.sh retry policy), a working git in a subprocess (Windows diff scan), or finish past the 5 s timeout (setup-project-bun pin resolution). No case fails only on this branch.
  • The step's three commands with the current stable (Rust 1.100.0, clippy 0.1.100) on macOS arm64:

NOT RUN: the full bun run test; bun run test:changed; the new step on a Linux runner. The remote_helper filter does not list ci.yml, so this pull request's own checks do not select remote-helper. The step first runs on the next pull request that touches either crate or the fixture, or in the next batch lane=all run on dev. Adding ci.yml to the filter would make a workflow edit verify the step, at the cost of one more line (1997) and of the Rust jobs running on every ci.yml change.

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed (no user-facing change).
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults: workflow change adding one step to an existing job, with no new action, read-only permissions and no secrets; it needs the maintainer security review MAINTAINERS.md requires for workflow changes.

@coderabbitai

coderabbitai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions github-actions Bot added the chore Maintenance, CI, tests, refactors, or build changes (not a user-facing bug or feature). label Nov 13, 2026
@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

… Rust 1.100.0, and refresh the policy blob in place
# Conflicts:
#	.github/scripts/release-evidence-policy.json
… 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.
@lidge-jun lidge-jun changed the title ci: run fmt, clippy and tests for native/ocx-child when it changes ci: lint and test ocx-child as a Linux step of the remote-helper job Nov 13, 2026
@lidge-jun
lidge-jun marked this pull request as ready for review November 13, 2026 06:06
@lidge-jun
lidge-jun requested a review from Ingwannu as a code owner November 13, 2026 06:06
@lidge-jun
lidge-jun merged commit 0c0888b into dev Nov 13, 2026
34 checks passed
@lidge-jun
lidge-jun deleted the ci/ocx-child-cargo branch November 13, 2026 06:07
@lidge-jun

Copy link
Copy Markdown
Owner Author

Maintainer integration record.

  • Merged at head 6ad148343e5dbe4f0d60b5928659530e5395fadc with every requested check green on that head (25 success, 9 skipped as not requested; two PR gates runs succeeded on it).
  • Explicit security review on that exact head (fresh reviewer, read-only): no P0, P1 or P2. It confirmed that the workflow's triggers and permissions are unchanged, the new step has no expression in run:, no secrets and no cargo install, the job runs on a GitHub-hosted runner for every pull request, nothing remains of the earlier separate-job shape, and the release-evidence policy gains exactly one entry (dev's 14 entries byte-identical, the new entry pinning this ci.yml blob with the other 25 paths equal to dev), so a lane=all run proves no less than before.
  • Two P3 notes from that review: the description said "on a schedule or a full lane=all dispatch", but ci.yml has no schedule trigger (corrected in the description after the merge); a failing helper step skips the ocx-child step in the same run (left as is: the job still fails, and changing it would mean another policy re-pin).
  • Not exercised yet: this PR's own run skipped remote helper because the filter does not list ci.yml. The step first runs on the next pull request that touches either Rust crate or the conformance fixture, or in the next lane=all run on dev.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T06:08:38.869815Z 6ad1483 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

lidge-jun added a commit that referenced this pull request Nov 13, 2026
Brings in dev through 6f58f62, including #8612 (recover a
force-revoked ephemeral Child by its link id: tombstones, ocx link
recover), #8635 and #8644.

Conflict resolution in removeReserved keeps both sides: dev's tombstone
is written before the first intent for a forced revoke of an ephemeral
Child, with this PR's cleanup condition (cleanup already recorded by
the owner's journal is not rerun); every way out that does not commit
(claim failure, a changed record, a failed key revoke or journal
intent, the post-commit catch) drops the force's own tombstone, which
dev's helper does only while the link still exists; a committed
non-force removal settles earlier tombstones of the link. remove()
admits the alias lock for a tombstoned alias using the removal
target's record. The generated skill surface was regenerated.
lidge-jun added a commit that referenced this pull request Nov 13, 2026
One conflict, docs-site/src/content/docs/es/guides/remote-link.md: this branch's
journal paragraph and #8612's recover paragraph are kept in the English page's
order (journal, then recover). The generated skills reference is regenerated on
the merged tree (51 declared capabilities); everything else merged on its own.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance, CI, tests, refactors, or build changes (not a user-facing bug or feature).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant