konflux-ci / qe-tools

Contains various useful commands for processing test data
Apache License 2.0
0 stars 9 forks source link

feat: command for checking external services #22

Closed psturc closed 9 months ago

psturc commented 9 months ago

https://issues.redhat.com/browse/RHTAP-1972

# Create some PR in your repo that this command should comment on and fill in following env vars
export REPO_OWNER=<REPLACE_ME> REPO_NAME=qe-tools PULL_NUMBER=<REPLACE_ME> GITHUB_TOKEN=<REPLACE_ME>
make build
# following command should create a comment in a PR with information about which external services are unhealthy and the command should fail with non-zero code
./qe-tools prowjob health-check --fail-if-unhealthy --notify-on-pr
# following command should create a comment in a PR with information about which external services are unhealthy (but the command should not fail)
./qe-tools prowjob health-check --notify-on-pr
# following command should just create a report (in ./tmp/report.json)
./qe-tools prowjob health-check

Example of a comment: https://github.com/psturc/qe-tools/pull/2#issuecomment-1825715293