Skip to content

[Build] Don't fail shared GH-workflow on test-failures #3001

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HannesWell
Copy link
Member

Don't fail the build on test-failures because the the additional test-result check fails in case of test-failures. This simplifies the distinction between 'hard' failures, like compile-errors and test-failures.

@@ -97,7 +97,7 @@ jobs:
-Dcompare-version-with-baselines.skip=false
-Pbree-libs
-Papi-check
--fail-at-end
--fail-at-end -Dmaven.test.failure.ignore=true
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
--fail-at-end -Dmaven.test.failure.ignore=true

As mentioned in the other PR I think we better should even remove --fail-at-end (and possibly -Pbree-libs / -Papi-check)

The workflow should just replicate the usual workflow/setup and if projects want they can set whatever option seems suitable for them (and change it without affecting others) e.g. in maven.config or with maven options specified.

Even though it might feels a bit "duplicated" it makes it much easier to run a local build with the recommended options without the need to dig into CI files to find out the desired options, and gives much more freedom.

Copy link
Contributor

Choose a reason for hiding this comment

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

I still think we must not remove that (#2998 (comment)):

This is something we cannot do as we have sporadically failing tests and people are (unfortunately) used to merging PRs with such a failure referring to the issue reporting that failure. So this could easily lead to test failure that would occur after such a known one to stay undiscovered.

Copy link
Contributor

@HeikoKlare HeikoKlare left a comment

Choose a reason for hiding this comment

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

In my opinion, this cannot be solved by simply ignoring the test results in the build workflow, as mentioned in #2998 (comment). There is the additional test results check, but:

Even if the additional check does not fail, it takes some time (seconds) until its done and shows up. That check is not shown as "pending" but just appears several seconds after the builds finished. I have seen people waiting actively for the builds to finish to directly merge the change, so this could result in PRs being merged right after all checks become green even though few seconds later a failure pops up.
Thus, I think we should somehow ensure that either the test results check shows up as "pending" or that the builds wait for the test results to show up before finishing (but then a build would only be marked as completed when all of them are).

And even if the test results check shows up early enough, I bet it will happen that people see that the three GHA builds (and maybe Jenkins) ran green and then merge without waiting for the test results check. You will say that every commiter must have a proper look at every check and I totally agree with that, which I why I think we have to accept that risk.

@@ -97,7 +97,7 @@ jobs:
-Dcompare-version-with-baselines.skip=false
-Pbree-libs
-Papi-check
--fail-at-end
--fail-at-end -Dmaven.test.failure.ignore=true
Copy link
Contributor

Choose a reason for hiding this comment

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

I still think we must not remove that (#2998 (comment)):

This is something we cannot do as we have sporadically failing tests and people are (unfortunately) used to merging PRs with such a failure referring to the issue reporting that failure. So this could easily lead to test failure that would occur after such a known one to stay undiscovered.

Don't fail the build on test-failures because the the additional
test-result check fails in case of test-failures. This simplifies the
distinction between 'hard' failures, like compile-errors and
test-failures.
@akurtakov akurtakov force-pushed the gh-workflow-ignore-test-failures branch from 598e663 to 0965d95 Compare June 6, 2025 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants