fix(images): build when Ubuntu has upgraded a base package #509
Open
Claude
wants to merge 2 commits from
fix/images-base-upgrade into main
pull from: fix/images-base-upgrade
merge into: Mortis:main
Mortis:main
Mortis:renovate/own-ci-images
Labels
Clear labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Medium
3
The priority is medium
Priority
Low
4
The priority is low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Status
Needs Triage
Maintainer needs to evaluate this issue
Status
Ready for Agent
Fully specified, ready for an AFK agent
Status
Ready for Human
Requires human implementation
Wayfinder
Grilling
Decision ticket resolved in conversation with the maintainer
Wayfinder
Map
Wayfinder map: index of a planning effort and its decision tickets
Wayfinder
Prototype
Decision ticket resolved by reacting to a rough concrete artifact
Wayfinder
Research
Decision ticket resolved by reading outside sources
Wayfinder
Task
Manual work that must happen before a decision can be made
No labels
Milestone
No items
No Milestone
CI velocity (emergency)
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Mortis/Kamino#509
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What and why
Refs #508. The issue stays open until the Images run on
mainhas published all four images.The Images workflow installs its tools in the job container before the build. When Ubuntu has a newer openssl than the base image, that install upgrades
libssl3t64, the clean-base check fails, and no image is built. The newest base images still hold the older openssl, so moving to them does not fix it.--pre-cleanup: it empties the job container's filesystem before it unpacks the base image, so an upgraded package in the job container cannot leave stale files or be missing from the layers.rmfor the last step.apt-get upgradein its existing apt layer, so an image has Ubuntu's newest package versions when it is built.Verified
pre-commit run --all-filesandscripts/check_image_versions.py pinspass.24.04and26.04.Not verified
No image build has run with this change.
image.ymlruns only onmain, so the run after the merge is the first real test. If it fails in the kaniko step after "Deleting filesystem...", remove the--pre-cleanupline; for anything else, revert. Published tags are never moved, so the current pins keep working.A future Ubuntu update that adds a new dependency to a base package would still fail the setup step, because the purge removes that dependency and the base package with it.
A new Ubuntu package alone does not trigger a build. An image is rebuilt only when its inputs change. A scheduled rebuild is not part of this change.
Files I added carry SPDX headers, or are covered by
REUSE.toml(REUSE-clean); no third-party NOTICE is needed.Assisted-by: Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.