Skip to content

Skip docker Test_CaptureServiceLogs integration tests on windows

Axel von Bertoldi requested to merge avonbertoldi/fix-windows-test-failure into main

What does this MR do?

This MR skips the docker Test_CaptureServiceLogs integration tests when running on a windows OS

Why was this MR needed?

Over in !3680 (merged) I added a new integration test Test_CaptureServiceLogs, which at the time cause the 1809 windows integration tests to fail, so I added that test to the list of expected failures. Since !3680 (merged) was merged, This test has started failing in the other windows integration tests in main. The failure happened because the service images used in that test (protgres and redis) can't be docker pulled on windows (not surprising since they are linux based images).

I tried looking for windows version of redis and postgres (or any other e.g. nginx) images to use in the windows tests, but ran into two problems:

  • Some of the 4 windows environments under which this tests runs (1809, 2004, 21H1, 20H2) use different licenses, and therefore require different images (because docker images on windows are tied to the licenses, e.g. nanoserver, servercore, etc). This makes it impractical to write a test works on all 4 envs.
  • The windows base images are large (one of them was close to 5GB), so even if we create our own minimal image that just produces some logs for the test), would result in a large image. Pulling 5GB of data to run this test doesn't seem practical either.

For these reasons I decided to just skip this tests on windows.

What's the best way to test this MR?

Let the pipeline run.

What are the relevant issue numbers?

Edited by Axel von Bertoldi

Merge request reports