-
Notifications
You must be signed in to change notification settings - Fork 120
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
refactor(ci): do not run workflows tied to ZcashFoundation
infra in forks
#9257
Conversation
There are two workflows that have bugs in them: - cd-deploy-nodes-gcp is missing a job name, which is then depended-on later - sub-ci-integration-tests-gcp changed the name of a job without changing its dependents
There are various GitHub CI jobs that won’t work on forks. E.g., some need credentials for ZF’s DockerHub or GCP accounts. Unfortunately, you can’t prevent entire workflows from running this way, but this disables a minimal number of jobs to keep forks from failing whenever `main` is pushed to.
ZcashFoundation
infra in forks
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.
This is a great suggestion and fix. Thank you @sellout. I'll be adding some extra documentation based on this changes.
LGTM
This pull request has been removed from the queue for the following reason: The merge conditions cannot be satisfied due to failing checks:
You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. If you want to requeue this pull request, you need to post a comment with the text: |
@mergify refresh |
✅ Pull request refreshed |
Introduced by ZcashFoundation#9257, but overlooked because the workflow runs asynchronously. (Is there a way to get GitHub to validate workflow files in a PR check, rather than only when the workflow runs?)
… forks (ZcashFoundation#9257) * Fix GitHub workflows There are two workflows that have bugs in them: - cd-deploy-nodes-gcp is missing a job name, which is then depended-on later - sub-ci-integration-tests-gcp changed the name of a job without changing its dependents * Stop certain CI jobs from running on forks There are various GitHub CI jobs that won’t work on forks. E.g., some need credentials for ZF’s DockerHub or GCP accounts. Unfortunately, you can’t prevent entire workflows from running this way, but this disables a minimal number of jobs to keep forks from failing whenever `main` is pushed to.
Motivation
Various workflows fail whenever I push to
main
on my fork. And one workflow is on a cron job which runs daily and emails me every day.The failures are generally due to something like needing ZF credentials for some service, like DockerHub or GCP.
Solution
This disables a bunch of CI jobs if they are run outside of the ZcashFoundation org.
There are also two workflows that simply had bugs in them. Those have also been fixed. Both bugs are caught by GitHub’s workflow file checks, so neither workflow gets run (i.e., they are not logic bugs in the steps that are performed, but references from one job to a job that doesn’t exist).
Tests
Basically pushing these changes to
main
on my fork until I don’t get any failures. Some of the workflows don’t run right away, so it’s possible another failure may show up in a day.PR Author's Checklist
PR Reviewer's Checklist