Skip to content

Conversation

kmruiz
Copy link
Collaborator

@kmruiz kmruiz commented Oct 2, 2025

Proposed changes

Runs a nightly script that cleans up stale test environments. This is necessary because in cloud-env there might be hiccups and tell a cluster was going to be deleted but then it's not.

Checklist

@kmruiz kmruiz requested a review from a team as a code owner October 2, 2025 13:18
@Copilot Copilot AI review requested due to automatic review settings October 2, 2025 13:18
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 adds automated cleanup functionality for stale Atlas test environments by introducing a nightly CI job that removes old test projects and their associated clusters.

  • Implements a cleanup script that identifies and removes test projects older than 24 hours
  • Adds a GitHub Actions workflow that runs the cleanup script nightly via cron schedule
  • Provides manual trigger capability through workflow_dispatch for on-demand cleanup

Reviewed Changes

Copilot reviewed 2 out of 8 changed files in this pull request and generated 3 comments.

File Description
scripts/cleanupAtlasTestLeftovers.test.ts Implements the cleanup logic to find and delete stale Atlas test projects and clusters
.github/workflows/cleanup-atlas-env.yml Defines the CI workflow that runs the cleanup script on a nightly schedule

kmruiz and others added 3 commits October 2, 2025 15:19
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@coveralls
Copy link
Collaborator

coveralls commented Oct 2, 2025

Pull Request Test Coverage Report for Build 18194665523

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.009%) to 82.501%

Totals Coverage Status
Change from base Build 18192383441: -0.009%
Covered Lines: 5296
Relevant Lines: 6308

💛 - Coveralls

@kmruiz kmruiz enabled auto-merge (squash) October 2, 2025 13:36
@kmruiz kmruiz disabled auto-merge October 2, 2025 13:40
@kmruiz kmruiz merged commit b9aa684 into main Oct 2, 2025
16 of 17 checks passed
@kmruiz kmruiz deleted the chore/atlas-cleanup branch October 2, 2025 13:40
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