-
Notifications
You must be signed in to change notification settings - Fork 55
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(ci): Daily workflows report #1200
Merged
diegomrsantos
merged 6 commits into
master
from
fix/issue-1197/wrong-daily-workflow-reports
Oct 10, 2024
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
c7d13f3
Fix daily workflows getting green tick when jobs failed.
AlejandroCabeza 1862b7d
Add pull_request trigger to daily workflows to check they work during…
AlejandroCabeza acb7b59
Rollback to continue-on-error to compare.
AlejandroCabeza 7df8b35
Remove continue-on-error line.
AlejandroCabeza bfa8436
cleanup
diegomrsantos a426ccc
Merge branch 'master' into fix/issue-1197/wrong-daily-workflow-reports
diegomrsantos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 100% sure this change will fix the problem. I just see that as a way to write
continue-on-error
differently. But I dig into this a bit too much and I think removing this line will solve the issue.With
fail-fast: false
defined in the strategy up above, the jobs will not stop the whole pipeline on failure, even without this line (or thecontinue-on-error
).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 also not completely sure. But according to the post I mentioned in the description it apparently will do what it suggests.
I could set the daily jobs to run on PR so we can get the results here, now that I think about it.
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.
It seems it worked, as the jobs have been marked as failed? I can't say for sure, though.
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.
Could you try without this line, just for my own sanity? 😄
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.
Besides that, like you said, it seems it worked. Just remove the
on pull_request
and I approve it.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.
The test runs finished a bit ago: Even though here the checks show as failed (with
continue-on-error
), if you check theActions
tab you'll see a difference between them. The workflows run withcontinue-on-error
show as green tick (even if they failed), while the ones with theif: success() || failure()
show as failed; which is the intended behaviour.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 meant without
continue-on-error
and withoutif: success() || failure()
. Sorry if I didn't make myself clear.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.
Oh, I see. Doing that :)
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.
It seems to work without it.
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.
True. Shall we go for this?