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

Add shellcheck to ci #12871

Merged
merged 9 commits into from
Sep 3, 2020
Merged

Add shellcheck to ci #12871

merged 9 commits into from
Sep 3, 2020

Conversation

phlax
Copy link
Member

@phlax phlax commented Aug 28, 2020

Add shellcheck to ci and fix some scripts that fail linting

This PR adds the framework for running shellcheck in ci

Im not sure if where i have hooked it in is the best place, apart from anything shellcheck does not give very reliable fixes - so it does not provide a patch to remedy as other code formatting ci does.

I have fixed some of the low-hanging fruit, but figured that it would probably be a good idea to fix other parts in separate PRs as they touch other parts of the code base

Signed-off-by: Ryan Northey ryan@synca.io

Commit Message: Add shellcheck to ci
Additional Description:
Risk Level: low/medium
Testing:
Docs Changes:
Release Notes:
[Optional Runtime guard:]
[Optional Fixes #Issue] Partial fix for #7793
[Optional Deprecated:]

@phlax phlax changed the title Add shellcheck to ci [WIP] Add shellcheck to ci Aug 28, 2020
@phlax phlax marked this pull request as draft August 28, 2020 11:20
@phlax phlax force-pushed the ci-run-shellchecks branch 7 times, most recently from ea0adb9 to 436413c Compare August 28, 2020 18:00
@phlax phlax force-pushed the ci-run-shellchecks branch from 690b50c to cf959c2 Compare August 28, 2020 19:51
phlax added 4 commits August 29, 2020 08:46
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
@phlax phlax force-pushed the ci-run-shellchecks branch from a665861 to c6b50be Compare August 29, 2020 07:46
@phlax phlax changed the title [WIP] Add shellcheck to ci Add shellcheck to ci Aug 29, 2020
@phlax phlax marked this pull request as ready for review August 29, 2020 07:54
Copy link
Member

@lizan lizan left a comment

Choose a reason for hiding this comment

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

Nice, thanks for doing this.

ci/run_envoy_docker.sh Outdated Show resolved Hide resolved
ci/do_ci.sh Show resolved Hide resolved
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
@phlax
Copy link
Member Author

phlax commented Sep 1, 2020

wierdly, shellcheck is failing a script that is only present in master, and not in this PR

ive disabled it for now, but im wondering why the script appeared and was being checked.

@lizan
Copy link
Member

lizan commented Sep 1, 2020

wierdly, shellcheck is failing a script that is only present in master, and not in this PR

ive disabled it for now, but im wondering why the script appeared and was being checked.

This is expected, Azure pipelines (or GitHub Actions) runs CI on PR merge commit instead of PR head.

@lizan lizan merged commit c41bf57 into envoyproxy:master Sep 3, 2020
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