-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Automatically create an issue if the nightly stubtest run fails #6978
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
Conversation
.github/workflows/stubtest.yml
Outdated
name: Create an issue if stubtest failed | ||
runs-on: ubuntu-latest | ||
needs: [stubtest-stdlib, stubtest-third-party] | ||
if: ${{ github.repository == 'python/typeshed' && always() && (needs.stubtest-stdlib.result=='failure' || needs.stubtest-third-party.result=='failure') }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does always()
do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It prevents the job from getting cancelled if the needs
jobs fail: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-not-requiring-successful-dependent-jobs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yikes, what horrible feature design.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I'd like the feedback of more maintainers in the original issue (or here).
Co-authored-by: Nikita Sobolev <[email protected]>
Fixes #6972
Example issue: Akuli#21
It would be nice to include the name of the failing library in the issue title. This isn't as easy as I expected, because we can't give the
issues: write
permission to the same job that runs stubtest (and executes code from pypi). We could do this with upload-artifact and download-artifact, or by downloading raw logs of the failed jobs. But this is already much better than a script that runs only on my computer, and can be improved later.