Skip to content

runtime image: name the pinned upstream version in the description label - #3506

Merged
Birfy merged 1 commit into
mainfrom
dev/3503-image-description-label
Dec 3, 2026
Merged

Birfy merged 1 commit into
mainfrom
dev/3503-image-description-label

Conversation

@Birfy

@Birfy Birfy commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

What

runtime/flybot-image/Dockerfile:141 described the runtime as "unmodified DS-Bot v0.3.6" while
runtime/ds-bot-upstream.pin.json pins Fei2411/DS-Bot at v0.4.3 (commit 5a9dc8d3) and the image
copies the vendored tree under runtime/ds-bot-upstream/ds-bot. The description now names v0.4.3.

scripts/verify-reuse-audit-pins.py gains the guard that would have caught this. The expected string is
built from the pin (basename(repo) plus tag), matched against the value of
org.opencontainers.image.description, so a pin bump moves the expectation instead of leaving a stale
hard-coded version or owner behind. The Dockerfile is now read earlier in check_shipped() so the label
check 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

  • Untouched: the duplicated word in org.opencontainers.image.title="FlyBot FlyBot runtime" (separate
    slice, per the issue), the v0.3.6 history entries in docs/reuse-audit/pins.json, the vendored tree.
  • The guard asserts the label text contains the pin version. It does not inspect a built image, and this
    repository has no build in this environment.

Verification, local on this tree (not CI)

  • Base f255a7f5 rebuilt from codeload with git add -f -A (2,579 entries) reproduces tree baaeefd3.
  • git apply --check rc 0 on that clean base; post-patch tree 2224f5b3, 2 files +14/-2.
  • python3 scripts/verify-reuse-audit-pins.py rc 0, including the new line
    OK image recipe description label names the vendored upstream DS-Bot v0.4.3.
  • Negative, label only: reverting the label to v0.3.6 makes the verifier exit 1 with
    FAIL: image recipe description label does not name the vendored upstream DS-Bot v0.4.3.
  • Negative, pin only: setting the pin tag to v0.4.4 without touching the label makes it exit 1 with
    FAIL: ... 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

@github-actions github-actions Bot added the risk:T3 Risk tier T3 (needs a human approval), set by the controller from the diff label Dec 3, 2026
@Birfy

Birfy commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

Review record, Lead, at exact head 73926ac5e6e85212eff035301cb095d8fb9b83ec (tree 2224f5b358c00d4444c93282c6a5f1a4d4de81bc, base f255a7f5).

CI, this head: 18 of 18 check runs completed with success, including the rollup. Not a partial read.

Local, this tree, separate from CI:

  • git apply --check rc 0 on a rebuilt clean base; 2 files +14/-2.
  • scripts/verify-reuse-audit-pins.py rc 0 with the new OK image recipe description label names the vendored upstream DS-Bot v0.4.3.
  • Negative, label reverted to v0.3.6: rc 1 on that same assertion.
  • Negative, pin tag set to v0.4.4 with the label untouched: rc 1 naming DS-Bot v0.4.4, so the expectation follows the pin; pin restored.
  • python -m unittest discover -s tests: Ran 381 tests in 154.2s, OK.

Scope held: two files, no product code, the duplicated title word and the v0.3.6 history rows untouched. The guard reads label text; no image was built here, so this is not evidence about image contents.

@Birfy
Birfy added this pull request to the merge queue Dec 3, 2026
Merged via the queue into main with commit e1dd1b2 Dec 3, 2026
18 checks passed
@Birfy
Birfy deleted the dev/3503-image-description-label branch December 3, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:T3 Risk tier T3 (needs a human approval), set by the controller from the diff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant