-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Make badges consistent, run markdownlint on all .md files (#347)
- Consistently generate badges for GH workflows in roles RHELPLAN-146921 - Run markdownlint on all .md files - Rename woke action to Woke for a pretty badge - Use woke from linux-system-roles/lsr-woke-action Signed-off-by: Sergei Petrosian <[email protected]>
- Loading branch information
Showing
7 changed files
with
36 additions
and
25 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
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,18 +1,19 @@ | ||
# yamllint disable rule:line-length | ||
name: Check for non-inclusive language | ||
name: Woke | ||
on: # yamllint disable-line rule:truthy | ||
- pull_request | ||
jobs: | ||
woke: | ||
name: woke | ||
name: Detect non-inclusive language | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: woke | ||
uses: get-woke/woke-action@v0 | ||
- name: Run lsr-woke-action | ||
# Originally, uses: get-woke/woke-action@v0 | ||
uses: linux-system-roles/lsr-woke-action@main | ||
with: | ||
woke-args: "-c https://raw.githubusercontent.com/linux-system-roles/tox-lsr/main/src/tox_lsr/config_files/woke.yml" | ||
woke-args: "-c https://raw.githubusercontent.com/linux-system-roles/tox-lsr/main/src/tox_lsr/config_files/woke.yml --count-only-error-for-failure" | ||
# Cause the check to fail on any broke rules | ||
fail-on-error: true |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
## Rsyslog Provider | ||
# Rsyslog Provider | ||
|
||
This sub-tree contains the rsyslog implementation. | ||
|
||
|
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,17 +1,18 @@ | ||
CI tests | ||
======== | ||
# CI tests | ||
|
||
The tests are implemented in tests/tests_*.yml. | ||
|
||
Rough naming convention of the tests - tests_inputname[_outputname].conf. | ||
|
||
Tests are divided in to these groups. | ||
|
||
- basics input - input from imjournal or imuxsock, and output to omfile or omfwd | ||
- tests_basics_files.yml | ||
- tests_basics_forwards.yml | ||
- tests_imuxsock_files.yml | ||
- files input - input from imfile and output to omfile | ||
- tests_files_files.yml | ||
- combination - input from imjournal and imfile, and output to omfile or omfwd | ||
- combination - input from imjournal and imfile, and output to omfile or omfwd | ||
- tests_combination.yml | ||
- files_elasticsearch - input from imfile, and output to elasticsearch, including key/certs set up | ||
- tests_files_elasticsearch.yml | ||
|
@@ -31,22 +32,29 @@ The CI tests are triggered when a pull request is submitted. Each tests_testname | |
The tests are used in the upstream as well as the downstream CI testing. | ||
|
||
You can manually run the tests, as well. | ||
1. Download CentOS qcow2 image from https://cloud.centos.org/centos/. | ||
|
||
1. Download CentOS qcow2 image from <https://cloud.centos.org/centos/>. | ||
2. Make sure standard-test-roles-inventory-qemu package is installed. | ||
3. Run the following command from the `tests` directory, which spawns an openshift node locally and runs the test yml on it. | ||
``` | ||
|
||
```bash | ||
TEST_SUBJECTS=/path/to/downloaded_your_CentOS_7_or_8_image.qcow2 ansible-playbook [-vvvv] -i /usr/share/ansible/inventory/standard-inventory-qcow2 tests_testname.yml | ||
``` | ||
|
||
When the test is done, the test environment is cleaned up. | ||
4. If the test fails and you need to debug it, add `TEST_DEBUG=true` prior to `ansible-playbook`, which leaves the test environment. | ||
5. Once the ansible-playbook is finished, you can ssh to the node as follows: | ||
``` | ||
|
||
```bash | ||
ssh -p PID -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /tmp/inventory-cloudRANDOMSTR/identity [email protected] | ||
``` | ||
|
||
The PID is returned from the following command line. | ||
``` | ||
|
||
```bash | ||
ps -ef | grep "linux-system-roles.logging.tests" | egrep -v grep | awk '{print $28}' | awk -F':' '{print $3}' | awk -F'-' '{print $1}' | ||
``` | ||
5. When the debugging is done, run `ps -ef | grep standard-inventory-qcow2` and kill the pid to clean up the node. | ||
|
||
For more details, see also https://github.com/linux-system-roles/test-harness. | ||
6. When the debugging is done, run `ps -ef | grep standard-inventory-qcow2` and kill the pid to clean up the node. | ||
|
||
For more details, see also <https://github.com/linux-system-roles/test-harness>. |