mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[PR #971] [MERGED] Fix: regression run after failure #1709
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#1709
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/nektos/act/pull/971
Author: @ChristopherHX
Created: 1/27/2022
Status: ✅ Merged
Merged: 1/27/2022
Merged by: @mergify[bot]
Base:
master← Head:fix/regression-run-after-failure📝 Commits (3)
addb730Fix: Regressions of run step after failure446864fAdd test, to enshure no panic67dbd23Print error of failed step📊 Changes
4 files changed (+37 additions, -6 deletions)
View changed files
📝
pkg/common/executor.go(+5 -4)📝
pkg/runner/run_context.go(+24 -2)📝
pkg/runner/runner_test.go(+1 -0)➕
pkg/runner/testdata/non-existent-action/push.yml(+7 -0)📄 Description
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 https://github.com/nektos/act/issues/946
@KnisterPeter @ZauberNerd You introduced the regression in
github.com/nektos/act@1891c72ab1The observation of the edit of this comment https://github.com/nektos/act/pull/948#issuecomment-1022949930 is caused by the same regression, job failure without reason.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.