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

feat(ci): create an issue automatically if cron jobs fail [skip ci] #1664

Merged
merged 2 commits into from
Feb 21, 2021

Conversation

ydcjeff
Copy link
Contributor

@ydcjeff ydcjeff commented Feb 21, 2021

Fixes #1659

Description: create an issue automatically if cron jobs fail

Check list:

  • New tests are added (if a new feature is added)
  • New doc strings: description and/or example code are in RST format
  • Documentation is updated (if required)

Sample created issue: ydcjeff/play-gh-actions#28
Default env var: https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables
Link to the failed CI using:

Note: If you need to use a workflow run's URL from within a job, you can combine these environment variables: 

$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID

Copy link
Collaborator

@vfdev-5 vfdev-5 left a comment

Choose a reason for hiding this comment

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

Looks good ! Thanks @ydcjeff !

@vfdev-5 vfdev-5 merged commit 41925f0 into pytorch:master Feb 21, 2021
@ydcjeff ydcjeff deleted the ci/issue-for-cron branch February 21, 2021 17:18
@vfdev-5
Copy link
Collaborator

vfdev-5 commented Mar 23, 2021

@ydcjeff this night "PyTorch version tests" failed and we got spammed by 8 messages :)
I think it would be better to configure something there to avoid that... Do you think it could be possible ?

@ydcjeff
Copy link
Contributor Author

ydcjeff commented Mar 23, 2021

I miss that part. Yes it is possible.

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.

Automatically create an issue if cron jobs fail
2 participants