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

tools/extract-tf-resource-ids: support for large changesets #3340

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

tombuildsstuff
Copy link
Contributor

This PR updates the extract-tf-resource-id tool such that it works with larger sets of changes which is necessary since both sets of API Definitions are currently being output. This fixes an issue seen in #3339 where changesets containing over 3000 files changed wouldn't get a diff output.

Since this'll be replaced in the not-too-distant future by #3315 - I've opted just to pull the raw diff (which is complete) rather than iterating over the pages (which doesn't appear to be supported by the GitHub SDK)

This PR also updated the GitHub Action, since it appears the file trigger/filter only takes note of the first 3000 files changed - and not the entire changeset - which should ensure this triggers for any API Definition regenerations until #3315 is implemented

Example comment using this PR: #3339 (comment)

This PR updates the `extract-tf-resource-id` tool such that it works with larger sets of changes
which is necessary since both sets of API Definitions are currently being output.
@tombuildsstuff tombuildsstuff requested a review from a team November 13, 2023 17:42
@tombuildsstuff tombuildsstuff added bug Something isn't working area/resource-ids Related to Resource IDs, Parsers and Formatters labels Nov 13, 2023
@tombuildsstuff tombuildsstuff force-pushed the b/v1-differ branch 2 times, most recently from 0f36a0d to 656326d Compare November 14, 2023 09:29
Copy link
Member

@mbfrahry mbfrahry left a comment

Choose a reason for hiding this comment

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

LGTM

@tombuildsstuff tombuildsstuff merged commit 312d520 into main Nov 15, 2023
1 check passed
@tombuildsstuff tombuildsstuff deleted the b/v1-differ branch November 15, 2023 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/resource-ids Related to Resource IDs, Parsers and Formatters bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants