-
Notifications
You must be signed in to change notification settings - Fork 10
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
feature: Add integrated issue handling #176
Conversation
TODO: Expand the message (these are likely different for different workflows):
|
bdea249
to
4a5e561
Compare
I think this is ready for first review?
Example issue jku/tuf-on-ci-sigstore-test#19 |
Some reflection: The idea of "hiding" the error handling within the actions does keep workflows tidy but has some flaws. This example is the best:
I have to rethink and maybe undo the crimes against GitHub Actions in this PR. |
I'll modify this so that
|
Goals: * If workflow fails and issue does not exist, file an issue * If issue for the workflow exists, add a comment * If workflow succeeds and issue exists for workflow, close issue This adds a new action update-issue which we expect all workflows (except possibly signing-event) to call as the last job.
The pip install log is massively long in the logs: make it a little more readable.
This comment was marked as outdated.
This comment was marked as outdated.
This is the only thing that makes sense: * publish branch documents what should be published * test action compares the published metadata to the "expected metadata" in sources on this branch This fixes the potential issue where cron workflows always run on main and could then use the wrong content as "expected metadata".
Would appreciate review comments on this and the template PR (see description for links). |
I think having an explicit job that reports error is good. It's explicit and IMHO does not lead to any issues. |
Following up the discussion we had in slack on adding some custom message into the issue comment, any ideas on that? |
|
It looks OK but I think the downsides are real:
Merging the customizations and the required changes from tuf-on-ci upgrades is now on the repository maintainer... This is not optimal. Still, I think this is the best option we have. |
context.payload does not contain 'workflow' for all event types. Use the actual workflow name instead: it looks like GitHub labels allow just about anything. Remove the custom message for specific workflows: this was on the verge of too complicated already, now it's over the line. Fix a typo in issue comment content.
* These are unrelated to the PR, they are from black 24.1 * We should start pinning test deps but I'm not doing it here
Agreed. We already have some customizations to our workflows, so I'm already used to patch them with updates from |
Thanks for review. I will merge this and file an issue to track the custom issue comment content |
Open and close issues based on workflow successes:
Some notes:
Fixes #168