Repository navigation
Check the pinned image's version, not whether the tag still points at it - #504
Merged
Merged
Conversation
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
|
Warning Review limit reachedYou'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. View limit details
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. |
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
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.
Follow-up to #502. The registry check in
preview-service/container/test/dockerfile.test.mjsasked whetherfactoriotools/factorio:2.1.23still 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 turnedverifyred onmainand 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
FROMtag in the publisher'sfactorio.versionlabel and inVERSION. That is what the test was meant to guard: that the pin really is the version it claims.2.1.23tag1e177333...)74f41f94...)ed5a8cef...)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.mdparagraph that describes this test is updated to match.Checked
pnpm run verifypasses in full: 1,327 app tests,preview:test14 of 14 container and 27 of 27 worker tests, andverify:rust.🤖 Generated with Claude Code
https://claude.ai/code/session_01Kd6o1Z1SyHWnAVybcR6bLE