Skip to content

Run simulator cleanup before honoring post-action failures - #3148

Open
vakhidbetrakhmadov wants to merge 1 commit into
bazelbuild:mainfrom
vakhidbetrakhmadov:fix-simulator-cleanup-after-post-action-failure
Open

vakhidbetrakhmadov wants to merge 1 commit into
bazelbuild:mainfrom
vakhidbetrakhmadov:fix-simulator-cleanup-after-post-action-failure

Conversation

@vakhidbetrakhmadov

@vakhidbetrakhmadov vakhidbetrakhmadov commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Remove the duplicate early exit before simulator cleanup. The existing final check preserves post_action_determines_exit_code behavior while allowing cleanup to run after a failed post-action.

Resolves #3147

Remove the duplicate early exit before simulator cleanup. The existing final check preserves post_action_determines_exit_code behavior while allowing cleanup to run after a failed post-action.
echo "error: post_action exited with '$post_action_exit_code'" >&2
exit "$post_action_exit_code"
fi
else

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the same block as the one removed above which runs after simulator cleanup action

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This block was added intentionally as part of the review of #2713, but I'm not sure what the reasoning behind it was. @brentleyjones do you know?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simulator cleanup is skipped when the post-action fails

2 participants