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: Tries to reduce OUT_OF_CAPACITY during tests by moving cluster creation to other cloud providers #2206

Merged
merged 8 commits into from
May 2, 2024

Conversation

marcosuma
Copy link
Collaborator

@marcosuma marcosuma commented Apr 24, 2024

Description

Please include a summary of the fix/feature/change, including any relevant motivation and context.

Link to any related issue(s):

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. A migration guide must be created or updated if the new feature will go in a major version.
  • Breaking change (fix or feature that would cause existing functionality to not work as expected). Please, add the "breaking change" label to the PR. A migration guide must be created or updated.
  • This change requires a documentation update
  • Documentation fix/enhancement

Required Checklist:

  • I have signed the MongoDB CLA
  • I have read the contributing guides
  • I have checked that this change does not generate any credentials and that they are NOT accidentally logged anywhere.
  • 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
  • If changes include deprecations or removals, I defined an isolated PR with a relevant title as it will be used in the auto-generated changelog.
  • If changes include removal or addition of 3rd party GitHub actions, I updated our internal document. Reach out to the APIx Integration slack channel to get access to the internal document.

Further comments

Config: configDS(orgID, projectName, clusterName, name),
Check: resource.ComposeTestCheckFunc(
checkExists(resourceName),
resource.TestCheckResourceAttrSet(resourceName, "project_id"),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this was supposed to be a DS test, but was checking the resource

Copy link
Member

Choose a reason for hiding this comment

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

not the first time I found that

@marcosuma marcosuma marked this pull request as ready for review April 30, 2024 11:10
@marcosuma marcosuma requested a review from a team as a code owner April 30, 2024 11:10
@@ -142,3 +151,62 @@ func configBasic(orgID, projectName, clusterName, pipelineName string) string {
}
`, orgID, projectName, clusterName, pipelineName)
}

func configBasicWithPluralDS(orgID, projectName, firstClusterName, secondClusterName, firstPipelineName, secondPipelineName string) string {
Copy link
Member

@lantoli lantoli Apr 30, 2024

Choose a reason for hiding this comment

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

function name is misleading as it adds not only plural ds but a cluster resource and a singular ds.

can't it be the same configBasic function creating all resources needed?

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'd avoid that because configBasic is also called for the migration test, and it wouldn't be basic anymore because it actually creates two clusters and two data lakes in order to test the plural part of it.

Would you suggest a different name perhaps?

Copy link
Collaborator Author

@marcosuma marcosuma May 2, 2024

Choose a reason for hiding this comment

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

@lantoli I am going to go ahead with this so I can get unblocked (since it's public holiday for you). Sorry about that, we can always change it in a follow-up PR.

Copy link
Member

Choose a reason for hiding this comment

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

ok, that's fine

@marcosuma marcosuma merged commit f2e87a8 into master May 2, 2024
52 checks passed
@marcosuma marcosuma deleted the CLOUDP-245358-reduce-OUT_OF_CAPACITY-errors branch May 2, 2024 05:13
lantoli added a commit that referenced this pull request May 3, 2024
* master:
  chore: Minimise permissions when not needed. (#2220)
  chore: Bump github.com/aws/aws-sdk-go from 1.51.27 to 1.51.32 (#2225)
  chore: Bump crazy-max/ghaction-import-gpg from 2 to 6 (#2227)
  chore: Bump tj-actions/verify-changed-files (#2229)
  chore: Bump actions/checkout from 4.1.2 to 4.1.4 (#2228)
  chore: Bump peter-evans/create-pull-request from 6.0.4 to 6.0.5 (#2230)
  chore: Bump hashicorp/setup-terraform from 3.0.0 to 3.1.0 (#2231)
  chore: Tries to reduce OUT_OF_CAPACITY during tests by moving cluster creation to other cloud providers (#2206)
  fix: Fixes push-based log export migration tests (#2224)
  chore: Updates CHANGELOG.md for #2221
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