-
Notifications
You must be signed in to change notification settings - Fork 323
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. |
I wasn't able to figure out the root cause of the issue, but I was able to
get the test to run on a ubuntu vm, the reason I wanted to get the
plugin/test working was to try and address this issue
#1104, I have created a PR
which i believe addresses the issue, but cant fully test it. I am hoping
someone else can. #1105
…On Sat, Oct 5, 2024 at 12:44 AM Mark Waite ***@***.***> wrote:
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,
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.
—
Reply to this email directly, view it on GitHub
<#1103 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BKA4AWEOQRT7XUYIUUTKHCDZZ4R6RAVCNFSM6AAAAABPGPRX6KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJUG44TIMBQGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Reverts 1991154 from jenkinsci#57 jenkinsci/docker-plugin#1032 describes the failure that end users encounter with httpclient 5.4 when connecting to the Docker daemon over a Unix domain socket. jenkinsci/docker-plugin#1103 describes the test automation failure that happens with httpclient 5.4. jenkinsci#29 notes that there may have been a breaking change in httpclient 5.4. jenkinsci#59 also notes that there is an issue in httpclient 5.4.
A new 5.4-124.v31e2987e48f4 release of Apache httpcomponents client 5 API is available that switches the library back to httpclient 5.3.1 while retaining the version number "5.4" in the version string. |
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: