Skip to content

Conversation

blva
Copy link
Collaborator

@blva blva commented Oct 2, 2025

Proposed changes

  • just sends the cluster deletion command and not wait for deletion to speed up tests

Checklist

@blva blva marked this pull request as ready for review October 2, 2025 10:01
@blva blva requested a review from a team as a code owner October 2, 2025 10:01
@Copilot Copilot AI review requested due to automatic review settings October 2, 2025 10:01
@blva blva changed the title stop waiting for cluster deletion chore: stop waiting for cluster deletion Oct 2, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR optimizes test execution speed by modifying cluster deletion behavior to not wait for completion, only sending the deletion command.

Key Changes:

  • Replaced deleteAndWaitCluster with a new deleteCluster function that doesn't wait for deletion to complete
  • Added eslint disable comment to preserve the original function for potential cleanup script usage

}
}

async function deleteCluster(session: Session, projectId: string, clusterName: string): Promise<void> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Rather than creating a new function, consider adding an argument to the existing one that indicates whether to wait for the deletion or not.

@coveralls
Copy link
Collaborator

coveralls commented Oct 2, 2025

Pull Request Test Coverage Report for Build 18192134230

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage remained the same at 82.501%

Files with Coverage Reduction New Missed Lines %
src/common/atlas/apiClient.ts 2 77.16%
Totals Coverage Status
Change from base Build 18188532331: 0.0%
Covered Lines: 5296
Relevant Lines: 6308

💛 - Coveralls

@blva blva merged commit 1d33b4b into main Oct 2, 2025
18 checks passed
@blva blva deleted the stop-waiting-deletion branch October 2, 2025 12:04
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