Tools: Run shellcheck in GitHub Actions CI#32715
Merged
peterbarker merged 3 commits intoApr 11, 2026
Merged
Conversation
peterbarker
requested changes
Apr 8, 2026
Contributor
peterbarker
left a comment
There was a problem hiding this comment.
CI must pass; Looks like we need to exclude the modules...
But otherwise, quite in favour.
ce21eae to
7042a52
Compare
peterbarker
reviewed
Apr 9, 2026
Comment on lines
+532
to
+537
| if [ $? -ne 0 ]; then | ||
| echo Shellcheck finds issues in shell scripts. | ||
| if [ "$CI" = "true" ]; then | ||
| exit 1 # Halt the continuous integration workflow | ||
| fi | ||
| fi |
Contributor
There was a problem hiding this comment.
How is any of this executed?
The script is run with set -ex which should mean you never get into this block (and all of the other test types seem to rely on this)
94e1667 to
563e844
Compare
563e844 to
bef90ac
Compare
Contributor
Author
|
|
bef90ac to
27b2c2a
Compare
.github: Run shellcheck in GitHub Actions CI
27b2c2a to
f7090c3
Compare
peterbarker
approved these changes
Apr 11, 2026
Comment on lines
+32
to
+33
| python-version: 3.x | ||
| cache: pip # caching pip dependencies |
Contributor
There was a problem hiding this comment.
Please avoid patches unrelated to the PR topic,as good as they might be.
This was referenced Apr 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Related to:
Tools: Run shellcheck in GitHub Actions CI
Classification & Testing (check all that apply and add your own)
Description
Add a
shellcheckjob to.github/workflows/test_scripts.ymland run that in GitHub Actions.Sort jobs to make it easier to spot missing jobs and nearly impossible to add duplicates.
Use the current Python for the performance enhancements in CI.
How was this tested?
Compare the results of:
%
find . -path ./modules -prune -o -type f -name '*.sh' -exec shellcheck --severity=error '{}' +%
CI_BUILD_TARGET=shellcheck Tools/scripts/build_ci.shto make sure that they match while making changes to the config file
.shellcheckrc.