-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
fix: preserve job result state in case of failure #1519
Conversation
There is just one job field for the job result. This is also true for matrix jobs. We need to preserve the failure state of a job to have the whole job failing in case of one permuation of the matrix failed. Closes #1518
jobResult := "success" | ||
jobResultMessage := "succeeded" | ||
// we have only one result for a whole matrix build, so we need | ||
// to keep an existing result state if we run a matrix | ||
if len(info.matrix()) > 0 && rc.Run.Job().Result != "" { | ||
jobResult = rc.Run.Job().Result | ||
} |
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'm not too happy with this approach, but it is currently the right fix.
We should make this a bigger refactoring to integrate the continue-on-error
for jobs and maybe rethink matrix handling.
🦙 MegaLinter status: ✅ SUCCESS
See detailed report in MegaLinter reports |
Codecov Report
@@ Coverage Diff @@
## master #1519 +/- ##
==========================================
+ Coverage 61.22% 61.26% +0.04%
==========================================
Files 46 46
Lines 7141 7149 +8
==========================================
+ Hits 4372 4380 +8
Misses 2462 2462
Partials 307 307
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
This feature is not yet supported by act and if implemented would make this test invalid
There is just one job field for the job result. This is also true for
matrix jobs. We need to preserve the failure state of a job to
have the whole job failing in case of one permuation of the matrix failed.
Closes #1518