cryostatio / cryostat

Other
7 stars 8 forks source link

fix(health): correctly check reports service health #451

Closed andrewazores closed 1 month ago

andrewazores commented 1 month ago

Welcome to Cryostat3! 👋

Before contributing, make sure you have:

To recreate commits with GPG signature git fetch upstream && git rebase --force --gpg-sign upstream/main


Fixes: #450

Description of the change:

Implements the correct reports generation healthcheck behaviour, matching the previous 2.x versions.

Motivation for the change:

This is useful for diagnosing reports sidecar configuration and is also used by some automated tests.

How to manually test:

  1. Check out and build PR
  2. ./smoketest.bash -O, then in another terminal http --auth=user:pass :8080/health. Check that reports are not configured but are available.
  3. ./smoketest.bash -Or, then in another terminal http --auth=user:pass :8080/health. Check that reports are both configured and available.
  4. Edit compose/reports.yml and change the QUARKUS_REST_CLIENT_REPORTS_URL to a different port number or host name, then re-run ./smoketest.bash -Or. Now it should say that reports are configured but unavailable.
andrewazores commented 1 month ago

/build_test

github-actions[bot] commented 1 month ago

Workflow started at 5/10/2024, 9:06:17 AM. View Actions Run.

github-actions[bot] commented 1 month ago

No GraphQL schema changes detected.

github-actions[bot] commented 1 month ago

No OpenAPI schema changes detected.

github-actions[bot] commented 1 month ago

CI build and push: At least one test failed ❌ (JDK17) https://github.com/cryostatio/cryostat3/actions/runs/9032697833

andrewazores commented 1 month ago

/build_test

github-actions[bot] commented 1 month ago

Workflow started at 5/10/2024, 9:16:58 AM. View Actions Run.

github-actions[bot] commented 1 month ago

No GraphQL schema changes detected.

github-actions[bot] commented 1 month ago

No OpenAPI schema changes detected.

github-actions[bot] commented 1 month ago

CI build and push: All tests pass ✅ (JDK17) https://github.com/cryostatio/cryostat3/actions/runs/9032836014