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

Workflow cleanup: move checkout to start, prune unused steps+vars. #639

Merged
merged 2 commits into from
Dec 3, 2024

Conversation

ScottTodd
Copy link
Member

@ScottTodd ScottTodd commented Dec 3, 2024

Cutting down on boilerplate and standardizing some workflow syntax before deeper refactoring work.

@ScottTodd ScottTodd marked this pull request as ready for review December 3, 2024 21:45
Copy link
Contributor

@stbaione stbaione left a 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

@ScottTodd ScottTodd merged commit 7eccb76 into nod-ai:main Dec 3, 2024
16 of 20 checks passed
@ScottTodd ScottTodd deleted the workflow-cleanup branch December 3, 2024 22:20
@ScottTodd
Copy link
Member Author

Ah. Thanks for noticing. Sent #642

ScottTodd added a commit that referenced this pull request Dec 4, 2024
Missed these as part of #639 (too
many workflows 😵 )
Copy link
Collaborator

@marbre marbre left a 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.

monorimet pushed a commit that referenced this pull request Dec 13, 2024
)

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)
monorimet pushed a commit that referenced this pull request Dec 13, 2024
Missed these as part of #639 (too
many workflows 😵 )
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.

4 participants