Skip to content

Skip cron run of CodeQL in forks#5784

Merged
jeffwidman merged 1 commit intomainfrom
disable-codeql-cron-on-forks
Sep 24, 2022
Merged

Skip cron run of CodeQL in forks#5784
jeffwidman merged 1 commit intomainfrom
disable-codeql-cron-on-forks

Conversation

@jeffwidman
Copy link
Copy Markdown
Member

We run CI via actions on main on a daily cron to catch any unexpected regressions, or if CodeQL adds a new check that suddenly flags something.

However, this can result in some unexpected notification noise:

  1. I merged a PR from an external contributor: Fix fetching bug for requirements.in files #5580
  2. That PR was opened from the fork's main branch
  3. Before merging, I clicked the "Update by rebase". So a commit from me landed on the fork's main branch.
  4. I'm now receiving daily emails about failing CI runs from the fork. These are pure noise, since I don't care about the state of an external contributor's forked repo.

This hasn't happened for any other PR's that I've merged from external contributors, so I suspect it's related to the rebase so I'm now seen as a committer to the fork's main branch. Not really sure though.

I double-checked and I am not subscribed to notifications on the repo. I am aware that after 30 days this should age out because actions are disabled for forks after 30 days assuming the external contributor doesn't update his fork/click re-enable actions, but it's still annoying.

I checked internally with the Actions team, and they said this is known behavior, and it's complicated.

So for now, let's default to disabling running cron for forks.

@jeffwidman jeffwidman requested a review from a team as a code owner September 22, 2022 21:12
We run CI via actions on `main` on a daily cron to catch any unexpected regressions, or if CodeQL adds a new check that suddenly flags something.

However, this can result in some unexpected notification noise:
1. I merged a PR from an external contributor: #5580
2. That PR was opened from the fork's `main` branch
3. Before merging, I clicked the "Update by rebase". So a commit from me landed on the fork's `main` branch.
4. I'm now receiving daily emails about failing CI runs from the fork. These are pure noise, since I don't care about the state of an external contributor's forked repo.

This hasn't happened for any other PR's that I've merged from external contributors, so I suspect it's related to the rebase so I'm now seen as a committer to the fork's `main` branch. Not really sure though.

I double-checked and I am _not_ subscribed to notifications on the repo. I am aware that after 30 days this should age out because actions are disabled for forks after 30 days assuming the external contributor doesn't update his fork/click re-enable actions, but it's still annoying.

I checked internally with the Actions team, and they said this is known behavior, and it's complicated.

So for now, let's default to disabling running cron for forks.
@jeffwidman jeffwidman force-pushed the disable-codeql-cron-on-forks branch from 982a484 to 78a6c21 Compare September 24, 2022 05:49
@jeffwidman jeffwidman merged commit c053490 into main Sep 24, 2022
@jeffwidman jeffwidman deleted the disable-codeql-cron-on-forks branch September 24, 2022 05:55
@jeffwidman
Copy link
Copy Markdown
Member Author

This had a bug in where I put it, which was nicely fixed by @bdragon in #5805

@pavera pavera mentioned this pull request Oct 31, 2022
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.

2 participants