-
Notifications
You must be signed in to change notification settings - Fork 1.3k
test: Add a gc for integration branches #13153
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
Conversation
21ffefd
to
8346fe5
Compare
/werft with-integration-tests=workspace 👎 unknown command: with-integration-tests=workspace |
/werft run with-integration-tests=workspace 👍 started the job as gitpod-build-to-gc-inte-br.2 |
started the job as gitpod-build-to-gc-inte-br.3 because the annotations in the pull request description changed |
/werft with-integration-tests=ide 👎 unknown command: with-integration-tests=ide |
/werft run with-integration-tests=ide 👍 started the job as gitpod-build-to-gc-inte-br.4 |
8346fe5
to
2eeb258
Compare
started the job as gitpod-build-to-gc-inte-br.6 because the annotations in the pull request description changed |
started the job as gitpod-build-to-gc-inte-br.7 because the annotations in the pull request description changed |
4bf07bf
to
d29ed68
Compare
started the job as gitpod-build-to-gc-inte-br.10 because the annotations in the pull request description changed |
258d28f
to
50fc940
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity, why the clean-up remote branch does not work sometimes?
job's timeout😭 |
We can also increase the timeout from 120 mins to more because we will add more tests. |
I will create an issue about it. If you have ideas, please let me know there. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The GC looks good to me 🛹
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The others LGTM
@@ -15,6 +15,8 @@ DO_CLEANUP=0 | |||
declare -A FAILURE_TESTS | |||
declare SIGNAL # used to record signal caught by trap | |||
|
|||
BRANCH_TIMEOUT_SEC=10800 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer we extend it to 1 day to prevent a case that the integration job runs over 3 hours.
If others trigger the integration test, it will clean up the branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jenting Thanks for your review 🙇 The timeout of the job is 2 hours, so we don't need to wait for 1day. WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please check those two? It looks like we hit timeout 😅
https://werft.gitpod-dev.com/job/gitpod-workspace-run-integration-tests-main.127
https://werft.gitpod-dev.com/job/gitpod-workspace-run-integration-tests-main.128
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jenting Currently all tests flow normally just in time for the werft timeout. In other words, if one test case eats time until its timeout of the unit test, it will reach the werft timeout. So this is natural.
Let's create an issue about the test that is failing.
/werft run 👍 started the job as gitpod-build-to-gc-inte-br.14 |
50fc940
to
c9a0b5d
Compare
@jenting rebased from man |
The latest error comes this PR, and I left a comment #13241 (comment) |
started the job as gitpod-build-to-gc-inte-br.16 because the annotations in the pull request description changed |
/werft run 👍 started the job as gitpod-build-to-gc-inte-br.17 |
Description
Check for any remaining integration tests previously run before starting the test. This reduces wasteful preview environments.
Related Issue(s)
Relaates #12248 (comment)
How to test
e.g. https://werft.gitpod-dev.com/job/gitpod-custom-to-gc-inte-br.5
Release Notes
Documentation
No
Werft options:
Valid options are
all
,workspace
,webapp
,ide