Skip to content

Add health checks for V2X-Hub automated integration tests#847

Merged
paulbourelly999 merged 5 commits intodevelopfrom
feature/add_it_healthchecks_oci
Mar 19, 2026
Merged

Add health checks for V2X-Hub automated integration tests#847
paulbourelly999 merged 5 commits intodevelopfrom
feature/add_it_healthchecks_oci

Conversation

@SaikrishnaBairamoni
Copy link
Contributor

@SaikrishnaBairamoni SaikrishnaBairamoni commented Mar 18, 2026

PR Details

This PR updates configuration/docker-compose.yml with health checks to support the V2X-Hub integration test environment in usdot-fhwa-OPS/v2xhub-integration-tests.

Description

Related GitHub Issue

Related Jira Key

Motivation and Context

How Has This Been Tested?

Types of changes

  • Defect fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that cause existing functionality to change)

Checklist:

  • I have added any new packages to the sonar-scanner.properties file
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

- v2xhub-logs-volume:/var/log/tmx:rw
- v2xhub-download-volume:/var/www/download/:rw
- ssl-certs-volume:/var/www/plugins/ssl:rw
- ./tests/MAP:/var/www/download/MAP:ro
Copy link
Contributor

Choose a reason for hiding this comment

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

We do not want to add any volumes or configurations to our main docker compose just for the integration tests. Instead, we can override docker-compose details by having a docker compose in the integration testing report that adds these volumes and simply calling

docker compose -f  <configuration/docker-compose.yml> -f <integration_test/docker-compose.yml> up -d

Please look into docker compose documentation for merge https://docs.docker.com/compose/how-tos/multiple-compose-files/merge/

Copy link
Contributor

@paulbourelly999 paulbourelly999 left a comment

Choose a reason for hiding this comment

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

We do not want to add any volumes or configurations to our main docker compose just for the integration tests. Instead, we can override docker-compose details by having a docker compose in the integration testing report that adds these volumes and simply calling

docker compose -f <configuration/docker-compose.yml> -f <integration_test/docker-compose.yml> up -d
Please look into docker compose documentation for merge https://docs.docker.com/compose/how-tos/multiple-compose-files/merge/

@SaikrishnaBairamoni SaikrishnaBairamoni changed the title Add health checks and mounts for V2X-Hub automated integration tests Add health checks for V2X-Hub automated integration tests Mar 19, 2026
- ssl-certs-volume:/etc/apache2/ssl:ro

healthcheck:
test: ["CMD-SHELL", "ps -ef | grep -v grep | grep -E -q 'apache2|httpd' || exit 1"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Health checks should ideally check functionality. This only checks that services are running. Instead we can run a curl command to ensure the web-ui is responding

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated health checks and tested locally

- v2xhub-download-volume:/var/www/download/:rw
- ssl-certs-volume:/var/www/plugins/ssl:rw
healthcheck:
test: ["CMD-SHELL", "ps -ef | grep -v grep | grep -q tmx || exit 1"]
Copy link
Contributor

Choose a reason for hiding this comment

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

For this one since it maybe a harder task to do a functional check. Lets ensure all required services are running. This should include Tmx core services as well as Command Plugin

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@sonarqubecloud
Copy link

@paulbourelly999 paulbourelly999 merged commit 6617ad5 into develop Mar 19, 2026
11 checks passed
@paulbourelly999 paulbourelly999 deleted the feature/add_it_healthchecks_oci branch March 19, 2026 21:01
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