Skip to content

fix(ci): stop restoring read-only rustc metadata caches - #1120

Merged
ScriptedAlchemy merged 1 commit into
codex/tracedecay-total-redesign-plan-reopenedfrom
sol/ci-cache-lineage
Sep 9, 2026
Merged

fix(ci): stop restoring read-only rustc metadata caches#1120
ScriptedAlchemy merged 1 commit into
codex/tracedecay-total-redesign-plan-reopenedfrom
sol/ci-cache-lineage

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Root cause

Swatinem/rust-cache prefix-restored compiler trees from another lockfile generation. rustc writes .rmeta mode 0444 and then failed trying to update those restored files, so slice-tests and Hotpath lanes never executed.

Fix

  • isolate affected lanes under unique v1-rust shared keys
  • cache dependency artifacts, not workspace crate outputs
  • drop target/ after a prefix restore; preserve registry/download cache
  • keep exact-hit artifacts and disable incremental compilation
  • use target-base for the profile baseline build
  • prune v0/v1 generations as one lane lineage

No chmod workaround, skipped lane, or Rust source change.

Tests

  • cache-prune tests
  • cache-lineage behavioral tests and workflow checker
  • actionlint and YAML parsing

The first hosted run is intentionally cold and seeds v1; subsequent exact hits retain dependency artifacts.

Prefix-restored v0-rust blobs leave rustc's 0444 .rmeta files in
target/; hosted slice-tests and hotpath lanes then fail the rewrite.
Isolate those lanes on v1-rust and drop target/ unless the hit is exact.
@changeset-bot

changeset-bot Bot commented Sep 9, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: a80ea1b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 9, 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-09-09T01:36:55.987431Z a80ea1b PR opened
ℹ️ 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.

@ScriptedAlchemy
ScriptedAlchemy merged commit c92de74 into codex/tracedecay-total-redesign-plan-reopened Sep 9, 2026
5 of 12 checks passed
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