Repository navigation
Add clang format script and CI check - #30
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 37 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
The PR adds a format.sh script and a GitHub Actions workflow to enforce clang-format on shader files. The main risk is that the workflow installs clang-format-18 but the script invokes clang-format (unversioned), which will not be available on the runner and cause the CI job to fail. The workflow also uses actions/checkout@v7, which may not exist (current stable is v4); this should be verified.
review-bot, model nvidia/nemotron-3-ultra-550b-a55b:free, verdict request_changes
|
Addressed the first finding, which was right: Not addressing the second finding: |
There was a problem hiding this comment.
The PR adds a format.sh script and a GitHub Actions workflow to enforce clang-format on shader files. Three issues block this: the workflow uses actions/checkout@v7 which does not exist (current is v4), it does not make format.sh executable before running, and it installs clang-format-18 but the script invokes 'clang-format' which may not be on PATH (the package provides 'clang-format-18').
review-bot, model nvidia/nemotron-3-ultra-550b-a55b:free, verdict request_changes
There was a problem hiding this comment.
Adds a format.sh script and GitHub Actions workflow to enforce clang-format on shader sources. The script supports in-place formatting and a --check mode for CI; the workflow pins clang-format-18 to prevent version drift.
review-bot, model nvidia/nemotron-3-ultra-550b-a55b:free, verdict approve
Adds a
format.shscript that formats the shader sources with clang-format, plus aFormatworkflow that fails a pull request when the shaders are not formatted../format.shrewrites the files in place../format.sh --checkreports problems and exits nonzero without writing, which is what CI runs.The CI pins clang-format-18 so a new upstream release cannot reformat the tree and fail unrelated pull requests. The current shaders already match
.clang-format, verified with clang-format 18, 19, and 22.