Skip to content

Conversation

@ggiguash
Copy link
Contributor

@ggiguash ggiguash commented Dec 2, 2025

  • Add an optional uname override
  • Add dellast function
  • Prevent deletion of the only cache tag
  • Prevent reset to a non-existing cache tag

Co-authored-by: @agullon

Testing error handling

$ export AWS_BUCKET_NAME=microshift-build-cache-us-west-2

# Cannot delete the current 'last' without resetting it
$ ./test/bin/manage_build_cache.sh dellast -b release-4.21 -t 251207
You can now run: /home/microshift/microshift/_output/bin/aws --version
ERROR: Cannot delete 'last' tag because it is the same as the new '251207' tag

# Cannot set the 'last' to a non-existent tag
$ ./test/bin/manage_build_cache.sh dellast -b release-4.21 -t 251205
Checking contents of 's3://microshift-build-cache-us-west-2/release-4.21/x86_64/251205'
ERROR: Cannot reset 'last' tag to a non-existent '251205' tag

Testing with the default architecture

$ export AWS_BUCKET_NAME=microshift-build-cache-us-west-2

$ ./test/bin/manage_build_cache.sh dellast -b release-4.21 -t 251206
Checking contents of 's3://microshift-build-cache-us-west-2/release-4.21/x86_64/251206'
Updating 's3://microshift-build-cache-us-west-2/release-4.21/x86_64/last' with the '251206' tag
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/vm-storage/rhel96-bootc-brew-ec-with-optional.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/vm-storage/rhel-9.6.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/vm-storage/rhel100-bootc.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/brew-rpms.tar
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/repo.tar
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/vm-storage/rhel96-bootc.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/vm-storage/rhel-9.6-microshift-4.20.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/mirror-registry.tar

Testing with non-default architecture

$ export AWS_BUCKET_NAME=microshift-build-cache-us-west-2

$ ./test/bin/manage_build_cache.sh dellast -b release-4.21 -t 251206 -a aarch64
Checking contents of 's3://microshift-build-cache-us-west-2/release-4.21/aarch64/251206'
Updating 's3://microshift-build-cache-us-west-2/release-4.21/aarch64/last' with the '251206' tag
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/vm-storage/rhel-9.6.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/vm-storage/rhel-9.6-microshift-4.20.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/vm-storage/rhel96-bootc-brew-ec-with-optional.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/brew-rpms.tar
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/vm-storage/rhel100-bootc.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/repo.tar
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/vm-storage/rhel96-bootc.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/mirror-registry.tar

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Dec 2, 2025
@openshift-ci-robot
Copy link

@ggiguash: This pull request explicitly references no jira issue.

In response to this:

  • Add an optional uname override
  • Add dellast function
  • Prevent deletion of the only cache subdir

Co-authored-by: @agullon

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 2, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 2, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 2, 2025
@ggiguash
Copy link
Contributor Author

ggiguash commented Dec 2, 2025

/test verify

@ggiguash ggiguash changed the title NO-ISSUE: Cache management new functionality USHIFT-6364: Cache management new functionality Dec 5, 2025
@openshift-ci-robot
Copy link

openshift-ci-robot commented Dec 5, 2025

@ggiguash: This pull request references USHIFT-6364 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.21.0" version, but no target version was set.

In response to this:

  • Add an optional uname override
  • Add dellast function
  • Prevent deletion of the only cache subdir

Co-authored-by: @agullon

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot
Copy link

openshift-ci-robot commented Dec 7, 2025

@ggiguash: This pull request references USHIFT-6364 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.21.0" version, but no target version was set.

In response to this:

  • Add an optional uname override
  • Add dellast function
  • Prevent deletion of the only cache subdir

Co-authored-by: @agullon

Testing error handling

$ export AWS_BUCKET_NAME=microshift-build-cache-us-west-2

# Cannot delete the current 'last' without resetting it
$ ./test/bin/manage_build_cache.sh dellast -b release-4.21 -t 251207
You can now run: /home/microshift/microshift/_output/bin/aws --version
ERROR: Cannot delete 'last' tag because it is the same as the new '251207' tag

# Cannot set the 'last' to a non-existent tag
$ ./test/bin/manage_build_cache.sh dellast -b release-4.21 -t 251205
Checking contents of 's3://microshift-build-cache-us-west-2/release-4.21/x86_64/251205'
ERROR: Cannot reset 'last' tag to a non-existent '251205' tag

Testing with the default -a architecture

$ export AWS_BUCKET_NAME=microshift-build-cache-us-west-2

$ ./test/bin/manage_build_cache.sh dellast -b release-4.21 -t 251206
Checking contents of 's3://microshift-build-cache-us-west-2/release-4.21/x86_64/251206'
Updating 's3://microshift-build-cache-us-west-2/release-4.21/x86_64/last' with the '251206' tag
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/vm-storage/rhel96-bootc-brew-ec-with-optional.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/vm-storage/rhel-9.6.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/vm-storage/rhel100-bootc.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/brew-rpms.tar
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/repo.tar
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/vm-storage/rhel96-bootc.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/vm-storage/rhel-9.6-microshift-4.20.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/mirror-registry.tar

Testing with non-default -a architecture

$ export AWS_BUCKET_NAME=microshift-build-cache-us-west-2

$ ./test/bin/manage_build_cache.sh dellast -b release-4.21 -t 251206 -a aarch64
Checking contents of 's3://microshift-build-cache-us-west-2/release-4.21/aarch64/251206'
Updating 's3://microshift-build-cache-us-west-2/release-4.21/aarch64/last' with the '251206' tag
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/vm-storage/rhel-9.6.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/vm-storage/rhel-9.6-microshift-4.20.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/vm-storage/rhel96-bootc-brew-ec-with-optional.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/brew-rpms.tar
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/vm-storage/rhel100-bootc.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/repo.tar
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/vm-storage/rhel96-bootc.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/mirror-registry.tar

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@ggiguash ggiguash marked this pull request as ready for review December 7, 2025 07:12
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 7, 2025
@openshift-ci openshift-ci bot requested review from eslutsky and jerpeter1 December 7, 2025 07:12
@openshift-ci-robot
Copy link

openshift-ci-robot commented Dec 7, 2025

@ggiguash: This pull request references USHIFT-6364 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.21.0" version, but no target version was set.

In response to this:

  • Add an optional uname override
  • Add dellast function
  • Prevent deletion of the only cache tag
  • Prevent reset to a non-existing cache tag

Co-authored-by: @agullon

Testing error handling

$ export AWS_BUCKET_NAME=microshift-build-cache-us-west-2

# Cannot delete the current 'last' without resetting it
$ ./test/bin/manage_build_cache.sh dellast -b release-4.21 -t 251207
You can now run: /home/microshift/microshift/_output/bin/aws --version
ERROR: Cannot delete 'last' tag because it is the same as the new '251207' tag

# Cannot set the 'last' to a non-existent tag
$ ./test/bin/manage_build_cache.sh dellast -b release-4.21 -t 251205
Checking contents of 's3://microshift-build-cache-us-west-2/release-4.21/x86_64/251205'
ERROR: Cannot reset 'last' tag to a non-existent '251205' tag

Testing with the default -a architecture

$ export AWS_BUCKET_NAME=microshift-build-cache-us-west-2

$ ./test/bin/manage_build_cache.sh dellast -b release-4.21 -t 251206
Checking contents of 's3://microshift-build-cache-us-west-2/release-4.21/x86_64/251206'
Updating 's3://microshift-build-cache-us-west-2/release-4.21/x86_64/last' with the '251206' tag
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/vm-storage/rhel96-bootc-brew-ec-with-optional.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/vm-storage/rhel-9.6.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/vm-storage/rhel100-bootc.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/brew-rpms.tar
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/repo.tar
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/vm-storage/rhel96-bootc.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/vm-storage/rhel-9.6-microshift-4.20.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/mirror-registry.tar

Testing with non-default -a architecture

$ export AWS_BUCKET_NAME=microshift-build-cache-us-west-2

$ ./test/bin/manage_build_cache.sh dellast -b release-4.21 -t 251206 -a aarch64
Checking contents of 's3://microshift-build-cache-us-west-2/release-4.21/aarch64/251206'
Updating 's3://microshift-build-cache-us-west-2/release-4.21/aarch64/last' with the '251206' tag
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/vm-storage/rhel-9.6.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/vm-storage/rhel-9.6-microshift-4.20.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/vm-storage/rhel96-bootc-brew-ec-with-optional.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/brew-rpms.tar
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/vm-storage/rhel100-bootc.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/repo.tar
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/vm-storage/rhel96-bootc.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/mirror-registry.tar

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot
Copy link

openshift-ci-robot commented Dec 7, 2025

@ggiguash: This pull request references USHIFT-6364 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.21.0" version, but no target version was set.

In response to this:

  • Add an optional uname override
  • Add dellast function
  • Prevent deletion of the only cache tag
  • Prevent reset to a non-existing cache tag

Co-authored-by: @agullon

Testing error handling

$ export AWS_BUCKET_NAME=microshift-build-cache-us-west-2

# Cannot delete the current 'last' without resetting it
$ ./test/bin/manage_build_cache.sh dellast -b release-4.21 -t 251207
You can now run: /home/microshift/microshift/_output/bin/aws --version
ERROR: Cannot delete 'last' tag because it is the same as the new '251207' tag

# Cannot set the 'last' to a non-existent tag
$ ./test/bin/manage_build_cache.sh dellast -b release-4.21 -t 251205
Checking contents of 's3://microshift-build-cache-us-west-2/release-4.21/x86_64/251205'
ERROR: Cannot reset 'last' tag to a non-existent '251205' tag

Testing with the default architecture

$ export AWS_BUCKET_NAME=microshift-build-cache-us-west-2

$ ./test/bin/manage_build_cache.sh dellast -b release-4.21 -t 251206
Checking contents of 's3://microshift-build-cache-us-west-2/release-4.21/x86_64/251206'
Updating 's3://microshift-build-cache-us-west-2/release-4.21/x86_64/last' with the '251206' tag
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/vm-storage/rhel96-bootc-brew-ec-with-optional.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/vm-storage/rhel-9.6.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/vm-storage/rhel100-bootc.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/brew-rpms.tar
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/repo.tar
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/vm-storage/rhel96-bootc.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/vm-storage/rhel-9.6-microshift-4.20.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/x86_64/251207/mirror-registry.tar

Testing with non-default architecture

$ export AWS_BUCKET_NAME=microshift-build-cache-us-west-2

$ ./test/bin/manage_build_cache.sh dellast -b release-4.21 -t 251206 -a aarch64
Checking contents of 's3://microshift-build-cache-us-west-2/release-4.21/aarch64/251206'
Updating 's3://microshift-build-cache-us-west-2/release-4.21/aarch64/last' with the '251206' tag
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/vm-storage/rhel-9.6.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/vm-storage/rhel-9.6-microshift-4.20.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/vm-storage/rhel96-bootc-brew-ec-with-optional.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/brew-rpms.tar
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/vm-storage/rhel100-bootc.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/repo.tar
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/vm-storage/rhel96-bootc.iso
delete: s3://microshift-build-cache-us-west-2/release-4.21/aarch64/251207/mirror-registry.tar

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

Copy link
Contributor

@pacevedom pacevedom left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Dec 7, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 7, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ggiguash, pacevedom

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ggiguash
Copy link
Contributor Author

ggiguash commented Dec 7, 2025

/override ci/prow/e2e-aws-tests-arm ci/prow/e2e-aws-tests-bootc-periodic ci/prow/e2e-aws-tests-bootc-periodic-arm ci/prow/e2e-aws-tests-periodic ci/prow/e2e-aws-tests-periodic-arm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 7, 2025

@ggiguash: Overrode contexts on behalf of ggiguash: ci/prow/e2e-aws-tests-arm, ci/prow/e2e-aws-tests-bootc-periodic, ci/prow/e2e-aws-tests-bootc-periodic-arm, ci/prow/e2e-aws-tests-periodic, ci/prow/e2e-aws-tests-periodic-arm

In response to this:

/override ci/prow/e2e-aws-tests-arm ci/prow/e2e-aws-tests-bootc-periodic ci/prow/e2e-aws-tests-bootc-periodic-arm ci/prow/e2e-aws-tests-periodic ci/prow/e2e-aws-tests-periodic-arm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@ggiguash
Copy link
Contributor Author

ggiguash commented Dec 7, 2025

See the PR description
/verified by manual-tests

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 7, 2025

@ggiguash: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Dec 7, 2025
@openshift-ci-robot
Copy link

@ggiguash: This PR has been marked as verified by manual-tests.

In response to this:

See the PR description
/verified by manual-tests

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-merge-bot openshift-merge-bot bot merged commit 9a233dd into openshift:main Dec 7, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants