-
Notifications
You must be signed in to change notification settings - Fork 88
[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
base: master
Are you sure you want to change the base?
[Build] Don't fail shared GH-workflow on test-failures #3001
Conversation
@@ -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 |
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.
--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.
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 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.
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.
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 |
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 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.
598e663
to
0965d95
Compare
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.