Skip to content
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

workflow: generate PR comments when non-required tests fail and let the action itself succeed (part 1) #974

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

achilleas-k
Copy link
Member

@achilleas-k achilleas-k commented Oct 10, 2024

The purpose of this new workflow is to run when certain actions are allowed to cause errors without failing but PR authors and reviewers should be notified of issues. The goal is, instead of having actions that are allowed to fail and are marked as not required, the actions themselves will succeed but will communicate an error message through a shared artifact that this action can read and use to post a comment on the PR.

The action is run as a 'workflow_run' to have access to secrets (Schutzbot's access token).

The action is not finalised in this commit.

The plan is to merge this into main as is, so that GitHub will pick up the new workflow and we can iterate on the implementation in a follow-up PR, since GitHub will not run actions defined in workflows that are not part of the main branch but will run modified versions of a pre-existing action.

The purpose of this new workflow is to run when certain actions are
allowed to cause errors without failing but PR authors and reviewers
should be notified of issues.  The goal is, instead of having actions
that are allowed to fail and are marked as not required, the actions
themselves will succeed but will communicate an error message through a
shared artifact that this action can read and use to post a comment on
the PR.

The action is run as a 'workflow_run' to have access to secrets
(Schutzbot's access token).

The action is not finalised in this commit.
@achilleas-k achilleas-k marked this pull request as ready for review October 10, 2024 16:14
@achilleas-k achilleas-k added the github_actions Pull requests that update GitHub Actions code label Oct 10, 2024
Copy link
Contributor

@mvo5 mvo5 left a comment

Choose a reason for hiding this comment

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

The title could be of the form "workflow: generate PR comments..." like we do for most other PRs. I approve anyway as these are minor points.

Copy link
Member

@supakeen supakeen left a comment

Choose a reason for hiding this comment

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

Very cool.

@achilleas-k achilleas-k changed the title Generate PR comments when non-required tests fail and let the action itself succeed workflow: generate PR comments when non-required tests fail and let the action itself succeed Oct 11, 2024
@achilleas-k achilleas-k changed the title workflow: generate PR comments when non-required tests fail and let the action itself succeed workflow: generate PR comments when non-required tests fail and let the action itself succeed (part 1) Oct 11, 2024
@mvo5 mvo5 enabled auto-merge October 11, 2024 11:02
@mvo5 mvo5 added this pull request to the merge queue Oct 11, 2024
Merged via the queue into main with commit 0fc99d2 Oct 11, 2024
17 of 19 checks passed
@achilleas-k achilleas-k deleted the non-required-test-comments branch October 11, 2024 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github_actions Pull requests that update GitHub Actions code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants