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

chore(ci): rename acctest workflow since it only applies to Metal #728

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

ctreatma
Copy link
Contributor

No description provided.

@@ -110,7 +110,7 @@ jobs:
METAL_AUTH_TOKEN: ${{ secrets.METAL_AUTH_TOKEN }}
TF_ACC_METAL_DEDICATED_CONNECTION_ID: ${{ secrets.TF_ACC_METAL_DEDICATED_CONNECTION_ID }}
run: |
go test ./... -v -coverprofile coverage.txt -covermode=atomic -count 1 -parallel 8 -run "(Metal)|(Provider)|(Migration)" -timeout 180m
go test ./... -v -coverprofile coverage.txt -covermode=atomic -count 1 -parallel 8 -run "(Metal)" -timeout 180m
Copy link
Member

Choose a reason for hiding this comment

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

I was curious if there were tests like FCR...Metal. There are not.

$ git grep 'func\ Test.*Metal' |  grep -E -v -e 'TestAcc((Pre)?Check)?(?i:(Data|Re)Source)?Metal'
internal/resources/metal/vlan/datasource_test.go:func TestMetalVlan_matchingVlan(t *testing.T) {

@@ -50,7 +50,7 @@ jobs:
run: go build -v .

- name: TF tests
run: go test -v --coverprofile coverage.txt -covermode=atomic -parallel 4 $(go list ./... |grep -v 'tests')
run: go test -v --coverprofile coverage.txt -covermode=atomic -parallel 4 ./...
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps the intent of the old code was to ignore coverage of the tests themselves (or testing_helpers). Should be fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The go list subcommand was added to avoid running the terragrunt tests in the tests directory since there was no way to make them work in CI. Those tests have since been deleted, so the subcommand was effectively a no-op after that.

@ctreatma ctreatma merged commit f148bf5 into main Jul 11, 2024
5 of 6 checks passed
@ctreatma ctreatma deleted the acctest-restructure branch July 11, 2024 16:55
Copy link

This PR is included in version 2.2.0 🎉

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.

None yet

2 participants