Repository navigation
runtime image: name the pinned upstream version in the description label - #3506
Merged
Merged
Conversation
Collaborator
Author
|
Review record, Lead, at exact head CI, this head: 18 of 18 check runs completed with Local, this tree, separate from CI:
Scope held: two files, no product code, the duplicated title word and the |
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.
What
runtime/flybot-image/Dockerfile:141described the runtime as "unmodified DS-Bot v0.3.6" whileruntime/ds-bot-upstream.pin.jsonpinsFei2411/DS-Botatv0.4.3(commit5a9dc8d3) and the imagecopies the vendored tree under
runtime/ds-bot-upstream/ds-bot. The description now namesv0.4.3.scripts/verify-reuse-audit-pins.pygains the guard that would have caught this. The expected string isbuilt from the pin (
basename(repo)plustag), matched against the value oforg.opencontainers.image.description, so a pin bump moves the expectation instead of leaving a stalehard-coded version or owner behind. The Dockerfile is now read earlier in
check_shipped()so the labelcheck sits with the pin block; the existing closing-keyword check reuses that variable.
Why the drift was invisible
The verifier asserted the pinned version in the root NOTICE but never read the image LABEL, and no
workflow compares the two.
Scope
org.opencontainers.image.title="FlyBot FlyBot runtime"(separateslice, per the issue), the
v0.3.6history entries indocs/reuse-audit/pins.json, the vendored tree.repository has no build in this environment.
Verification, local on this tree (not CI)
f255a7f5rebuilt from codeload withgit add -f -A(2,579 entries) reproduces treebaaeefd3.git apply --checkrc 0 on that clean base; post-patch tree2224f5b3, 2 files+14/-2.python3 scripts/verify-reuse-audit-pins.pyrc 0, including the new lineOK image recipe description label names the vendored upstream DS-Bot v0.4.3.v0.3.6makes the verifier exit 1 withFAIL: image recipe description label does not name the vendored upstream DS-Bot v0.4.3.v0.4.4without touching the label makes it exit 1 withFAIL: ... DS-Bot v0.4.4, so the expectation follows the pin; the pin was restored afterwards.python -m unittest discover -s tests:Ran 381 tests in 154.2s,OK.Risk
Text-only label change plus an offline script guard. Its worst failure mode is a false FAIL on a future
pin bump, which is the intended prompt to update the label in the same change.
Related #3503