Skip to content

Remove sweeper #9677

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

Merged
merged 1 commit into from
May 4, 2022
Merged

Remove sweeper #9677

merged 1 commit into from
May 4, 2022

Conversation

mads-hartmann
Copy link
Contributor

@mads-hartmann mads-hartmann commented May 2, 2022

Description

We're no longer relying on Sweeper for cleaning up preview environments. It has been superseded by our Werft cleanup job instead.

This PR removes everything related to Sweeper. Once this is merged we can later do the last bit of cleanup on the ops side of this here https://github.com/gitpod-io/ops/pull/2081

Related Issue(s)

Fixes https://github.com/gitpod-io/ops/issues/2079

How to test

  • That core-dev and helm-based preview environments don't get sweeper and still works - werft run github -a without-vm=true -a with-helm=true
  • That VM and installer-based preview environments don't get sweeper and still works - werft run github

Release Notes

NONE

Documentation

N/A

@@ -83,8 +83,6 @@ export async function deployToPreviewEnvironment(werft: Werft, jobConfig: JobCon
| yq r - data['.dockerconfigjson'] \
| base64 -d)" | base64 -w 0`, { silent: true }).stdout.trim();

const sweeperImage = exec(`tar xfO /tmp/dev.tar.gz ./sweeper.txt`).stdout.trim();
Copy link
Contributor Author

@mads-hartmann mads-hartmann May 2, 2022

Choose a reason for hiding this comment

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

Because of this change all jobs the run off main (which is the default due to job protection) are going to fail as this file no longer exists for builds on this branch.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This can be worked around by running the werft job manually, but instructing it to update the GH status like so

werft run github -aupdateGitHubStatus=gitpod-io/gitpod

This is what I did here: https://werft.gitpod-dev.com/job/gitpod-build-mads-remove-sweeper.11

@mads-hartmann mads-hartmann force-pushed the mads/remove-sweeper branch from c6c6adf to 225065b Compare May 2, 2022 12:17
@mads-hartmann mads-hartmann force-pushed the mads/remove-sweeper branch from 225065b to 8c9c39f Compare May 4, 2022 07:41
@mads-hartmann mads-hartmann marked this pull request as ready for review May 4, 2022 08:37
@mads-hartmann mads-hartmann requested a review from a team May 4, 2022 08:38
Copy link
Contributor

@liam-j-bennett liam-j-bennett left a comment

Choose a reason for hiding this comment

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

lgtm

@roboquat roboquat merged commit 982252a into main May 4, 2022
@roboquat roboquat deleted the mads/remove-sweeper branch May 4, 2022 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants