Skip to content

Check the pinned image's version, not whether the tag still points at it - #504

Merged
wormeyman merged 1 commit into
mainfrom
digest-test-checks-pinned-image
Nov 1, 2026
Merged

wormeyman merged 1 commit into
mainfrom
digest-test-checks-pinned-image

Conversation

@wormeyman

Copy link
Copy Markdown
Collaborator

Follow-up to #502. The registry check in preview-service/container/test/dockerfile.test.mjs asked whether factoriotools/factorio:2.1.23 still points at the pinned digest. factoriotools rebuilds tags: their auto-update job rebuilt 2.1.23 on 2026-10-27 with the same Factorio download inside. That turned verify red on main and every branch until #502 re-pinned. It will likely happen again on the next release.

What the test checks now

The test asks the registry for the pinned digest and reads its linux/amd64 image config. The config must carry the FROM tag in the publisher's factorio.version label and in VERSION. That is what the test was meant to guard: that the pin really is the version it claims.

pin planted under the 2.1.23 tag result
the current pin (1e177333...) passes
the pre-rebuild 2.1.23 digest (74f41f94...) passes: a rebuilt tag is not a wrong pin
2.1.22's digest (ed5a8cef...) fails: "labelled factorio.version 2.1.22"
an all-zero digest fails: "the registry has no ... the pin is not a real image"

Each row was run against the live registry. A network error still skips, so an offline machine is not turned red. Renovate keeps proposing new digests on its own schedule.

The CLAUDE.md paragraph that describes this test is updated to match.

Checked

pnpm run verify passes in full: 1,327 app tests, preview:test 14 of 14 container and 27 of 27 worker tests, and verify:rust.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Kd6o1Z1SyHWnAVybcR6bLE

The registry test asserted that factoriotools/factorio:<tag> still
resolves to the pinned digest. factoriotools rebuilds tags: their
auto-update job rebuilt 2.1.23 on 2026-10-27 with the same Factorio
download inside, and verify went red on main and every branch until
#502 re-pinned.

The test now asks the registry for the PINNED digest itself and asserts
its linux/amd64 image config carries the FROM tag in the
factorio.version label and in VERSION. A digest the registry does not
know fails, and so does one that is another version; a network error
still skips. Planted pins, each run against the live registry:
- the old 2.1.23 digest (74f41f94..., the pre-rebuild image): passes
- 2.1.22's digest under the 2.1.23 tag: fails, "labelled 2.1.22"
- an all-zero digest: fails, "not a real image"

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kd6o1Z1SyHWnAVybcR6bLE
@coderabbitai

coderabbitai Bot commented Nov 1, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 32 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

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: CHILL
  • Plan: Advanced
  • Run ID: c6582195-580f-4e38-9e9d-98484e3ceb51
Commits

Reviewing files that changed from the base of the PR and between 3f322ee and b9d071f.

Files selected for processing: 2
  • CLAUDE.md
  • preview-service/container/test/dockerfile.test.mjs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@claude

claude Bot commented Nov 1, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.


@wormeyman
wormeyman merged commit 8cccae5 into main Nov 1, 2026
16 checks passed
@wormeyman
wormeyman deleted the digest-test-checks-pinned-image branch November 1, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant