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

Fix the cloud region data source #581

Merged
merged 11 commits into from
Dec 8, 2023
Merged

Conversation

mcasperson
Copy link
Contributor

@mcasperson mcasperson commented Dec 5, 2023

This PR fixes the bug at #580.

The cloud region data source was the only one that removed the endpoint field from the schema. This in turn broke the data source when it tried to flatten targets into the returned results.

Since other data sources leave the endpoint field in the schema, this PR removes the line that deletes the endpoint field.

To speed up the integration tests, the hashicorp-forge/go-test-split-action@v1 action has been added. This runts the integration tests across 15 nodes, reducing the test time to under ten minutes (down from an hour).

The tests were also updated to run against Octopus 2023.4.

@mcasperson mcasperson marked this pull request as ready for review December 5, 2023 05:03
@mcasperson mcasperson enabled auto-merge (squash) December 5, 2023 05:04
Copy link

@borland borland left a comment

Choose a reason for hiding this comment

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

Some drive-by suggestions (because I'm always happy to see progress on terraform/go!) on the Github actions / test side of things, mostly to help make it more understandable.

I'll leave approval to modern deployments, but LGTM if you update the old node version and don't use apt-get to install gotestsum 😄

.github/workflows/integration-tests.yaml Show resolved Hide resolved
.github/workflows/integration-tests.yaml Outdated Show resolved Hide resolved
.github/workflows/integration-tests.yaml Outdated Show resolved Hide resolved
.github/workflows/integration-tests.yaml Show resolved Hide resolved
Copy link
Contributor

@zentron zentron left a comment

Choose a reason for hiding this comment

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

That's some crazy workflow changes to remove one line of code :D

@mcasperson mcasperson merged commit 794c1d3 into main Dec 8, 2023
21 checks passed
@mcasperson mcasperson deleted the mattc/fix_cloud_region_data_source branch December 8, 2023 05:37
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.

3 participants