-
-
Notifications
You must be signed in to change notification settings - Fork 9
Large module init causes not all releases to be made #129
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
Comments
Hey @sorliem - Thank you for catching this and for the kind words about the project! While I thought I had pagination implemented for most API calls, I clearly missed this one for pull request files. As a temporary workaround: any subsequent commit should trigger the releaser on the remaining 3 modules that weren't processed in the first run. Could you let me know if this works for your case? I'll prioritize adding proper pagination for the PR files endpoint to handle repositories with >30 module changes. I'll ping you once I've released a new version with the fix. Thanks again for bringing this to our attention - these are exactly the kind of edge cases we need to catch to make the tool more robust! 🙌 |
Hi @virgofx - Yep I created another PR with the remaining three modules and it ran fine. Thanks again! |
Great news! Glad you're all set with the current workaround. This is definitely valid edge case and I'll get this fixed soon time permitting. |
Hi @virgofx - here's the config for the run that init'd 30 of the 33 modules
Other than that I don't have any other relevant logs. Glad to see the test working, that looks right to me! |
Hi @sorliem - Do you know if it showed all 33 modules correctly in the PR comment prior to merging? (or was it 30?). Was the issue that it actually only released 30 of 33 (e.g. only 30 tags/releases) ? |
It showed 30 modules in the github comment 'Release Plan' table and only created 30 releases. I made a follow up PR touching the remaining 3 modules and it created a Release Plan with 3 releases and created 3 Github Releases. |
Hello - first, thanks for making this!
When I went to init all my existing 33 modules at v1.0.0, I hit an issue where only 30 Github Releases were created. My PR had 33 files changed to trigger terraform-modules-releaser on each one, but in the "Finding all Terraform modules with corresponding changes" step, it said:
Looking at the Github api it looks like 30 is the default: https://docs.github.com/en/rest/pulls/pulls?apiVersion=2022-11-28#list-pull-requests-files
This is a bit of an edge case but paging would be helpful here. If I get some time I can take a crack at a fix.
The text was updated successfully, but these errors were encountered: