Skip to content

ci(toolchain): pin Rust 1.99.0 in rust-toolchain.toml; CI reads it (ADR-0039) - #181

Merged
gonzafg2 merged 5 commits into
mainfrom
ci/pin-rust-toolchain-1.99.0
Oct 12, 2026
Merged

gonzafg2 merged 5 commits into
mainfrom
ci/pin-rust-toolchain-1.99.0

Conversation

@gonzafg2

@gonzafg2 gonzafg2 commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

Summary

Implements ADR-0039 (proposed in #180), stacked on that PR's branch.

File Change
rust-toolchain.toml channel = "stable" becomes "1.99.0", the release CI already runs (rustc 1.99.0 (b940084d7 2026-09-28)). The header comment now names ADR-0039 and the bump rule. components and profile are unchanged.
.github/workflows/ci.yml (build ×2), interop.yml (openssh-interop), audit.yml (audit) A new Read pinned toolchain step takes channel from rust-toolchain.toml and fails unless it is an exact MAJOR.MINOR.PATCH. dtolnay/rust-toolchain gets toolchain: ${{ steps.toolchain.outputs.channel }} instead of stable. No workflow names a Rust version.
.github/dependabot.yml New package-ecosystem: rust-toolchain entry, on the same weekly schedule, labels and commit prefix as the cargo entry. Each release then arrives as one bump PR.
docs/infrastructure.md Stops saying the file pins "current stable" and links ADR-0039.
ADR-0039 / ADR-0010 ADR-0039 flips to Accepted and names this PR. It also gets one wording fix before acceptance: the Context now cites only what dtolnay's README lines 43–45 say, the @master revision. ADR-0010 gets a Status-only edit (ADR-0015), worded like ADR-0020's record of ADR-0034: its channel = "stable" part is superseded, and every other bullet stands.

deny.yml is unchanged on purpose. cargo-deny-action runs rustup show || rustup toolchain install in the manifest directory (entrypoint.sh line 41 at the pinned 3c63498), so it already installs what the file names. The current main run logs "overridden by '/github/workspace/rust-toolchain.toml'".

Why a step reads the file instead of three copies of the literal: dtolnay/rust-toolchain at 7e38f4b requires toolchain as an input (action.yml lines 9–11) and cannot read the file. Dependabot's rust-toolchain ecosystem updates only the file, so workflow literals would fall behind on every bump. The regex check also limits the value that reaches the action's run: interpolation to digits and dots.

Verification

  • Local, pinned toolchain (rustup resolves 1.99.0-aarch64-apple-darwin (overridden by '…/rust-toolchain.toml')):
    • cargo fmt --all --check: clean.
    • cargo clippy --workspace --all-targets -- -D warnings: clean.
    • cargo test --workspace: 34 + 105 + 35 passed.
    • cargo build --workspace --release: OK.
  • actionlint (with shellcheck) on ci.yml, audit.yml, interop.yml: clean.
  • The read step's logic, run outside CI:
    • Accepts 1.99.0 and channel="1.100.1" # c.
    • Rejects stable, 1.99, nightly-2026-10-01, a commented-out line, a duplicated channel, and 1.99.0; echo x.
  • The Dependabot entry uses the ecosystem value from GitHub's options reference (rust-toolchain). GitHub validates dependabot.yml only on the default branch, so the entry is confirmed after merge, when the Dependabot run for the new ecosystem shows in Insights → Dependency graph → Dependabot.
  • CI on this PR (build ×2, cargo deny, openssh-interop, commit-lint) is the end-to-end check that every job installs and runs 1.99.0.

MSRV is untouched (rust-version = "1.92", clippy.toml msrv). No MSRV job is added; ADR-0039 lists one as a possible follow-up.

Merge order

  1. docs(adr): ADR-0039 — pin the Rust toolchain to an exact release (Proposed) #180 first (ADR-0039 Proposed, docs only).
  2. Then this PR. Once docs(adr): ADR-0039 — pin the Rust toolchain to an exact release (Proposed) #180 merges, retarget this PR to main (GitHub does it automatically when docs(adr): ADR-0039 — pin the Rust toolchain to an exact release (Proposed) #180's branch is deleted). Then replay only this PR's own commits onto main with rebase --signoff --onto origin/main <#180's final head> (today 54723b4), so the squash-merged ADR commit is not applied twice, and merge after CI is green again.

The acceptance date in ADR-0039 is set to 2026-10-12, today. If this PR merges on another day, that date changes in the same PR.

Refs #109

https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW

…posed)

Rust 1.99.0 (2026-10-01) added clippy::assert_is_empty, and CI ran the
floating stable channel with -D warnings, so the required build checks
failed on every PR from 2026-10-05 until #173. ADR-0039 supersedes the
channel = "stable" part of ADR-0010: rust-toolchain.toml pins 1.99.0,
every CI job reads the version from that file, and a bump is one
reviewed PR, opened by Dependabot's rust-toolchain ecosystem.

Refs #109

Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW
Signed-off-by: Gonzalo Fleming <[email protected]>
…DR-0039)

rust-toolchain.toml moves from channel = "stable" to "1.99.0", the
release CI already runs. The build, openssh-interop and audit jobs read
`channel` from that file and pass it to dtolnay/rust-toolchain instead
of asking for `stable`; the step fails unless the value is an exact
MAJOR.MINOR.PATCH, which also keeps the action input to digits and
dots. cargo deny needs no change: cargo-deny-action already installs
the toolchain the file names.

Dependabot gains a rust-toolchain entry so each release arrives as one
bump PR, where new lints are fixed before merge. docs/infrastructure.md
no longer says the file tracks current stable.

Refs #109

Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW
Signed-off-by: Gonzalo Fleming <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-12T02:06:45.729302Z c57fb01 Manual request
ℹ️ 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.

… of ADR-0010

ADR-0039 flips to Accepted and names #181 as its implementation.
ADR-0010's Status records that its channel = "stable" part is
superseded by ADR-0039; the components list and every other bullet
stand. Status-only edit per ADR-0015, worded like ADR-0020's record of
ADR-0034.

Refs #109

Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW
Signed-off-by: Gonzalo Fleming <[email protected]>

@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: b545d9141a

ℹ️ 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 rust-toolchain.toml Resolved
@opencode-agent

Copy link
Copy Markdown

APIError: Upstream request failed: Insufficient account funds

github run

… revision

The Context paraphrased README lines 43–45 as pairing an explicit
`toolchain` input with "a SHA or @master ref"; those lines name only
the @master revision. The SHA rule comes from lines 102–108. Wording
fix before acceptance; no change to the decision.

Refs #109

Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW
Signed-off-by: Gonzalo Fleming <[email protected]>
@opencode-agent

Copy link
Copy Markdown

APIError: Upstream request failed: Insufficient account funds

github run

@claude

claude Bot commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@gonzafg2

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: c57fb01088

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

@gonzafg2

Copy link
Copy Markdown
Owner Author

Maintainer decision (2026-10-12): keep the Dependabot package-ecosystem: rust-toolchain entry, as ADR-0039 records it. Each new Rust release arrives as a Dependabot PR that bumps channel in rust-toolchain.toml. That PR is reviewed and fixed like any other pin bump before merge. ADR-0039's Alternative 5 (manual-only bumps) stays recorded as not taken. The entry can only be validated once it is on the default branch.

Base automatically changed from docs/adr-0039-pin-rust-toolchain to main October 12, 2026 18:01
#180 squash-merged ADR-0039 as Proposed. This branch carries the same
file plus its acceptance with #181 and the corrected README citation,
so the add/add conflict resolves to this branch's version.

Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW
Signed-off-by: Gonzalo Fleming <[email protected]>
@opencode-agent

Copy link
Copy Markdown

APIError: Upstream request failed: Insufficient account funds

github run

@claude

claude Bot commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

PR Review: ci(toolchain): pin Rust 1.99.0 in rust-toolchain.toml; CI reads it (ADR-0039) (#181)

Decision: 🟢 Approved
Iteration: Review #2 (1 resolved, 0 open)
Lenses applied: CI (.github/workflows/), ADR governance (docs/adr/), docs

Previous issues

# Issue Status Notes
1 No issues found (Claude review at c57fb01) ✅ resolved Remains clean; the only new commit (b2d892a) is a merge from main resolving an ADR-0039 add/add conflict in favour of this branch's Accepted version

Executive summary

This PR pins the Rust toolchain to 1.99.0 in rust-toolchain.toml (ADR-0039), adds a "Read pinned toolchain" step in ci.yml, audit.yml, and interop.yml that extracts and validates the channel before passing it to dtolnay/rust-toolchain, and adds a Dependabot rust-toolchain entry for future bump PRs. The one gap raised during review — whether deny.yml also needed updating — is not an issue: that workflow uses EmbarkStudios/cargo-deny-action, which reads rust-toolchain.toml automatically and has no separate dtolnay/rust-toolchain install step. No bugs, no CLAUDE.md violations, no security concerns.

No new findings from this iteration.

@gonzafg2
gonzafg2 merged commit 2df6f3c into main Oct 12, 2026
10 of 11 checks passed
@gonzafg2
gonzafg2 deleted the ci/pin-rust-toolchain-1.99.0 branch October 12, 2026 18:19
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.

1 participant