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: run provider tests in parallel #511

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

wallyworld
Copy link
Member

@wallyworld wallyworld commented Jul 4, 2024

Description

The provider tests take a while to run. They create different models.
So they can be run in parallel to speed things up.

In the Juju smoke tests, there are 3 main culprits:

--- PASS: TestAcc_ResourceOffer (326.92s)
--- PASS: TestAcc_ResourceIntegrationWithMultipleConsumers (326.57s)
--- PASS: TestAcc_ResourceIntegrationWithViaCIDRs (321.36s)

Running these in parallel would save 10 minutes.

Also skip provider tests if -short flag is used.

These changes are just to the test files.

Type of change

  • Change in tests (one or several tests have been changed)

QA steps

go test ./...

Additional notes

This is an attempt to get the pre merge tests on the juju project running faster.

Also skip provider tests if -short flag is used.
@wallyworld wallyworld merged commit 440cd6a into juju:main Jul 4, 2024
25 of 26 checks passed
hmlanigan added a commit to hmlanigan/terraform-provider-juju that referenced this pull request Jul 9, 2024
This reverts commit 440cd6a, reversing
changes made to a14a1ed.
hmlanigan added a commit to hmlanigan/terraform-provider-juju that referenced this pull request Jul 10, 2024
…ests"

This reverts commit 440cd6a, reversing
changes made to a14a1ed.
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.

2 participants