Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate release AMI gc to ci-automation #1952

Merged
merged 1 commit into from
Apr 29, 2024
Merged

Migrate release AMI gc to ci-automation #1952

merged 1 commit into from
Apr 29, 2024

Conversation

pothos
Copy link
Member

@pothos pothos commented Apr 24, 2024

The deletion of old release AMIs was still relying on the previous Jenkins setup. Move this to the ci-automation folder.

How to use

Testing done

It worked on a manual run in Jenkins: Pruning complete: {total:508 kept:42 skipped:420 recentlyUsed:4 softDeleted:42 deleted:0} and similar showed up 8 times.

The deletion of old release AMIs was still relying on the previous
Jenkins setup. Move this to the ci-automation folder.
@pothos pothos requested a review from a team April 24, 2024 08:02
Copy link
Member

@krnowak krnowak left a comment

Choose a reason for hiding this comment

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

Two questions, otherwise looks good.

@@ -256,6 +256,7 @@ function _garbage_collect_impl() {
docker run --pull always --rm --net host \
--env AZURE_AUTH_CREDENTIALS --env AZURE_PROFILE \
--env AWS_ACCESS_KEY_ID --env AWS_SECRET_ACCESS_KEY \
--env AWS_CREDENTIALS \
Copy link
Member

Choose a reason for hiding this comment

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

I suppose that these are yet different stuff from AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think yes, the test and release credentials are different

Copy link
Member

Choose a reason for hiding this comment

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

We probably could just drop this whole directory, no?

Copy link
Member Author

Choose a reason for hiding this comment

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

We would have to migrate the jenkins/systemd-run-wrap.sh script which is used by jenkins-os/container/ but otherwise yes, possible.

@pothos pothos merged commit 0141b6f into main Apr 29, 2024
1 check failed
@pothos pothos deleted the kai/gc-release branch April 29, 2024 12:03
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.

2 participants