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
Add quarantine mechanism to test suite #11981
Conversation
Please set the appropriate release note label. |
test-runtime |
test-4.9 |
Is that for flakes? Just to make it easier to see which tests are disabled compared to It would be nice to have the same for |
@pchaigno this is for flakes, but also to allow running flaky tests within "quarantine" pipelines. Whole contexts will be skipped by using |
Ah, nice!
Of course 🤦 I read the code a bit too quickly. |
@nebril I assume this is supposed to be backported? |
78c1970
to
14766a7
Compare
Signed-off-by: Maciej Kwiek <maciej@isovalent.com>
Signed-off-by: Maciej Kwiek <maciej@isovalent.com>
Signed-off-by: Maciej Kwiek <maciej@isovalent.com>
14766a7
to
1131776
Compare
test-runtime |
test-4.9 |
Note: We could maybe quarantine the check disabled in this commit for Linux 4.19, but I can do that in a follow-up if necessary. |
@qmonnet interesting case, so you're saying that it should be quarantined only on 4.19? It should be easy enough to do. |
@@ -37,6 +37,10 @@ pipeline { | |||
returnStdout: true, | |||
script: 'if [ "${JobKernelVersion}" = "net-next" ]; then echo -n "0"; else echo -n ""; fi' | |||
)}""" | |||
RUN_QUARANTINED="""${sh( |
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.
Don't we need to update other Jenkinsfile as well? Also (unrelated to your PR), but can we somehow share some sections among all Jenkinsfiles (e.g. ENV vars)?
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.
@brb this is only for running https://jenkins.cilium.io/view/Quarantine%20Pipelines/ which for now only use this jenkinsfile.
There is a new cli options for our test suite -
cilium.runQuarantined
, which tells ginkgo whether to skip tests which are marked as quarantined.Test is marked as being under quarantine when its
It(...
call is replaced bySkipItIf(helpers.SkipQuarantined, ...