Skip to content

ci(cache): skip docs cache saves on merge-group refs (#14644) - #15971

Merged
EffortlessSteven merged 2 commits into
mainfrom
ci/14644-queue-docs-cache-writes
Nov 22, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
ci/14644-queue-docs-cache-writes

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Skip docs Cargo cache uploads on ephemeral merge-group refs. A live inventory found 11 such entries totaling 7,778,837,449 bytes.

Swarm / Source Boundary

This PR targets EffortlessMetrics/ripr-swarm, the normal development trunk for
trusted same-repo ripr work. Confirm the change belongs here:

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge,
    dependency, or repo-ops development for ripr-swarm
  • repair or follow-up for a same-repo swarm PR
  • swarm-only CI, runner, routing, source-of-truth, or agent-operating
    surface
  • other swarm-scoped work:

If this PR moves crates.io publishing, VS Marketplace publishing, Open VSX
publishing, GitHub Release assets, signing, release environments, or release
secrets, close or retarget it. Those surfaces belong in EffortlessMetrics/ripr
unless a dedicated release-boundary change has already been approved.

Source-of-truth Links

Proposal:
Spec:
ADR:
Plan item: #14644 docs-gate economics
Governing issue or accepted claim: #14644
Acceptance delta (one sentence): Merge groups restore as before and skip cache saving, while PR runs retain their current save behavior.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): ci/14644-queue-docs-cache-writes
Stack parent or prerequisite PR (if any):
Proposed replacement of PR (if any; not yet accepted):
Acceptance retained from a replaced candidate (if any):
Accepted winner and losing candidate disposition (when decided):

Name a stack or proposed replacement explicitly. A proposed replacement does
not make its predecessor superseded. Shared files or a shared parent issue
alone do not establish duplication. If the relationship is unknown, record it
as needing reconciliation before disposing of either PR.

Scope

Scope Classification

This PR is scoped by:

  • One production behavior
  • One public contract
  • One architectural seam
  • Docs/spec/test-only evidence package
  • Other:

Production delta:

Evidence/support delta:

Single acceptance criterion:

Non-goals:

Support-tier Impact

  • none
  • updates docs/status/SUPPORT_TIERS.md
  • changes a README, release, docs, CLI, JSON, editor, CI, or package claim

Claim/proof notes:

Policy Impact

  • none
  • doc artifacts
  • CI lane
  • package boundary
  • lint / Clippy
  • no-panic
  • file policy
  • generated artifact
  • dependency
  • process/network

Ledger or exception notes:

Proof

actionlint -shellcheck= .github/workflows/routed-rust.yml
cargo --offline --locked policy check-workflows

Result, failures, or skipped proof:

Claim Boundary

What may be claimed after this PR? What must not be claimed yet?

Rollback

How can this PR be reverted safely?

Spec-Test-Code Traceability

  • Spec:
  • Tests:
  • Code:
  • Golden outputs:
  • Metrics:
  • ADR/learning:

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.
  • Unknowns include stop reasons where applicable.

CI Economics

Complete this section when the PR changes workflows, policy gates, branch
protection expectations, CI artifacts, report uploads, release checks, or the
cost/posture of existing lanes. Use n/a for ordinary PRs that do not affect
CI behavior.

  • LEM impact: One measured post step took 22 seconds. End-to-end LEM delta awaits a post-merge docs group.
  • Workflows touched: routed-rust.yml, docs-gate.
  • Branch protection impact: Existing admission and result checks continue.
  • Failure mode caught: Queue refs accumulate Cargo cache uploads that later groups cannot restore.
  • Cheaper signal considered: A local predicate test covers event selection. Actual cache service behavior requires an admitted docs-only group.
  • Required lanes affected: Docs gate still executes precommit.
  • Advisory lanes affected: None.
  • On-demand/release lanes affected: Manual event retains cache saves.
  • Labels that alter behavior: None introduced.
  • Artifact families affected: GitHub Actions ripr-docs-gate caches.
  • Rollback path: Revert the save-if input to resume group cache writes.

If rollback requires branch-protection or workflow-file changes, say so here
and split the PR unless the workflow change itself is the narrow reviewed
surface. If a CI-breaking rollback would need emergency procedures because
normal CI cannot validate the revert, document that explicitly.

Engineering Check

  • No new panic, unwrap, expect, todo, or unimplemented in production code.
  • No new panic, unwrap, expect, todo, or unimplemented in tests.
  • New non-Rust programming files are allowlisted with owner, surface, and reason.
  • New generated, dependency, process-spawn, or network surfaces are allowlisted with owner and reason.
  • Errors are reported with actionable context.
  • Public JSON/schema changes are documented.

Gates

  • cargo fmt --check
  • cargo check --workspace --all-targets
  • cargo test --workspace
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo doc --workspace --no-deps
  • cargo package -p ripr --list
  • cargo publish -p ripr --dry-run
  • cargo xtask check-static-language
  • cargo xtask check-doc-artifacts
  • cargo xtask check-support-tiers
  • cargo xtask check-no-panic-family
  • cargo xtask check-allow-attributes
  • cargo xtask check-local-context
  • cargo xtask check-file-policy
  • cargo xtask check-covered-by
  • cargo xtask check-executable-files
  • cargo xtask check-workflows
  • cargo xtask check-spec-format
  • cargo xtask check-spec-numbering
  • cargo xtask check-fixture-contracts
  • cargo xtask check-generated
  • cargo xtask check-badge-diff-policy
  • cargo xtask check-generated-clean
  • cargo xtask check-dependencies
  • cargo xtask check-process-policy
  • cargo xtask check-network-policy

Extension changes:

  • cd editors/vscode && npm ci
  • cd editors/vscode && npm run compile
  • cd editors/vscode && npm run package

Local proof passed actionlint, cargo --offline --locked policy check-workflows, and an event truth table checked against the actual docs job. Removing the new input makes the YAML job identical to the base. A rerun on the same queue ref loses the chance to use its first run's newly saved cache. Revert this change to restore that behavior. Hosted timing and storage savings need a post-merge docs run. #14560 separately tracks cache restore compatibility.

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 58 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 147 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 1c9db5cc-4a0d-465d-a152-36983025bdb9
Commits

Reviewing files that changed from the base of the PR and between caf728c and 933cf0e.

Files selected for processing: 2

  • .github/workflows/routed-rust.yml
  • changelog.d/14644-docs-queue-cache-writes.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

SOURCE_REVIEW_READY

Reviewed the docs-gate cache action and its event predicate at a9ddd25 against main. The base saves on all three tested events. Candidate merge_group skips save while pull_request and workflow_dispatch retain save. Removing the input restores structural equality of the complete job, including restore and precommit. Candidate actionlint and workflow policy passed. Same-ref retries can lose a newly warmed cache. Post-merge observation will measure actual writes.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

Devin Review

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

SOURCE_REVIEW_READY

Reviewed 933cf0e against the prior head and baseline. The sole revision moves the changelog fragment to the internal CI rollup. Verified the job event truth table, deep equality of remaining docs job inputs and steps, and actionlint on this head. The pinned action evaluates save-if independently of restore. Queue ref retries lose access to a newly saved group cache. The linked review finding is addressed.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

REVIEW_READY

Reviewed 933cf0e. The pinned rust-cache action skips its save step on merge_group while PR and manual saves remain enabled. Removing that one input recovers the complete baseline docs job, including all proof and restore steps. The changelog finding is resolved in the Internal / CI section. Hosted qualification 44956487290 passed its protected Result, gates, both verified shards and VS Code e2e. Queue-ref retries lose the opportunity to reuse an earlier save. Actual cache savings await a post-landing docs group.

@EffortlessSteven
EffortlessSteven added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit d8f1843 Nov 22, 2026
19 checks passed
@EffortlessSteven
EffortlessSteven deleted the ci/14644-queue-docs-cache-writes branch November 22, 2026 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant