Skip to content

Change s3_touch() to tag objects and re-enable the function on cache hits [HMS-11071] - #2660

Merged
achilleas-k merged 5 commits into
osbuild:mainfrom
achilleas-k:touch-the-json
Sep 5, 2026
Merged

achilleas-k merged 5 commits into
osbuild:mainfrom
achilleas-k:touch-the-json

Conversation

@achilleas-k

Copy link
Copy Markdown
Member

Instead of adding metadata, which requires copying a file over itself and can take time, tag an object with a DeleteAfter date that the cloud-cleaner reads to determine if an object should be deleted. Unlike the previous method of modifying objects, this does not change the mtime. However, the action is a single (fast) API call.

See also osbuild/cloud-cleaner#59

@achilleas-k
achilleas-k requested review from a team and thozza as code owners September 4, 2026 11:47
Our uploaders print status messages to stderr.  Print them when running
tests.
Comment thread test/scripts/imgtestlib/cache.py Resolved
Comment thread test/scripts/imgtestlib/core.py Resolved
Instead of adding metadata, which requires copying a file over itself
and can take time, tag an object with a DeleteAfter date that the
cloud-cleaner reads to determine if an object should be deleted [1].
Unlike the previous method of modifying objects, this does not change
the mtime.  However, the action is a single (fast) API call.

[1] osbuild/cloud-cleaner#59
When an image and its metadata are uploaded for the first time, set the
DeleteAfter tag.

@brlane-rht brlane-rht left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent idea!

@achilleas-k
achilleas-k added this pull request to the merge queue Sep 5, 2026
Merged via the queue into osbuild:main with commit c9b505a Sep 5, 2026
54 checks passed
@achilleas-k
achilleas-k deleted the touch-the-json branch September 5, 2026 12:07
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.

Updating the modification time of images in the CI cache takes too long (HMS-11071)

3 participants