Skip to content

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

Merged
merged 14 commits into from
Jan 20, 2022

Conversation

Akuli
Copy link
Collaborator

@Akuli Akuli commented Jan 20, 2022

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.

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') }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

What does always() do?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

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.

Copy link
Collaborator

@srittau srittau left a 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).

@Akuli Akuli merged commit 61495d8 into python:master Jan 20, 2022
@Akuli Akuli deleted the stubtest-issue branch January 20, 2022 16:24
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.

Noticing stubtest failures
4 participants