ci: only run CUDA lint when CUDA files change and use 8-cpu runner#2563
Conversation
Add a `changes` detection job using dorny/paths-filter to skip the lint-cuda job when no CUDA-related files (*.cu, *.cuh, cuda/**, etc.) are modified. Also request at least 8 CPUs on the GPU runner. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Claude finished @jonathanpwang's task in 1m 22s —— View job Code Review: PR #2563
Overall this looks good — clean use of 1. Pattern
|
stephenh-axiom-xyz
left a comment
There was a problem hiding this comment.
LGTM except I'd add build.rs files
|
Claude finished @jonathanpwang's task in 43s —— View job Code Review: PR #2563
The changes look good. Here's my review of the current state (after both commits): Changes Summary
ObservationsThe Redundant pattern: Workflow structure is correct: The VerdictLGTM. The approach is clean and the filter patterns cover the important cases. The two minor nits above are cosmetic and don't need to block merge. |
…2563) ## Summary - Add a `changes` detection job using `dorny/paths-filter@v3` to skip the `lint-cuda` job when no CUDA-related files (`*.cu`, `*.cuh`, `**/cuda/**`, `**/cuda*.rs`, etc.) are modified - Request at least 8 CPUs on the GPU runner (`/cpu=8`) for faster builds - The workflow file and CUDA cache action are also included as triggers so changes to CI itself still run the CUDA lint ## Test plan - [ ] Open a PR that doesn't touch any CUDA files and verify `lint-cuda` is skipped - [ ] Open a PR that touches a `.cu` or `.cuh` file and verify `lint-cuda` runs --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
…2563) ## Summary - Add a `changes` detection job using `dorny/paths-filter@v3` to skip the `lint-cuda` job when no CUDA-related files (`*.cu`, `*.cuh`, `**/cuda/**`, `**/cuda*.rs`, etc.) are modified - Request at least 8 CPUs on the GPU runner (`/cpu=8`) for faster builds - The workflow file and CUDA cache action are also included as triggers so changes to CI itself still run the CUDA lint ## Test plan - [ ] Open a PR that doesn't touch any CUDA files and verify `lint-cuda` is skipped - [ ] Open a PR that touches a `.cu` or `.cuh` file and verify `lint-cuda` runs --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Summary
changesdetection job usingdorny/paths-filter@v3to skip thelint-cudajob when no CUDA-related files (*.cu,*.cuh,**/cuda/**,**/cuda*.rs, etc.) are modified/cpu=8) for faster buildsTest plan
lint-cudais skipped.cuor.cuhfile and verifylint-cudaruns