-
Notifications
You must be signed in to change notification settings - Fork 132
Shell completion auto-install and pre-commit hook improvements #1124
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
base: master
Are you sure you want to change the base?
Changes from all commits
7496ab7
26f7e17
4b17fa2
1b211a5
9304137
77ac8cc
a7cf1d2
4b55c30
e017cf0
780138b
06f0425
f65ed30
d23addc
33cbd0e
1ba4666
adfcb7f
02ef3de
ff8d499
fc5e2a5
9c15c8a
52d0ddd
8e3f405
989a79d
e913f7c
6972e6e
cf49bcc
72d8a38
88d8736
c96edf2
b44360f
f24c62b
e0bdc88
f9fa919
0ec406b
1e863ae
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -39,10 +39,10 @@ jobs: | |||||||||||||||||||||||||
| libfftw3-dev libhdf5-dev libblas-dev liblapack-dev | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| - name: Build | ||||||||||||||||||||||||||
| run: /bin/bash mfc.sh build -j $(nproc) --gcov | ||||||||||||||||||||||||||
| run: /bin/bash mfc.sh build -v -j $(nproc) --gcov | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| - name: Test | ||||||||||||||||||||||||||
| run: /bin/bash mfc.sh test -a -j $(nproc) | ||||||||||||||||||||||||||
| run: /bin/bash mfc.sh test -v -a -j $(nproc) | ||||||||||||||||||||||||||
|
Comment on lines
41
to
+45
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix actionlint SC2046 by quoting actionlint flags the unquoted command substitution; this can fail the lint gate. 🔧 Suggested fix- run: /bin/bash mfc.sh build -v -j $(nproc) --gcov
+ run: /bin/bash mfc.sh build -v -j "$(nproc)" --gcov
@@
- run: /bin/bash mfc.sh test -v -a -j $(nproc)
+ run: /bin/bash mfc.sh test -v -a -j "$(nproc)"📝 Committable suggestion
Suggested change
🧰 Tools🪛 actionlint (1.7.10)[error] 42-42: shellcheck reported issue in this script: SC2046:warning:1:30: Quote this to prevent word splitting (shellcheck) [error] 45-45: shellcheck reported issue in this script: SC2046:warning:1:32: Quote this to prevent word splitting (shellcheck) 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| - name: Upload coverage reports to Codecov | ||||||||||||||||||||||||||
| uses: codecov/codecov-action@v4 | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -16,7 +16,7 @@ if [ "$job_device" = "gpu" ]; then | |||||||||||||||||||||||
| fi | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| if [ "$job_device" = "gpu" ]; then | ||||||||||||||||||||||||
| ./mfc.sh bench --mem 12 -j $n_ranks -o "$job_slug.yaml" -- -c frontier_amd $device_opts -n $n_ranks | ||||||||||||||||||||||||
| ./mfc.sh bench -v --mem 12 -j $n_ranks -o "$job_slug.yaml" -- -c frontier_amd $device_opts -n $n_ranks | ||||||||||||||||||||||||
| else | ||||||||||||||||||||||||
| ./mfc.sh bench --mem 1 -j $(nproc) -o "$job_slug.yaml" -- -c frontier_amd $device_opts -n $n_ranks | ||||||||||||||||||||||||
| ./mfc.sh bench -v --mem 1 -j $(nproc) -o "$job_slug.yaml" -- -c frontier_amd $device_opts -n $n_ranks | ||||||||||||||||||||||||
|
Comment on lines
18
to
+21
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: rg -nP '\bjob_slug\b' -C2 .github/workflowsRepository: MFlowCode/MFC Length of output: 10370 🏁 Script executed: cat -n .github/workflows/frontier_amd/bench.sh | head -50Repository: MFlowCode/MFC Length of output: 1004 🏁 Script executed: fd -type f -name "*.sh" .github/workflows | head -10Repository: MFlowCode/MFC Length of output: 227 🏁 Script executed: cat -n .github/workflows/frontier_amd/submit-bench.shRepository: MFlowCode/MFC Length of output: 1552 🏁 Script executed: cat -n .github/workflows/frontier_amd/bench.shRepository: MFlowCode/MFC Length of output: 1004 Quote variables to follow shellcheck recommendations. Lines 19 and 21 use unquoted Note: 🔧 Suggested fix if [ "$job_device" = "gpu" ]; then
- ./mfc.sh bench -v --mem 12 -j $n_ranks -o "$job_slug.yaml" -- -c frontier_amd $device_opts -n $n_ranks
+ ./mfc.sh bench -v --mem 12 -j "$n_ranks" -o "$job_slug.yaml" -- -c frontier_amd $device_opts -n "$n_ranks"
else
- ./mfc.sh bench -v --mem 1 -j $(nproc) -o "$job_slug.yaml" -- -c frontier_amd $device_opts -n $n_ranks
+ ./mfc.sh bench -v --mem 1 -j "$(nproc)" -o "$job_slug.yaml" -- -c frontier_amd $device_opts -n "$n_ranks"
fi📝 Committable suggestion
Suggested change
🧰 Tools🪛 Shellcheck (0.11.0)[warning] 19-19: job_slug is referenced but not assigned. (SC2154) [warning] 21-21: Quote this to prevent word splitting. (SC2046) 🤖 Prompt for AI Agents |
||||||||||||||||||||||||
| fi | ||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.