Repository navigation
feat(cargo): a committed Cargo cooldown is a floor on the release age - #299
Merged
Merged
Conversation
A crates.io update inside a cooldown committed in .cargo/config.toml or .cargo/config is now held at lookup instead of proposed: the strictest registry.global-min-publish-age, registry.min-publish-age and registries.*.min-publish-age the manifest reaches becomes a floor under waitHours, ahead of dashboard create-it-now overrides. Security fixes bypass the floor and are marked so the lockfile run can later allow the too-new release in Cargo. Cargo itself is not told yet: the floor only decides what is proposed and held until a following change passes the cooldown to the lockfile run.
Merged
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
A crates.io update inside a cooldown committed in .cargo/config.toml or
.cargo/config is now held at lookup instead of proposed: the strictest
registry.global-min-publish-age, registry.min-publish-age and
registries.*.min-publish-age the manifest reaches becomes a floor under
waitHours, ahead of dashboard create-it-now overrides. Security fixes
bypass the floor and are marked so the lockfile run can later allow the
too-new release in Cargo. Cargo itself is not told yet: the floor only
decides what is proposed and held until a following change passes the
cooldown to the lockfile run.
PR 2 of 3 for Cargo cooldowns (#297 was PR 1). PR 3 passes the cooldown and
waitHoursto Cargo, runs security fixes with Cargo's override, and stops a parent directory's cooldown from applying.Behaviour
crates/manager/src/cargo.rs): the maximum ofregistry.global-min-publish-age,registry.min-publish-ageandregistries.*.min-publish-agein any.cargo/config.tomlor.cargo/configthe manifest reaches inside the repository. The grammar is Cargo 1.100's exactly, pinned both ways by unit tests. A month is 2,629,746 s (731 h, rounded up), measured against real Cargo. Aninclude, unparseable TOML or out-of-grammar value fails the manifest's lookups with the file and key named. A committedresolver.incompatible-publish-age = "allow"is ignored.wait_hours = max(waitHours, floor)inEvaluator::effective()for crates.io dependencies, ahead of dashboard overrides. The lookup gate, the recordedpolicy.waitHours, the merge-time age check and the sweep's wake-up all read that one value.waitHours.cooldownin the report, andJob.publish_age_allowmarks the job for PR 3.HeldBack.cooldownandUpdate.cooldown({ hours, file }).extract4,files4,config3,config-files3,catalog3,catalog-controls3.Proof
the_count_never_proposes_what_the_owners_cargo_holds_back(the Count may be stricter, never looser) and the flipped test(tools): a sparse-registry fixture pins today's Cargo cooldown behaviour #297 case, now held at lookup.test:unit,test:tools(137) and hk pass.Docs:
guide/lookup-policy.md,guide/lockfiles.md,guide/dashboard.md,reference/report.md,renovate/compatibility.md.