-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Fix: regression run after failure #971
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: regression run after failure #971
Conversation
Codecov Report
@@ Coverage Diff @@
## master #971 +/- ##
==========================================
+ Coverage 49.27% 57.50% +8.23%
==========================================
Files 23 32 +9
Lines 2401 4594 +2193
==========================================
+ Hits 1183 2642 +1459
- Misses 1090 1729 +639
- Partials 128 223 +95
Continue to review full report at Codecov.
|
|
@ChristopherHX Thanks for taking care. We where not fully aware that our change was breaking the cleanup. |
Errors should always be logged with an error level and not debug level. Since the error is returned here, it will be logged later as an error. Presumably this was a leftover from debugging the executor chain in: PR: nektos#971
* refactor: remove debug error output Errors should always be logged with an error level and not debug level. Since the error is returned here, it will be logged later as an error. Presumably this was a leftover from debugging the executor chain in: PR: #971 * refactor: debug log wich expression is going to be evaluated * fix: handle nil in EvalBool We've seen this issue when the env map is not set-up properly, i.e. when the env map is nil, EvalBool might return nil, which should be handled as a falsy value. * fix: fail on error in if expression and return the evaluation error Stop running the workflow in case an expression cannot be evaluated. Fixes: #1008 * fix: remove quotes from inside expression syntax in test It looks like having an expression inside double quotes inside the expression syntax is not valid: https://github.com/ZauberNerd/act-test/actions/runs/1881986429 The workflow is not valid. .github/workflows/test.yml (Line: 10, Col: 13): Unexpected symbol: '"endsWith'. Located at position 1 within expression: "endsWith('Hello world', 'ld')" * refactor: export IsTruthy function from exprparser package * refactor: use IsTruthy function in EvalBool * refactor: move debug log for expression rewrite to rewrite function Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Restore the old behavior of the then executor. A lot of code in act relies on the fact that the pipeline executor fails fast instead of failing later.
Here a list of regressions
This broke error handling of act. I prefer to revert this function to it's previous version and create a new finally executor to archive the same in a less error prone.
Also print the error of the step, since it is useful to know why my action failed. E.g. if you used continue-on-error in a composite action.
Resolves #946
@KnisterPeter @ZauberNerd You introduced the regression in 1891c72
The observation of the edit of this comment #948 (comment) is caused by the same regression, job failure without reason.