Skip to content
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

CI - add job for shellcheck #5948

Merged
merged 3 commits into from
Nov 12, 2022

Conversation

pavoljuhas
Copy link
Collaborator

  • Add check/shellcheck for syntax checking of shell scripts
  • Add CI job to run shellcheck on our shell scripts

Resolves #5923.

@pavoljuhas pavoljuhas requested review from a team, vtomole and cduck as code owners November 10, 2022 04:14
check/mypy
check/nbformat
check/pylint
check/pytest
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No action needed: Eventually, we can add shellcheck itself ;-)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be already included. :-) This list is to verify the shell scripts search command (ie, git ls-files ... | xargs file | ...) works as expected. Would be disappointing to have a passing check that checks zero files. :-/

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand why you've done it and I think it's a great sanity check. I just meant to say that the sanity check could be self-referential since as you say git ls-files invoked by shellcheck should find shellcheck itself :-)

@CirqBot CirqBot added the size: M 50< lines changed <250 label Nov 11, 2022
@viathor viathor added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Nov 12, 2022
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Nov 12, 2022
@CirqBot
Copy link
Collaborator

CirqBot commented Nov 12, 2022

Automerge cancelled: Failed to update branch (incorrect expected_head_sha).

@CirqBot CirqBot removed the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Nov 12, 2022
@viathor viathor added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Nov 12, 2022
@CirqBot CirqBot merged commit f888f8d into quantumlib:master Nov 12, 2022
@CirqBot CirqBot removed automerge Tells CirqBot to sync and merge this PR. (If it's running.) front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. labels Nov 12, 2022
@pavoljuhas pavoljuhas deleted the ci-add-shellcheck-job branch November 13, 2022 01:58
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
- Add check/shellcheck for syntax checking of shell scripts
- Add CI job to run shellcheck on our shell scripts

Resolves quantumlib#5923.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: M 50< lines changed <250
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI - check shell scripts with shellcheck
3 participants