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

[CMSP-132] shellcheck devops scripts #124

Merged
merged 9 commits into from
May 8, 2024

Conversation

jazzsequence
Copy link
Contributor

This pull request updates the linting Composer scripts in the project and adds a new lint:devops script to be used in automation and Pantheon engineers. It makes sure that only existing devops scripts are linted.

This PR also updates the scripts to shellcheck standards.

@jazzsequence jazzsequence requested review from a team as code owners May 7, 2024 21:33
@jazzsequence jazzsequence self-assigned this May 7, 2024
@jazzsequence jazzsequence requested a review from pwtyler May 7, 2024 21:33
devops/scripts/check-commits.sh Outdated Show resolved Hide resolved
devops/scripts/commit-type.sh Outdated Show resolved Hide resolved
devops/scripts/deploy-decoupled-upstream.sh Outdated Show resolved Hide resolved
this is the one I'm worried about breaking
@jazzsequence jazzsequence requested a review from pwtyler May 7, 2024 21:52
Copy link
Member

@pwtyler pwtyler left a comment

Choose a reason for hiding this comment

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

approving with one more optional todo

devops/scripts/check-commits.sh Outdated Show resolved Hide resolved
@jazzsequence jazzsequence merged commit aa399f5 into default May 8, 2024
4 checks passed
@jazzsequence jazzsequence deleted the cmsp-132-shellcheck-devops-scripts branch May 8, 2024 17:15
jazzsequence added a commit that referenced this pull request Jul 31, 2024
* shcllcheck changes

* add devops/scripts/*.sh to lint:bash

* only shellcheck devops/scripts if it exists
in customer repositories it will not

* make devops linting separate from lint tests
so customers don't need to use it or delete it but we can run it

* add lint:devops to testing

* break nested subshell

* leave the code and ignore the lint
this is the one I'm worried about breaking

* use `# shellcheck source` instead of `# shellcheck disable`

* Update devops/scripts/check-commits.sh

Co-authored-by: Phil Tyler <[email protected]>

---------

Co-authored-by: Phil Tyler <[email protected]>
jazzsequence added a commit that referenced this pull request Aug 1, 2024
* shcllcheck changes

* add devops/scripts/*.sh to lint:bash

* only shellcheck devops/scripts if it exists
in customer repositories it will not

* make devops linting separate from lint tests
so customers don't need to use it or delete it but we can run it

* add lint:devops to testing

* break nested subshell

* leave the code and ignore the lint
this is the one I'm worried about breaking

* use `# shellcheck source` instead of `# shellcheck disable`

* Update devops/scripts/check-commits.sh

Co-authored-by: Phil Tyler <[email protected]>

---------

Co-authored-by: Phil Tyler <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants