-
Notifications
You must be signed in to change notification settings - Fork 354
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 support for TEST_SKIP_AFTER_FAILURE_COUNT #5475
Conversation
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.
Not sure to understand this change request. Consider that when you're running in GH actions, each workflow would execute each test suite individually. For instance, it does make test-common
. So, in such case, this new variable is never took in consideration. The only case where it can make sense here would be in the test-smoke
. However, such a test is only executed at night time before nightly release, and, it only have 4 possible failures, so, we'd really skip almost nothing.
|
Okey, then, we better make the variable scope local to this specific action. Otherwise we can get mislead and think that this is a global scope and would affect all test suite executions. |
How about a |
In surefire, it defaults to 0. Folks set it higher to see e.g. "the first three failures" |
819e3a1
to
bb9f601
Compare
0b6ee70
to
d9d91f2
Compare
Ready to merge |
Please, see this comment #5475 (comment) - if we want this variable, then, we need to make it in the specific test scope to avoid users to mislead its meaning. Thanks. |
just another nitpick: I have started to document the available E2E test env vars in https://github.com/apache/camel-k/blob/main/e2e/README.md#environment-variables Maybe we can add a section on how to run tests locally with Makefile and the possible env var settings |
d9d91f2
to
0e9254f
Compare
This is done |
0e9254f
to
38865bb
Compare
I now promoted the env var table to the top and the skip var is now local to the smoke tests like this ...
Folks wanting to see more than one smoke test failure are likely familiar with the Makefile anyway - so I guess it sufficiently documents itself here. |
38865bb
to
502c64c
Compare
could we pls run this again? |
fails unrelated, pls try again |
repeatedly fails in
|
Yes, the checks were failing because it required a rebase after 2.3.2 release. Merging anyway. |
Borrowed from maven surefire - count test failures and skip subsequent tests when
failure count > $TEST_SKIP_AFTER_FAILURE_COUNT
The default is
TEST_SKIP_AFTER_FAILURE_COUNT=3
This can significantly speed up validation of bad PRs