Skip to content

Conversation

@leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Apr 30, 2024

What

Embed examples contract list into source and remove from build script.

Why

When running a lot of builds repeatedly, such as in CI, we're hitting GitHub rate limits on almost every build. It's convenient that the list is auto updated at every build, but we don't really need it to be updated that frequently. We'll get 90% of the same benefit with a reminder that it's got out of sync to update it from time to time with a command.

The added check will run once a commit, but won't block builds if we do rate limit or if it's out of date. Folks can run the generate make target as needed to get the check back to green.

This also means that cargo installing the crate will no longer phone out to GitHub and potentially get blocked too.

@leighmcculloch leighmcculloch requested a review from fnando April 30, 2024 05:19
@leighmcculloch leighmcculloch marked this pull request as ready for review April 30, 2024 05:32
Copy link
Collaborator

@elizabethengelman elizabethengelman left a comment

Choose a reason for hiding this comment

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

This looks good to me! 👏 🙏

@leighmcculloch leighmcculloch enabled auto-merge (squash) April 30, 2024 21:12
@leighmcculloch leighmcculloch merged commit ea25467 into main Apr 30, 2024
@leighmcculloch leighmcculloch deleted the example-contract-list branch April 30, 2024 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants