-
Notifications
You must be signed in to change notification settings - Fork 30
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
Workflow cleanup: move checkout to start, prune unused steps+vars. #639
Conversation
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.
LGTM, test failures for perplexity short
and Llama Benchmarking
are due to #638, not anything with this PR
Ah. Thanks for noticing. Sent #642 |
Missed these as part of #639 (too many workflows 😵 )
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.
Thanks for the cleanup.
) Cutting down on boilerplate and standardizing some workflow syntax before deeper refactoring work. * Move `users: actions/checkout` to the start of each job (for consistency, since all workflows use the source code but not all workflows need dependencies or python setup, etc.) * Per https://github.com/actions/checkout, `submodules: false` is the default * Step names can be omitted with `uses` (docs: https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#jobsjob_iduses) . Our [`pre-commit.yml`](https://github.com/nod-ai/shark-ai/blob/main/.github/workflows/pre-commit.yaml) workflow does this already: https://github.com/nod-ai/shark-ai/blob/c0ca2e2788ea09a890ffe347dfbffe57606670b8/.github/workflows/pre-commit.yaml#L11-L14 ![image](https://github.com/user-attachments/assets/dddfe91b-06f2-4a67-a320-fb2c9f612323) * Remove copy/pasted `Get Current Date` step from some workflows * Remove unused `SHARK_PLATFORM_REPO_ROOT` env var from some workflows (unused since #305, copy/pasted into a few places)
Missed these as part of #639 (too many workflows 😵 )
Cutting down on boilerplate and standardizing some workflow syntax before deeper refactoring work.
users: actions/checkout
to the start of each job (for consistency, since all workflows use the source code but not all workflows need dependencies or python setup, etc.)submodules: false
is the defaultuses
(docs: https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#jobsjob_iduses) . Ourpre-commit.yml
workflow does this already:shark-ai/.github/workflows/pre-commit.yaml
Lines 11 to 14 in c0ca2e2
Get Current Date
step from some workflowsSHARK_PLATFORM_REPO_ROOT
env var from some workflows (unused since [sharktank] Evaluation - Update timeout for Perplexity CI test #305, copy/pasted into a few places)