Skip to content

Conversation

jhamon
Copy link
Collaborator

@jhamon jhamon commented Oct 20, 2024

Problem

Sometimes when test cleanup steps fail, indexes and collections get left behind.

Solution

Create a nightly job to cleanup leftover indexes. Inspect the names of each index and collection to see whether they are more than 24 hours old prior to deleting. This should prevent deleting resources out from underneath any tests that may be running at the same time as the delete job.

Type of Change

  • Infrastructure change (CI configs, etc)

@jhamon jhamon marked this pull request as ready for review October 20, 2024 05:20
@jhamon jhamon merged commit 3780924 into main Oct 21, 2024
84 checks passed
@jhamon jhamon deleted the jhamon/nightly-cleanup branch October 21, 2024 06:15
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.

1 participant