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

[datadog_synthetics_test] Fix steps reordering without local_key #2795

Conversation

Drarig29
Copy link
Contributor

@Drarig29 Drarig29 commented Jan 23, 2025

Terraform applying a browser test with provider version v3.51.0 and steps that do not have a local_key overwrites the element of all steps to the last step’s element.

This is caused by #2741, which compares local_keys together, but doesn't check that they are different than "", which is the default value.

You can see the proof that updated tests would fail without the change: here

@Drarig29 Drarig29 force-pushed the corentin.girard/SYNTH-17998/fix-steps-reordering-without-local-key branch from b25eff5 to 6f74c46 Compare January 23, 2025 13:30
@Drarig29 Drarig29 marked this pull request as ready for review January 23, 2025 14:07
@Drarig29 Drarig29 requested review from a team as code owners January 23, 2025 14:07
Copy link
Contributor

@teodor2312 teodor2312 left a comment

Choose a reason for hiding this comment

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

I didn't look through all of the cassettes but the main changes look good 👍

}

func createSyntethicsBrowserStepMLElement(uniq string) string {
Copy link
Contributor

Choose a reason for hiding this comment

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

lol i was looking at the diff and it still took me like 30sec to figure out what's the difference 😂

@Drarig29 Drarig29 closed this Jan 23, 2025
@Drarig29 Drarig29 reopened this Jan 23, 2025
@Drarig29 Drarig29 added the do-not-merge/WIP Do not merge this PR label Jan 23, 2025
@Drarig29 Drarig29 marked this pull request as draft January 23, 2025 17:42
@Drarig29 Drarig29 removed the do-not-merge/WIP Do not merge this PR label Jan 23, 2025
@Drarig29 Drarig29 marked this pull request as ready for review January 23, 2025 17:49
@nkzou nkzou merged commit 2c2fd75 into master Jan 23, 2025
30 of 31 checks passed
@nkzou nkzou deleted the corentin.girard/SYNTH-17998/fix-steps-reordering-without-local-key branch January 23, 2025 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants