Skip to content

ci(rust): call the proven rust-ci reusable for every crate - #712

Merged
hyperpolymath merged 9 commits into
mainfrom
ci/proven-rust-ci
Nov 26, 2026
Merged

hyperpolymath merged 9 commits into
mainfrom
ci/proven-rust-ci

Conversation

@hyperpolymath

@hyperpolymath hyperpolymath commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Summary

Stacks on #707 (its signed fmt commit 752c785 is this branch's parent; merge #707 first).

Calls the estate's proven rust-ci.yml reusable (hyperpolymath/proven-cicd-and-workflows@50a443f01b1b85e4957b893a6f1a0ed2e8a52459) once per crate, from a new reusables-only workflow .github/workflows/rust-proven.yml (lock entry [], like secret-scanner.yml; Scorecard's action-lock reconciliation rejects a file mixing step pins with a job-level remote reusable):
robot-repo-automaton, shared-context, dashboard (doctests: false, binary-only), bots/rhodibot, bots/panicbot, bots/ponsbot, idris-dependents.

  • The local CI/gate job in rust.yml is kept unchanged (matrix, dispatch contracts, GSBot); the rust-ci verdicts are required directly instead.
  • The old build · test · clippy (…) matrix stays until required checks are swapped; a follow-up removes it.
  • rustdoc fixes so cargo doc -D warnings passes (URL tables fenced as text, broken intra-doc links / bare generics made code spans).
  • Lockfile-only Cargo.lock updates so cargo-deny (advisories, bans, sources) is clean in all 7 crates.
  • Pinned-source closure: new source entry + dependency records in scripts/lib/pinned-reusable-sources.json, and 5 reviewed rows in scripts/lib/lock-closure-receipts.tsv.
  • The secret-scanner historical-projection fixture now strips only the 1fd5e63 scanner receipts it replaces (it removed every proven-cicd row, including the new rust-ci ones); its SHA256SUMS line is refreshed.

e2e.yml is unchanged: no proven reusable exists yet for E2E tests or pinned-source closure (to be built in the proven repo).

Local verification

  • All 7 crates: check, clippy, fmt, test, doc (+ doctest) pass with -D warnings (one test fails locally only because the container runs as root).
  • cargo deny check advisories bans sources: clean on all 7.
  • audit-pinned-reusable-sources.sh --fetch-sources: findings=0 (live and historical-projection trees); audit-lock-closure.sh: fatal=0, review=0; pinned-source-entrypoints-test.sh 9/9; migration preflight exit 0.
  • Not verified locally: CI's gh actions-lock regeneration step.

Owner steps (required checks on main)

  1. Merge fix(ci): turn main green: hypatia pin closure + clippy needless_bool + url 2.5.9 (carries #705 and #706 fixes) #707.
  2. Add the new contexts once green: rust-ci (<crate>) / Rust CI verdict for each of the 7 crates.
  3. Later, remove build · test · clippy (robot-repo-automaton|shared-context|dashboard) and approve the follow-up PR that deletes the matrix.

Generated by Claude Code

Summary by CodeRabbit

  • New Features
    • Added automated Rust validation for multiple project components on pushes, pull requests, and manual runs.
  • Bug Fixes
    • Updated a migration fixture so it preserves receipts associated with other commits.
  • Documentation
    • Clarified several Rust documentation examples and references.

claude and others added 6 commits November 22, 2026 15:08
…ed Pinned source closure)

Dependabot #699 moved the scanner-credential pin to f2c06048 without
updating the source manifest or receipts. Blob 15c597e is identical at both
commits, so only the commit binding changes; nested uses are unchanged.
Return the any() result directly instead of an if guard that returns a
bool literal followed by a literal false. Behaviour is unchanged; newer
stable clippy rejects the old form under -D warnings.

(cherry picked from commit 6ddc6dc)
url <= 2.5.8 recurses in Url::origin() on blob: URLs. Lock url to 2.5.9
with 'cargo update -p url --precise 2.5.9'; form_urlencoded moves from
1.2.2 to 1.2.3 with it. Only bots/gsbot/Cargo.lock changes. gsbot builds
and its tests pass with --locked.

(cherry picked from commit 6bfdde7)
…le workflow repins

<!-- coderabbit-ai-generated:v1 -->
cargo fmt --check failed the Rust build/test/clippy job on #707 (two
assert_eq! calls over the line width). Formatting only; no logic change.
Adds one caller job per crate (robot-repo-automaton, shared-context,
dashboard, rhodibot, panicbot, ponsbot, idris-dependents) on
hyperpolymath/proven-cicd-and-workflows rust-ci.yml, pinned at
50a443f01b1b85e4957b893a6f1a0ed2e8a52459 and de-onboarded from
actions.lock. CI/gate now also needs these callers. The existing
`build · test · clippy (<crate>)` matrix stays until branch rules
require the new `rust-ci (<crate>) / ...` contexts.

To pass the stricter gate:
- rustdoc: fence the URL tables in registry_guard.rs (two crates), link
  `overlay` by path in rhodibot, code-span `<repo>` and `Option<usize>`
  in panicbot.
- cargo-deny advisories: lockfile-only updates (no manifest changes)
  of url 2.5.9, rustls/rustls-webpki/webpki-roots/webpki-root-certs,
  libz-sys, rustix 1.1.6, crossbeam-epoch, h2, ctutils and tokio 1.53.3.
- Pinned source closure: record the reusable's blob, sha256, callers
  and nested uses in pinned-reusable-sources.json, its emitted closure
  receipt in lock-closure-receipts.tsv, and dependency records for
  setup-zig, rust-cache and install-action.
@gitnotebooks

gitnotebooks Bot commented Nov 26, 2026

Copy link
Copy Markdown

…filter

Move the seven job-level rust-ci callers from rust.yml into
rust-proven.yml, a file of reusable calls only (actions.lock entry []),
like secret-scanner.yml and scorecard.yml. Scorecard's native
action-lock reconciliation rejects a workflow that mixes step pins with
a job-level remote reusable. The local CI/gate job in rust.yml again
needs only the matrix, dispatch contracts and GSBot; branch rules
require the rust-ci verdict contexts directly.

The secret-scanner historical projection removed every
proven-cicd-and-workflows receipt row, so the new rust-ci@50a443f rows
vanished from the disposable tree and the source audit reported a
receipt mismatch. Remove only the 1fd5e63 scanner source rows it
replaces, and refresh the fixture's SHA256SUMS line.

Copy link
Copy Markdown
Owner Author

Rust (proven) (rust-proven.yml) ends startup_failure with zero jobs on df330e4 — and the same callers already startup-failed rust.yml on b659a88, so no rust-ci (<crate>) context has run yet.

What is ruled out: callee permissions (contents: read only) and inputs (working_directory, doctests) match; swatinem and dtolnay actions already run here (panicbot-sweep.yml).

Most likely cause: the callee (rust-ci.yml, every SHA) also uses goto-bus-stop/setup-zig and taiki-e/install-action, which have never run in this repo. proven-cicd-and-workflows' README documents that a caller whose Actions allowlist lacks a callee's action owner startup-fails with "The action … is not allowed".

Blocked on: the run page's startup error message, or this repo's Settings → Actions → General allowed patterns. Neither is readable from my session. If the allowlist is the cause, adding goto-bus-stop/setup-zig@* and taiki-e/install-action@* (SHA pinning stays required) should let the callers start; no code change needed.


Generated by Claude Code

@hyperpolymath
hyperpolymath marked this pull request as ready for review November 26, 2026 01:39
@chatgpt-codex-connector

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

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T18:30:30.169896Z 517af8e New commits
🔒 Security Review ❌ Failed 2026-11-26T18:28:27.279790Z
We couldn’t complete this review. Comment @codex security review to try again.
517af8e New commits
ℹ️ 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: df330e43ce

ℹ️ 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".

Comment thread .github/workflows/rust-proven.yml Resolved
Repository owner deleted a comment from chatgpt-codex-connector Bot Nov 26, 2026
Repository owner deleted a comment from coderabbitai Bot Nov 26, 2026
Add workflow_dispatch to rust-proven.yml. A startup_failure cannot be
re-run, so a repository settings fix (such as the Actions allowlist
the callee's setup-zig and install-action steps need) otherwise has no
way to be witnessed without a new commit. Caller line numbers in the
pinned-source manifest move down by three.
@chatgpt-codex-connector

Copy link
Copy Markdown

This security review couldn’t start because the paying account has exhausted its Codex allowance and has insufficient available credits. The payer can check their balance and add credits in the Codex usage dashboard, then try again. If you do not manage the paying account, contact this repository's admins.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request adds a GitHub Actions workflow that runs a pinned reusable Rust workflow for seven crate directories. It also updates reusable-source records, narrows migration fixture receipt filtering to a specific commit, and adjusts Rust documentation formatting and links.

Changes: Reusable Rust CI

Layer / File(s) Summary
Reusable workflow pin records
scripts/lib/pinned-reusable-sources.json
Updates the credential-read-check source commit. Adds the Rust workflow source record, its seven callers, and dependency versions and commit identifiers.
Workflow triggers and crate checks
.github/workflows/rust-proven.yml, .github/workflows/rust.yml
Adds push, pull-request, and manual triggers, concurrency settings, and seven jobs that call the pinned reusable workflow. The dashboard job disables doctests. Reformats the existing gate dependencies without changing them.

Migration fixture receipt filtering

Layer / File(s) Summary
Commit-specific receipt filtering
docs/migrations/secret-scanner-cicd-suite/fixtures/restore-historical-source.sh, docs/migrations/secret-scanner-cicd-suite/fixtures/SHA256SUMS
Limits receipt removal to the specified source commit and updates the fixture’s recorded checksum.

Rust documentation updates

Layer / File(s) Summary
Documentation references and examples
bots/panicbot/src/cli.rs, bots/panicbot/src/translator.rs, bots/rhodibot/src/canon/report.rs, robot-repo-automaton/src/registry_guard.rs, shared-context/src/registry_guard.rs
Formats a CLI default path, a tuple return type, and Git URL examples as code. Links the overlay reference to super::overlay.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Other

Sequence Diagram(s)

sequenceDiagram
  participant Actions as GitHub Actions
  participant Workflow as rust-proven.yml
  participant Reusable as Pinned rust-ci.yml
  participant Crates as Configured crate directories
  Actions->>Workflow: Trigger workflow for a ref
  Workflow->>Reusable: Run checks for each configured crate
  Reusable->>Crates: Use each job working directory
Loading

Possibly related PRs

  • hyperpolymath/gitbot-fleet#628: Adds the idris-dependents/ crate and a matrix entry; this workflow configures a reusable check for that crate path. Whether the crate existed at the merge base was not verified.
Merge Risk: Low · up to 517af · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: a new workflow (rust-proven.yml) that calls the pinned rust-ci.yml reusable workflow for each of seven crates. The title is specific and matches the changeset, and it …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: a new workflow (rust-proven.yml) that calls the pinned rust-ci.yml reusable workflow for each of seven crates. The title is specific and matches the changeset, and it follows the conventional commit style. The title is accurate, so this check passes.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • 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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 36bcda9 and 517af8e.

Files ignored due to path filters: 8

  • .github/workflows/actions.lock is excluded by !**/*.lock
  • bots/panicbot/Cargo.lock is excluded by !**/*.lock
  • bots/rhodibot/Cargo.lock is excluded by !**/*.lock
  • dashboard/Cargo.lock is excluded by !**/*.lock
  • idris-dependents/Cargo.lock is excluded by !**/*.lock
  • robot-repo-automaton/Cargo.lock is excluded by !**/*.lock
  • scripts/lib/lock-closure-receipts.tsv is excluded by !**/*.tsv
  • shared-context/Cargo.lock is excluded by !**/*.lock
Files selected for processing: 1

  • bots/rhodibot/src/canon/report.rs
Files skipped from review as they are similar to previous changes: 1

  • bots/rhodibot/src/canon/report.rs

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

hyperpolymath added a commit that referenced this pull request Nov 26, 2026
## Summary
- Adds the stamped `proven-lock-gate` workflow (suite
`proven-cicd-and-workflows@50a443f`, gate version 0.3.2) and records its
checkout pin in `actions.lock`.
- The secret scanner already calls the suite's reusable workflow; no
change needed there.
- `rust.yml` is left to #712 (owned by another thread); `ci-gate` is not
added because the suite has no profile for this repository yet (it would
fail closed).

## Verification
Ran the suite's `scripts/proven-lock-gate.sh` locally: stamp matches,
verdict `CONSISTENT`.

## Choices recorded
- Pin is a full 40-hex suite SHA, with the checkout pinned by SHA and
keyed in the lock by that SHA.
- Sweep 1 test swap (unit, smoke, build, P2P) is a follow-up on this
branch once F1 confirms the artefacts to consume.

## Sweep 1 (added in c6ceeb9)
- `tests/sweep1/fleet-coordinator.sweep1.test.sh`: 16 assertions (UT,
SMK, BLD, P2P) using the kit's helpers from `proven-tests-and-benches`
at `4d849e9` (kit PR #121, draft). Nothing is vendored; `PTB_LIB` points
at `kit/lib`. Exits 2 if the kit or assertions are missing.
- `.proven/coverage.tsv` claims only ids a real test covers (UT, SMK,
BLD, P2P). The other 35 ids are violations from `kit/check-coverage.sh`
until sweeps 2-4. No N/A was written to hide them.
- Not wired into CI here: the umbrella workflow from F2 should call
these. No workflow logic added to this repo.
- Choice: the kit pin is a draft-PR SHA, to be re-pinned to a `kit-v0.x`
tag once cut.

---
_Generated by [Claude Code](https://claude.ai/code)_

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

- **Tests**
- Pull requests and updates to the main branch now receive automated
checks for workflow integrity and fleet coordinator commands, including
help, status, and syntax checks.
- Checks report when required test resources are unavailable,
distinguishing that from a completed validation.
- Workflow validation now identifies issues such as invalid pins,
repository mismatches, and unavailable commits.
- **Documentation**
- Clarified where to find the canonical estate master schedule, who
maintains it, and its license.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Resolve scripts/lib/lock-closure-receipts.tsv by keeping both the rust-ci
receipts and the hypatia credential-read-check receipt.
@chatgpt-codex-connector

Copy link
Copy Markdown

This security review couldn’t start because the paying account has exhausted its Codex allowance and has insufficient available credits. The payer can check their balance and add credits in the Codex usage dashboard, then try again. If you do not manage the paying account, contact this repository's admins.

@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath merged commit 5e5e122 into main Nov 26, 2026
127 checks passed
@hyperpolymath
hyperpolymath deleted the ci/proven-rust-ci branch November 26, 2026 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants