exasol / integration-test-docker-environment

A docker-based environment for integration tests with the EXASOL DB.
https://exasol.github.io/integration-test-docker-environment/
MIT License
6 stars 2 forks source link

Retrieve and upload database logs to GH when test fails #130

Open tomuben opened 2 years ago

tomuben commented 2 years ago

Background

Some tests fail regularly due to an unknown error in COS:

2021-11-10T10:02:30.6946636Z Log_E: [2021-11-10 11:02:25] <139922072319744> event_channel.cc:203 operator()(): Caught COS::exception: e_unknown_object - ERROR 00000: unknown object

In order to help the DB team to analyze the root cause, we need to pull more logs from the db and upload to GH.

Acceptance Criteria

  1. Take a look how exasol-testcontainer retrieves the log (https://github.com/exasol/exasol-testcontainers/blob/02f14c81c32a88373278596f377c5[…]c/main/java/com/exasol/support/SupportInformationRetriever.java) and do the same when SpawnTestDatabase fails. (Check https://github.com/exasol/integration-test-docker-environment/blob/master/exasol_integration_test_docker_environment/lib/test_environment/database_waiters/wait_for_test_docker_database.py)
  2. Use github actions upload artifact (https://github.com/actions/upload-artifact) to upload the logs when the step has been failed.