Optimize workflow run#8225
Optimize workflow run#8225MichaReiser merged 5 commits intoastral-sh:mainfrom Cjkjvfnby:sa/optimize-workflow-run
Conversation
MichaReiser
left a comment
There was a problem hiding this comment.
Thanks for improving our pipeline.
I like the idea of running fewer jobs but I'm unsure if the added complexity is worth it, considering that most jobs include code changes. It's also very easy to forget files.
.github/workflows/ci.yaml
Outdated
| - Cargo.toml | ||
| - Cargo.lock | ||
| - clippy.toml | ||
| - pyproject.toml |
There was a problem hiding this comment.
| - pyproject.toml | |
| - pyproject.toml | |
| - rust-toolchain.toml | |
| - fuzz/** |
Does the plugin support a way to say: Only run when e.g. all changed files are markdown files? It would reduce that we missed adding an entry. I rather have the job runs too often that miss out.
There was a problem hiding this comment.
As I see no, it could not.
But it could be addressed by running them on master, after the merge.
There was a problem hiding this comment.
Why not with something like
- **/*
- !**/*.md
I would be surprised if this was not feasible.
|
Force pushed changes, after rebasing on top of the main |
zanieb
left a comment
There was a problem hiding this comment.
I don't think we want to maintain this list of files. I'd prefer the "negated" style that @MichaReiser requested as well.
Now negeatin schema is used (all files except specified)
|
|
The first implementation with negation. code and formatter sections are the same, probably some exclusions should be added to formatted. I don't have expertise in the project to do it. |
MichaReiser
left a comment
There was a problem hiding this comment.
The formatter now runs on all linter changes because it doesn't exclude the linter specific crates (or development-only crates).
I'm okay merging this but I would prefer reverting the changes to the linter/formatter filesets to keep the changes isolated.
I don't know Rust, so could not do it myself.
Done. |
CodSpeed Performance ReportMerging #8225 will improve performances by 11.42%Comparing Summary
Benchmarks breakdown
|
These were literals instead of expressions... and were consequently not evaluated. Fixes bug from #8225
Summary
scripts/*withscripts/**Test Plan
This PR changes ci.yaml, so it will trigger all jobs. there is no good way to test if something is skipped before merging this to the main and creating other PRs.
I am not familiar with the project well, so might miss some configs that are important.