Repository navigation
ci(cache): skip docs cache saves on merge-group refs (#14644) - #15971
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
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. View limit details
|
EffortlessSteven
left a comment
There was a problem hiding this comment.
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.
EffortlessSteven
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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.
Summary
Swarm / Source Boundary
This PR targets
EffortlessMetrics/ripr-swarm, the normal development trunk fortrusted same-repo
riprwork. Confirm the change belongs here:dependency, or repo-ops development for
ripr-swarmsurface
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/riprunless 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:
Production delta:
Evidence/support delta:
Single acceptance criterion:
Non-goals:
Support-tier Impact
docs/status/SUPPORT_TIERS.mdClaim/proof notes:
Policy Impact
Ledger or exception notes:
Proof
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
Static Language Check
killed,survived,untested,proven, andadequate.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/afor ordinary PRs that do not affectCI behavior.
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
panic,unwrap,expect,todo, orunimplementedin production code.panic,unwrap,expect,todo, orunimplementedin tests.Gates
cargo fmt --checkcargo check --workspace --all-targetscargo test --workspacecargo clippy --workspace --all-targets -- -D warningscargo doc --workspace --no-depscargo package -p ripr --listcargo publish -p ripr --dry-runcargo xtask check-static-languagecargo xtask check-doc-artifactscargo xtask check-support-tierscargo xtask check-no-panic-familycargo xtask check-allow-attributescargo xtask check-local-contextcargo xtask check-file-policycargo xtask check-covered-bycargo xtask check-executable-filescargo xtask check-workflowscargo xtask check-spec-formatcargo xtask check-spec-numberingcargo xtask check-fixture-contractscargo xtask check-generatedcargo xtask check-badge-diff-policycargo xtask check-generated-cleancargo xtask check-dependenciescargo xtask check-process-policycargo xtask check-network-policyExtension changes:
cd editors/vscode && npm cicd editors/vscode && npm run compilecd editors/vscode && npm run packageLocal 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.