Skip to content

Conversation

@sharder996
Copy link
Collaborator

@sharder996 sharder996 commented Jan 5, 2026

Switching out the GitHub action used for deleting old package version as cached by vcpkg. The previous action, actions/delete-package-versions, can only handle one package at a time, so a matrix was used to apply the action to all the packages that Multipass uses. GitHub matrices, however, only support up to 256 entries and with moving more dependencies to vcpkg, we are already hitting this limits.

This PR instead uses the smartsquaregmbh/delete-old-packages action which takes a list of packages and apply the operation to all of them at once.

This may hit GitHub API rate limiting, but running the workflow again will pick where the last run failed.

Copy link
Collaborator

@ricab ricab left a comment

Choose a reason for hiding this comment

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

Nice! This makes sense to me and the code looks good.

Although the action is not hugely popular (71 stars now), it looks pretty sane to me and the workflow already restricts permissions as much as possible. We could pin a specific sha instead of a version, to avoid tags moving from under us, but this is not special in that regard.

I have a question inline and I would ask for evidence that this is working properly. Could you provide a link to a successful run please? Did you try dry-run first?

@sharder996
Copy link
Collaborator Author

@ricab Yes, this action is not as relatively popular, but I really didn't want to have to manually call the GitHub API through a script.

I did a couple of test runs. The first failed due to GitHub rate limiting as it was catching up with deleting old packages. It is available here. I manually ran the workflow again which successfully cleaned up the remaining packages. It is available here.

@ricab
Copy link
Collaborator

ricab commented Jan 6, 2026

@ricab Yes, this action is not as relatively popular, but I really didn't want to have to manually call the GitHub API through a script.

Right, I didn't mean to suggest anything like that.

I did a couple of test runs. The first failed due to GitHub rate limiting as it was catching up with deleting old packages. It is available here. I manually ran the workflow again which successfully cleaned up the remaining packages. It is available here.

OK, thank you.

Copy link
Collaborator

@ricab ricab left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for this improvement!

@sharder996 sharder996 requested a review from xmkg January 8, 2026 13:57
Copy link
Member

@xmkg xmkg left a comment

Choose a reason for hiding this comment

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

LGTM, thanks Scott!

@sharder996 sharder996 added this pull request to the merge queue Jan 8, 2026
Merged via the queue into main with commit 8cd004c Jan 8, 2026
10 checks passed
@sharder996 sharder996 deleted the kaizen/avoid-rate-limiting branch January 8, 2026 15:18
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.

4 participants