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

INTMDB-878: [Terraform] Improve acceptance test setup to run in parallel & against cloud-dev - Network #1260

Merged
merged 7 commits into from
Jun 21, 2023

Conversation

andreaangiolillo
Copy link
Collaborator

@andreaangiolillo andreaangiolillo commented Jun 21, 2023

Description

This PR moves the network tests from the old workflow (~ 2 hours to run) to a new one running the tests concurrently and against cloud-dev (~ 15 minutes). The new workflow splits the network tests into two GitHub Jobs.

GitHub Action Now (5332697190)

Screenshot 2023-06-21 at 12 17 25

GitHub Action Before (5245497202)

Screenshot 2023-06-21 at 12 02 56

Type of change:

  • Bug fix (non-breaking change which fixes an issue). Please, add the "bug" label to the PR.
  • New feature (non-breaking change which adds functionality). Please, add the "enhancement" label to the PR.
  • Breaking change (fix or feature that would cause existing functionality to not work as expected). Please, add the "breaking change" label to the PR.
  • This change requires a documentation update
  • Documentation fix/enhancement

Required Checklist:

  • I have signed the MongoDB CLA
  • I have read the contribution guidelines
  • I have added tests that prove my fix is effective or that my feature works per HashiCorp requirements
  • I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code

Further comments

Screenshot 2023-06-21 at 11 34 49

@@ -1,118 +0,0 @@
package mongodbatlas
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have moved the data source tests into the resource tests. By doing this, there is no need to create a new serverless cluster specifically for these tests. Instead, we can efficiently reuse the clusters that are already created for the resource tests.

@andreaangiolillo andreaangiolillo marked this pull request as ready for review June 21, 2023 10:36
@andreaangiolillo andreaangiolillo requested a review from a team as a code owner June 21, 2023 10:36
)

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
resource.ParallelTest(t, resource.TestCase{
Copy link
Collaborator

Choose a reason for hiding this comment

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

I still can't get over how simple a change this is vs the impact it has. Great work!

Copy link
Collaborator

@colm-quinn colm-quinn left a comment

Choose a reason for hiding this comment

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

LGTM, great work here!

@andreaangiolillo andreaangiolillo merged commit d9b0e42 into master Jun 21, 2023
17 checks passed
@andreaangiolillo andreaangiolillo deleted the INTMDB-878 branch June 21, 2023 14:21
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

3 participants