-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests using the .NET Docker remote API run indefinitely on Ubuntu 20.04 and Ubuntu 22.04 agents #6111
Comments
Hi @Hornet-Nest! |
@Hornet-Nest could you take a look at this issue #5036? |
@miketimofeev I'd say the 2 issues are related. I've not been able to check the logs output from the container on for the build that was run an Ubuntu 20.04 agent however I suspect they will be similar to what is shown in this comment (#5036 (comment)). Which would explain why the builds are being timed out as how I'm verifying that the container is ready to accept requests is to wait by waiting for the word |
This is issue is also here mentioned Azure/azure-cosmos-db-emulator-docker#45 Probably the only way to fix this issue before they depracate ubuntu 18.04 is to upvote issues like that in both places. They even have special email for issues like that that https://docs.microsoft.com/en-us/azure/cosmos-db/linux-emulator?tabs=sql-api%2Cssl-netstd21#report-an-emulator-issue I tried to ask in this second place because "azure-cosmos-db-emulator-docker" repo doesn't seem active and development of linux emulator probably is somwhere else. Still I didn't get response. |
@Hornet-Nest @waszak I'm going to close this issue as an external one but please feel free to contact us if you need any help from our side. |
Description
I have an integration test project that uses a library called
Testcontainers
to start an instance of a docker container for running tests against. The tests in this project pass on the Ubuntu 18.04 agent, however on updating to either Ubuntu 20.04 or 22.04 these tests now run up until the 1 hour build timeout is hit.As the only change between a successful and failing build is updating the agent version in the yaml for the pipeline I believe that the issue is with the newer Ubuntu hosted agents.
Links to the last successful and failing builds can be found below.
Platforms affected
Virtual environments affected
Image version and build link
Failed builds:
Last successful build:
Is it regression?
Ubuntu 18.04
Expected behavior
All tests in the sample project (linked below) pass when run on an Ubuntu 20.04 / 22.04 hosted agent.
The example that shows the issue can be found on the
azure-pipelines
branch.https://dev.azure.com/hornetsnest/_git/TestContainers?path=%2F&version=GBazure-pipelines&_a=contents
Actual behavior
When run on an Ubuntu 20.04 or 22.04 agent the test step of the build runs up to the 1 hour limit. The build is then timed out.
On an Ubuntu 18.04 agent this does not happen and the test step completes in roughly 2 minutes.
Repro steps
azure-pipelines.yml
in the repo.azure-pipelines.yml
to use an Ubuntu 18.04 agent.The text was updated successfully, but these errors were encountered: