-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: fix super-linter configuration settings (backport #7708) (#7710)
* ci: fix super-linter configuration settings (#7708) - Revert the version pin from #7706. - Override the YAML linter config to be more forgiving. - Update YAML lint warnings in a number of files. The choice of which lints to fix and which to override was ad hoc: I fixed the ones that were mainly whitespace oriented, and suppressed the ones that were document-structure related. Fixes #7707. (cherry picked from commit 5eb50a4) * Resolve cherry-pick conflicts. Co-authored-by: M. J. Fromberger <[email protected]> (cherry picked from commit c152462)
- Loading branch information
1 parent
b2cb1b4
commit 2d9ecb2
Showing
29 changed files
with
51 additions
and
80 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
pullRequestOpened: | | ||
:wave: Thanks for creating a PR! | ||
:wave: Thanks for creating a PR! | ||
Before we can merge this PR, please make sure that all the following items have been | ||
Before we can merge this PR, please make sure that all the following items have been | ||
checked off. If any of the checklist items are not applicable, please leave them but | ||
write a little note why. | ||
write a little note why. | ||
- [ ] Wrote tests | ||
- [ ] Updated CHANGELOG_PENDING.md | ||
- [ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work. | ||
- [ ] Updated relevant documentation (`docs/`) and code comments | ||
- [ ] Re-reviewed `Files changed` in the Github PR explorer | ||
- [ ] Applied Appropriate Labels | ||
- [ ] Wrote tests | ||
- [ ] Updated CHANGELOG_PENDING.md | ||
- [ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work. | ||
- [ ] Updated relevant documentation (`docs/`) and code comments | ||
- [ ] Re-reviewed `Files changed` in the Github PR explorer | ||
- [ ] Applied Appropriate Labels | ||
Thank you for your contribution to Tendermint! :rocket: | ||
Thank you for your contribution to Tendermint! :rocket: |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
default: true, | ||
MD007: {"indent": 4} | ||
MD013: false | ||
MD024: {siblings_only: true} | ||
MD025: false | ||
MD033: {no-inline-html: false} | ||
no-hard-tabs: false | ||
whitespace: false |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
# Default rules for YAML linting from super-linter. | ||
# See: See https://yamllint.readthedocs.io/en/stable/rules.html | ||
extends: default | ||
rules: | ||
document-end: disable | ||
document-start: disable | ||
line-length: disable | ||
truthy: disable |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,12 +21,12 @@ jobs: | |
- name: Checkout Code | ||
uses: actions/[email protected] | ||
- name: Lint Code Base | ||
uses: docker://github/super-linter:v3 | ||
uses: docker://github/super-linter:v4 | ||
env: | ||
LINTER_RULES_PATH: . | ||
VALIDATE_ALL_CODEBASE: true | ||
DEFAULT_BRANCH: master | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
VALIDATE_MD: true | ||
VALIDATE_OPENAPI: true | ||
VALIDATE_YAML: true | ||
YAML_CONFIG_FILE: yaml-lint.yml |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,5 +65,5 @@ networks: | |
ipam: | ||
driver: default | ||
config: | ||
- | ||
subnet: 192.167.10.0/16 | ||
- | ||
subnet: 192.167.10.0/16 |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
--- | ||
|
||
- hosts: all | ||
user: root | ||
any_errors_fatal: true | ||
|
@@ -8,4 +7,3 @@ | |
- service: tendermint | ||
roles: | ||
- install | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
--- | ||
|
||
- hosts: all | ||
user: root | ||
any_errors_fatal: true | ||
|
@@ -10,5 +9,3 @@ | |
- stop | ||
- unsafe_reset | ||
- start | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
--- | ||
|
||
- hosts: all | ||
user: root | ||
any_errors_fatal: true | ||
|
@@ -9,4 +8,3 @@ | |
roles: | ||
- stop | ||
- start | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
--- | ||
|
||
- name: reload services | ||
systemd: "name={{service}} daemon_reload=yes enabled=yes" | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
--- | ||
|
||
- name: reload daemon | ||
command: "systemctl daemon-reload" | ||
|
||
- name: restart journalbeat | ||
service: name=journalbeat state=restarted | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
--- | ||
|
||
- name: start service | ||
service: "name={{service}} state=started" | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
--- | ||
|
||
- name: application service status | ||
command: "service {{service}} status" | ||
changed_when: false | ||
register: status | ||
|
||
- name: Result | ||
debug: var=status.stdout_lines | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
--- | ||
|
||
- name: stop service | ||
service: "name={{service}} state=stopped" | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
- command: "{{service}} unsafe_reset_all {{ (service != 'tendermint') | ternary('node','') }} --home /home/{{service}}/.{{service}}" | ||
become_user: "{{service}}" | ||
become: yes | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
--- | ||
|
||
- hosts: all | ||
user: root | ||
any_errors_fatal: true | ||
|
@@ -8,4 +7,3 @@ | |
- service: tendermint | ||
roles: | ||
- start | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
--- | ||
|
||
- hosts: all | ||
user: root | ||
any_errors_fatal: true | ||
|
@@ -8,4 +7,3 @@ | |
- service: tendermint | ||
roles: | ||
- status | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
--- | ||
|
||
- hosts: all | ||
user: root | ||
any_errors_fatal: true | ||
|
@@ -8,4 +7,3 @@ | |
- service: tendermint | ||
roles: | ||
- stop | ||
|