-
Notifications
You must be signed in to change notification settings - Fork 0
build(rust): pin and track Rust 1.98.0 #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
seonghobae
wants to merge
21
commits into
main
Choose a base branch
from
agent/rust-toolchain-refresh-2026-08-19
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+201
−74
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
79773b3
build: pin Rust 1.97.1
seonghobae 10ea759
ci: run the exact Rust 1.97.1 baseline
seonghobae 96514e7
ci: track the pinned Rust toolchain
seonghobae 53fe12b
test: enforce the reproducible Rust baseline
seonghobae 01fd656
build(deps): add Dependabot cooldown for supply-chain safety
devin-ai-integration[bot] a13c086
Merge remote-tracking branch 'origin/main' into fix/pr77-rebase
seonghobae b87e3ec
Merge branch 'main' into agent/rust-toolchain-refresh-2026-08-19
seonghobae 17cca73
test(toolchain): allow consistent multi-job CI pins
seonghobae a9642b9
Merge branch 'main' into agent/rust-toolchain-refresh-2026-08-19
opencode-agent[bot] 1d0b8a5
fix(ci): derive the Rust pin from rust-toolchain.toml
codex 947394f
Merge branch 'main' into agent/rust-toolchain-refresh-2026-08-19
seonghobae d44df5e
fix(ci): consume pinned Rust toolchain everywhere
codex d30de04
test(toolchain): require exact pinned Rust version
codex 7cb6973
Merge d30de04d717204373c643a1dd209cdcccc707391 into cc15cc2c34daf8c10…
seonghobae 86d7c42
build(rust): advance pinned stable toolchain to 1.98.0
seonghobae 2f96565
docs(rust): record the Rust 1.98.0 stable pin
seonghobae 43d2c87
test(deploy): reject first-match target deployment validation
seonghobae 17a2a1e
fix(deploy): reject duplicate target Deployment documents
seonghobae 46fef54
test(deploy): retain hostile runtime regression after repair
seonghobae d386d6f
merge(main): preserve pinned Rust on protected workflow controls
seonghobae 2856bab
merge(main): adopt protected anti-bot boundary on pinned Rust foundation
seonghobae File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,19 @@ | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: rust-toolchain | ||
| directory: / | ||
| schedule: | ||
| interval: weekly | ||
| open-pull-requests-limit: 1 | ||
|
seonghobae marked this conversation as resolved.
|
||
| - package-ecosystem: cargo | ||
| directory: / | ||
| schedule: | ||
| interval: weekly | ||
| cooldown: | ||
| default-days: 7 | ||
| - package-ecosystem: github-actions | ||
| directory: / | ||
| schedule: | ||
| interval: weekly | ||
| cooldown: | ||
| default-days: 7 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+751 KB
docs/papers/docker-does-not-guarantee-reproducibility-arxiv-2601.12811.pdf
Binary file not shown.
Binary file added
BIN
+476 KB
docs/papers/reproducible-builds-software-supply-chains-arxiv-2104.06020.pdf
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| //! Repository contracts for the reviewed Rust compiler baseline. | ||
|
|
||
| const RUST_TOOLCHAIN: &str = include_str!("../rust-toolchain.toml"); | ||
| const CI_WORKFLOW: &str = include_str!("../.github/workflows/ci.yml"); | ||
| const DEPENDABOT: &str = include_str!("../.github/dependabot.yml"); | ||
| const DOCKERFILE: &str = include_str!("../Dockerfile"); | ||
|
|
||
| fn pinned_channel() -> String { | ||
| RUST_TOOLCHAIN | ||
| .lines() | ||
| .map(str::trim) | ||
| .find_map(|line| line.strip_prefix("channel = \"")) | ||
| .and_then(|line| line.strip_suffix('"')) | ||
| .expect("rust-toolchain.toml must declare a channel") | ||
| .to_string() | ||
| } | ||
|
|
||
| #[test] | ||
| fn pinned_toolchain_is_consistent_in_local_and_ci_contracts() { | ||
| let pinned_channel = pinned_channel(); | ||
| let parts: Vec<_> = pinned_channel.split('.').collect(); | ||
| assert!( | ||
| parts.len() == 3 | ||
| && parts | ||
| .iter() | ||
| .all(|part| { !part.is_empty() && part.chars().all(|ch| ch.is_ascii_digit()) }), | ||
| "toolchain channel must be an exact numeric version" | ||
| ); | ||
| assert_ne!(pinned_channel, "stable"); | ||
| assert_ne!(pinned_channel, "nightly"); | ||
| assert!(CI_WORKFLOW.contains("id: pinned-toolchain")); | ||
| assert!(CI_WORKFLOW.contains("sed -n 's/^channel = ")); | ||
| assert!(CI_WORKFLOW.contains("toolchain: ${{ steps.pinned-toolchain.outputs.version }}")); | ||
| assert!(CI_WORKFLOW.contains("components: llvm-tools-preview, rustfmt, clippy")); | ||
| assert!(DOCKERFILE.contains("COPY rust-toolchain.toml ./")); | ||
| assert!(DOCKERFILE.contains("RUN cargo build --locked --release")); | ||
| assert!(!DOCKERFILE.contains("FROM rust:1.")); | ||
| assert!( | ||
| DOCKERFILE.contains("FROM rust:bookworm@sha256:"), | ||
| "container build must consume rust-toolchain.toml instead of pinning a separate Rust version" | ||
| ); | ||
| assert!( | ||
| DEPENDABOT.contains("- package-ecosystem: rust-toolchain"), | ||
| "toolchain bumps must remain automated from rust-toolchain.toml" | ||
| ); | ||
| } | ||
|
|
||
| #[test] | ||
| fn stable_toolchain_updates_are_reviewable() { | ||
| let mut in_rust_toolchain_block = false; | ||
| let mut saw_weekly = false; | ||
|
|
||
| for line in DEPENDABOT.lines().map(str::trim) { | ||
| if line.starts_with("- package-ecosystem: ") { | ||
| in_rust_toolchain_block = line == "- package-ecosystem: rust-toolchain"; | ||
| continue; | ||
| } | ||
| if in_rust_toolchain_block && line == "interval: weekly" { | ||
| saw_weekly = true; | ||
| } | ||
| } | ||
|
|
||
| assert!( | ||
| saw_weekly, | ||
| "rust-toolchain updater must stay on a weekly cadence" | ||
| ); | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.