-
Notifications
You must be signed in to change notification settings - Fork 956
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
[Test Automation] Add schedule job as accepted job for PRs and cron jobs #270
base: main
Are you sure you want to change the base?
Conversation
permissions: | ||
pull-requests: write | ||
defaults: | ||
run: | ||
shell: bash # default shell to run all steps for a given job. | ||
runs-on: ${{ inputs.runner != '' && inputs.runner || 'llama-models-gha-runner-cpu' }} | ||
runs-on: ${{ inputs.runner != '' && inputs.runner || github.repository_owner == 'meta-llama' && 'llama-models-gha-runner-cpu' || 'llama-models-fork-gha-runner-cpu' }} |
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.
can you comment what these substrings mean? why "fork"?
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.
Our self-hosted runners are initially set up using Cloud Terraform code. Each runner has distinct attributes, including:
- A generic label for the runner
- A specific repository URL
When testing from a fork, a separate runner is required to run independently of the main runner. This is because the forked repository URL differs from the main repository URL, and each runner can only point to one repository.
I adjusted this line so it automatically determines what name to use based on if the repository owner is meta-llama
. If it is, then we use the default runner for the main repository. If not, then we use the runner that targets the fork.
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.
lg
What does this PR do?
Updates CI/CD testing to the schedule workflow job for PRs, manual dispatch, and cron jobs.
Test Plan