-
Notifications
You must be signed in to change notification settings - Fork 318
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
Newer httpclient 5 API breaks tests of the docker plugin #1103
Comments
#1103 describes the issue. Ubuntu 22.04 and Debian without Docker listening on port 2375 fails tests when testing with apache-httpcomponents-client-5-api 5.4-118.v199115451c4d . The same tests pass if tested with apache-httpcomponents-client-5-api 5.3.1-110.v77252fb_d4da_5 Ubuntu 22.04 and Debian with Docker listening on port 2375 passes tests with both versions of apache-httpcomponents-client-5-api
@krisstern I'm truly surprised by this failure, but did not want to block the update to the most recent plugin bill of materials. I've assigned it to myself, but I'm not yet sure when I will have time to investigate it. |
I am getting failing tests locally on latest
Env: |
Any guess about what is different between your Windows computer and the Windows agent on ci.jenkins.io where the tests pass? |
Not sure: PS C:\Users\fitzsimok\dev\docker-plugin> mvn clean verify -X |
Hit the same error in wsl(ubuntu) on the same host Apache Maven 3.9.8 (36645f6c9b5079805ea5009217e36f2cffd34256) |
I thought it might be an issue with my env on company laptop, but I ran on my personal laptop, with same version of java and maven,
and have reproduced the issue with the tests, also when i run mvn hpi:run docker does not show up as a cloud even though the plugin is installed... |
I'm not sure that anyone has attempted to use the docker plugin as a cloud provider on a Windows installation of Docker. I use it with a Linux host that runs Docker. The Windows agents on ci.jenkins.io may not have Docker installed or they may have Docker installed and configured in such a way that the tests in the plugin are skipped. Your Docker configuration on Windows may be different enough from the ci.jenkins.io agents that the tests are not skipped. |
Jenkins and plugins versions report
Environment summary
What Operating System are you using (both controller, and any agents involved in the problem)?
Ubuntu 22.04 and Debian without Docker listening on port 2375 fails tests when testing with apache-httpcomponents-client-5-api 5.4-118.v199115451c4d . The same tests pass if tested with apache-httpcomponents-client-5-api 5.3.1-110.v77252fb_d4da_5
Ubuntu 22.04 and Debian with Docker listening on port 2375 passes tests with both versions of apache-httpcomponents-client-5-api
Reproduction steps
Expected Results
Tests should pass with both the older and the newer version of the apache-httpcomponents-client-5-api library
Actual Results
Test fail unexpectedly unless a Docker listener is available on port 2375
Anything else?
Failure seems to be specific to the tests. Assumed that there is some difference in exception handling between the two versions of the apache-httpcomponents-client-5-api library.
Are you interested in contributing a fix?
Yes, though not sure when time will allow it. A temporary workaround has been applied in:
The text was updated successfully, but these errors were encountered: