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

ci(tests): add sweeper to destroy resources after test runs #658

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

jeff-held-aiven
Copy link
Contributor

Adds sweep target to Makefile, which will run a sweeper to delete resources in a project. This would include:

  • services that have "test-" as a prefix for their name
  • service integration endpoints
  • VPCs

@jeff-held-aiven jeff-held-aiven requested a review from a team February 28, 2024 14:40
@jeff-held-aiven jeff-held-aiven force-pushed the jeff-held-aiven-sweep-resources branch 2 times, most recently from 4919011 to dc41159 Compare February 28, 2024 16:01
Copy link
Contributor

@Serpentiel Serpentiel left a comment

Choose a reason for hiding this comment

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

Please change the commit's prefix to ci(tests).

sweeper/vpcs.go Outdated Show resolved Hide resolved
sweeper/main.go Outdated Show resolved Hide resolved
sweeper/services.go Outdated Show resolved Hide resolved
sweeper/services.go Outdated Show resolved Hide resolved
sweeper/services.go Outdated Show resolved Hide resolved
sweeper/vpcs.go Outdated Show resolved Hide resolved
sweeper/service_integrations.go Outdated Show resolved Hide resolved
@jeff-held-aiven jeff-held-aiven force-pushed the jeff-held-aiven-sweep-resources branch from dc41159 to a88b0a9 Compare February 29, 2024 09:27
@Serpentiel Serpentiel changed the title feat: add sweeper to destroy resources after test runs ci(tests): add sweeper to destroy resources after test runs Feb 29, 2024
Adds `sweep` target to Makefile, which will run a sweeper to delete
resources in a project. This would include:

- services that have "test-" as a prefix for their name
- service integration endpoints
- VPCs

This command is primarily useful for CI, as it is used to cleanup
resources after a test run, but can be used locally.
@jeff-held-aiven jeff-held-aiven force-pushed the jeff-held-aiven-sweep-resources branch from a88b0a9 to fc6d4f0 Compare February 29, 2024 10:06
@jeff-held-aiven jeff-held-aiven dismissed stale reviews from byashimov and Serpentiel February 29, 2024 10:06

Addressed comments

@Serpentiel Serpentiel added the enhancement New feature or request label Feb 29, 2024
Copy link
Contributor

@Serpentiel Serpentiel left a comment

Choose a reason for hiding this comment

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

lgtm, @byashimov @jeff-held-aiven I delegate merging to you folks

Copy link
Contributor

@byashimov byashimov left a comment

Choose a reason for hiding this comment

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

lgtm

@byashimov byashimov merged commit 18c7d7d into main Feb 29, 2024
9 of 10 checks passed
@byashimov byashimov deleted the jeff-held-aiven-sweep-resources branch February 29, 2024 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants