Skip to content

Conversation

@tcannon91
Copy link
Collaborator

Proposed changes

Add e2e test step to clean up SPI instances before deleting the cluster.

Jira ticket: CLOUDP-304428

Checklist

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works
  • I have added any necessary documentation in document requirements section listed in CONTRIBUTING.md (if appropriate)
  • I have addressed the @mongodb/docs-cloud-team comments (if appropriate)
  • I have updated test/README.md (if an e2e test has been added)
  • I have run make fmt and formatted my code

@tcannon91 tcannon91 requested a review from jasonrydberg March 11, 2025 13:08
@tcannon91 tcannon91 requested a review from a team as a code owner March 11, 2025 13:08
a.Equal("atlasAdmin", *connection.DbRoleToExecute.Role)
})

t.Run("Delete the streams instance", func(_ *testing.T) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

The test still seems to be failing with

 [2025/03/11 09:13:42.444] Error: https://cloud-dev.mongodb.com/api/atlas/v2/groups/67d036dfd8722a48d94cb45b DELETE: HTTP 409 Conflict (Error code: "CANNOT_CLOSE_GROUP_ACTIVE_STREAMS_RESOURCE") Detail: Cannot close group while there are Stream Processing instances or private networking connections; please terminate all Stream Processing instances private networking resources (e.g. Private Link, VPC Peering etc). Reason: Conflict. Params: [], BadRequestDetail: 
 [2025/03/11 09:13:42.444]     atlas_e2e_test_generator_test.go:107: 5/5 attempts - trying again in 16 seconds: unexpected error while deleting the project "67d036dfd8722a48d94cb45b":  ( (exit status 1))
 [2025/03/11 09:13:42.444]     atlas_e2e_test_generator_test.go:107: we could not delete the project "67d036dfd8722a48d94cb45b"

Do we need to wait for the mms PR to get merged for it to succeed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, this is the test that needs the mms change to succeed. This PR only fixes this failure: https://spruce.mongodb.com/task/mongodb_atlas_cli_master_e2e_atlas_streams_with_clusters_atlas_streams_with_cluster_0b94b5c34855a22d6fea9a8f0675fc130eae5577_25_03_05_11_54_37?execution=0&sortBy=STATUS&sortDir=ASC.

If we would like for me to go ahead and disable the atlas_streams tests that are failing I can do that in this PR

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 will actually just go ahead and remove those tests. They can easily be brought back when the mms change has been merged

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will stop skipping the tests with this ticket: https://jira.mongodb.org/browse/CLOUDP-305842

Copy link
Contributor

Choose a reason for hiding this comment

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

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 am not familiar with the System Failed status in evergreen that is causing this to report as unhealthy: https://evergreen.mongodb.com/build/mongodb_atlas_cli_master_e2e_generic_patch_8657b42f7f4c1a7581a1d106923b68137ce63861_67d03fda2fbca300078da471_25_03_11_13_51_22?redirect_spruce_users=true

Is there a different change I should be making or should I sync with devprod evergreen on how to proceed?

Also, I am not able to see the results from the github action here: https://github.com/mongodb/mongodb-atlas-cli/actions/runs/13789723995/job/38566942431?pr=3727 I am not sure if this is something we are comfortable just bypassing

Copy link
Contributor

Choose a reason for hiding this comment

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

system failed seems related to evg not being able to process the coverage report cc @fmenezes

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The mms cleanup that we wanted for this is merged: https://github.com/10gen/mms/pull/123612. I will wait for it to be deployed to dev, but then I will un skip the tests and that may just "smooth" everything out.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks! Can you also please revert this commit once you merge from master #3731? I had to comment the test to merge some of our deps updates

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

reverted

)

func TestCleanup(t *testing.T) {
t.Skip("skipping cleanup test until CLOUDP-305735 is merged")
Copy link
Contributor

Choose a reason for hiding this comment

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

let's not skip this one, @blva can you go over the dangling groups and manually clean them? they all start with atlasStream
Screenshot 2025-03-11 at 13 49 38

there's about ~10 of them

Copy link
Collaborator

Choose a reason for hiding this comment

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

@gssbzn all deleted

@tcannon91 tcannon91 merged commit 31774f5 into mongodb:master Mar 12, 2025
21 of 22 checks passed
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