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

Ensure that resource group naming is deterministic #1041

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

iwahbe
Copy link
Member

@iwahbe iwahbe commented Apr 27, 2023

Fixes pulumi/pulumi-gitlab#224

This bug manifested as occasionally missing (or emerging) example blocks in gitlab (and I suspect aws).

@iwahbe iwahbe requested review from t0yv0 and jazzyfresh April 27, 2023 01:17
@iwahbe iwahbe self-assigned this Apr 27, 2023
@github-actions
Copy link

Diff for pulumi-azuread with merge commit 4799ee6

@github-actions
Copy link

Diff for pulumi-random with merge commit 4799ee6

Copy link
Contributor

@jazzyfresh jazzyfresh left a comment

Choose a reason for hiding this comment

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

LGTM. Would like to see the test you mentioned in bridge testing, if possible.

@github-actions
Copy link

Diff for pulumi-gcp with merge commit 4799ee6

@github-actions
Copy link

Diff for pulumi-azure with merge commit 4799ee6

@iwahbe
Copy link
Member Author

iwahbe commented Apr 27, 2023

I'm unable to repro the original issue in a contained test. I'm going to merge now and add a follow-up issue to add a test.

@iwahbe iwahbe merged commit 59cb763 into master Apr 27, 2023
@iwahbe iwahbe deleted the iwahbe/ensure-tf-pulumi-naming-determinism branch April 27, 2023 02:11
@iwahbe iwahbe mentioned this pull request Apr 27, 2023
}
sort.Strings(keys)

for _, name := range keys {
Copy link
Member

Choose a reason for hiding this comment

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

You could probably do a one-liner

	for _, name := range codegen.SortedKeys(resourceGroups) {

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.

Non-deterministic example generation sometimes fails CI checks
3 participants