-
Notifications
You must be signed in to change notification settings - Fork 569
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(gha): check for duplicate test runs #10389
Conversation
759b304
to
8217dfd
Compare
Provoked duplicated test runs with a temporary commit here: |
8217dfd
to
d8836e3
Compare
d8836e3
to
d2c4c41
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.
Thanks, looks good to me 👍
This has the drawback that we are not checking for duplicate runs across jobs but I think the original motivation was to prevent overriding test reports so that should be fine.
Yeah I thought about that too and when checking the original changes realised it's all about potential maven misconfiguration that can lead to duplicates within one build. Given that scope and that builds are split by module I would argue it's not worth going further as duplicates may only happen if a module is run multiple times. |
bors merge |
Build succeeded: |
@megglos @oleschoenburg Merge of another PR failed due to duplicate tests https://github.com/camunda/zeebe/actions/runs/3089816856/jobs/4997856605#step:41:55 That PR did not add any new tests. |
@deepthidevaki @oleschoenburg seems like the duplicate detection has false-positives in case of test failures
I will verify with the script and create a fix! |
May be due to flaky tests? Flaky tests are run more than once. |
indeed the log contains this twice because of flaky retries :
|
10413: Revert "ci(gha): check for duplicate test runs" r=oleschoenburg a=megglos ## Description This reverts commit d2c4c41 as it caused issues due to tee swallowing the maven exit code and false-positives on flaky test reruns. ## Related issues related #10389 Co-authored-by: Meggle (Sebastian Bathke) <sebastian.bathke@camunda.com>
@deepthidevaki thanks to Ole we realised that in this case the duplicate test detection should actually not be run at all as the build failed due to the flaky tests. The underlying issue is that this change swallowed the maven exit code and thus resulted in the detection being run still. |
10413: Revert "ci(gha): check for duplicate test runs" r=oleschoenburg a=megglos ## Description This reverts commit d2c4c41 as it caused issues due to tee swallowing the maven exit code and false-positives on flaky test reruns. ## Related issues related #10389 Co-authored-by: Meggle (Sebastian Bathke) <sebastian.bathke@camunda.com>
fixed with #10415 |
Description
Adds a GHA that will check for any duplicate test runs from the maven build output of all maven test jobs, except the platform smoke tests.
Related issues
closes #10260
Definition of Done
Not all items need to be done depending on the issue and the pull request.
Code changes:
backport stable/1.3
) to the PR, in case that fails you need to create backports manually.Testing:
Documentation:
Please refer to our review guidelines.