-
Notifications
You must be signed in to change notification settings - Fork 1.1k
#2488 Update vendoring to remove engine-api #2492
#2488 Update vendoring to remove engine-api #2492
Conversation
8d15522
to
f315db7
Compare
Fixed all unit tests. Most CIs are failing because go 1.6 or higher is required (by upstream). PTAL @nishanttotla |
f315db7
to
0d6faa1
Compare
Ping @michelvocks sorry for the delay on this. We'd like to pick it up again and get it ready soon. Could you please fix the merge conflict? |
0d6faa1
to
704dc98
Compare
@nishanttotla No issue. I've fixed the merge conflict. |
Build is failing. I'm tracking similar problem in #2522.
|
|
@michelvocks sorry for the delay on this, we're updating CI and Go version right now. This is needed to fix some failing tests. I'll ping you when that is done. You'll have to rebase one more time. |
@michelvocks We have updated Go to 1.7.1. Please rebase your PR. |
Thanks. Will do that now. |
704dc98
to
a9fd789
Compare
I've rebased my PR. |
Something is not right with godep. Godep is using go1.6 in your PR. But I think it's something else causes the failure. I can run the following command locally with your PR to get the error.
|
@dongluochen I've set godep to golang 1.6 (like described in my initial PR message). That was before you decided to switch golang to 1.7. Should I change godep to 1.7? I'm also not able to reproduce the error you have mentioned. Are you sure that you use golang 1.6 or higher? |
@michelvocks Yes please upgrade it to go1.7.1 as docker/docker is already on it. If you open the Jenkins |
a9fd789
to
07d1cec
Compare
@dongluochen I've changed godeps to 1.7 golang version. The CI jobs are still failing (like you said). I think this is related to the dockerswarm environment image. This image is used by the CI jobs and there is still golang 1.5 installed. I think we have to upgrade this. |
@michelvocks You are right. We have updated dockerswarm environment image. |
Great. Can you restart the CI jobs? |
@michelvocks There is something wrong with this change. I can reproduce the test failure in my machine. It looks like
|
@dongluochen Thanks. I found the bug. It seems like the string comparison in the file
It compares the error message (e.g. cannot connect to the docker engine endpoint) with a hardcoded string. This string (the error message) has been changed within the last API change from "cannot connect to the docker engine endpoint" to "Cannot connect to the Docker daemon at...". Therefore, the compare was always wrong. Edit: Still have to work for the master CI. Will try to investigate the issue. |
07d1cec
to
149c072
Compare
@nishanttotla Welcome! I fixed the issue with the engine-1.9, engine-1.10 and engine-1.11. I also fixed an issue with one of the tests on the master-branch. A new line "Minimum API version" has been added to the output of |
@michelvocks actually it looks great! There was some issue with the |
@michelvocks in addition to the API version test and leader election, several other |
cd51b3e
to
a742008
Compare
@nishanttotla I was able to fix the api version test. I had to remove whitespaces before doing the comparison. |
ee880c7
to
5bf3bd5
Compare
…API changes included. Signed-off-by: Michel Vocks <[email protected]>
5bf3bd5
to
8c1f769
Compare
@nishanttotla @dongluochen leader-election tests image scheduling affinity Docker run with --rm flag Tests which are still failing |
@michelvocks Thanks for looking into the leader-election tests. I've spent a fair bit of time looking into those too, and I've seen precisely the HTTP hijacking issue you've seen with But that PR itself had some issues that were difficult to resolve. I'm glad that you've also seen this issue, though, since it gives us some more data points. Anyways, the reason why |
@michelvocks 🎉 🎉 🎉 great job, thanks a lot! The binpack test has been flaky in the past, and I'm not surprised it's being flaky now. @wsong we'll review your PR and merge it as well, thanks! cc @dongluochen |
Thanks @michelvocks. LGTM. @wsong We will need to prioritize this PR. We can fix |
@wsong Good point! Didn't noticed that. 😊 |
I kicked the tests one more time just to be sure, and it seems like there's a failure on
I can't remember if this was seen before? It might be another error message mismatch, so we'll see, but otherwise LGTM. |
@nishanttotla This must be a flaky test. The test fails at the beginning with the helper function |
@michelvocks you're right. Most of the failures are flaky at this point. I think we'll merge this PR. |
Merged 🎉 🎉 🎉 @michelvocks once again thanks a lot for your effort. @wsong please rebase your other PRs on top of this one and we'll look at them. |
@michelvocks Thanks for the hard work! |
This PR is a huge one. Tell me if I should split it up somehow.
What I've done
engine-api
todocker/api/type
ordocker/clients
docker/docker/pkg/version
has been replaced upstream withdocker/api/types/versions
docker/pkg/tlsconfig
has been updated and does not work anymore with golang 1.5 (only 1.6 and higher is supported). Function "Clone" is only implemented for 1.6 or higher. Therefore, I upgraded godeps master version to golang 1.7.cluster/event_monitor.go
was changed to be compatible with the changed Events-API interface.What needs to be done?
This fixes #2488
ping @nishanttotla @dongluochen @allencloud
Signed-off-by: Michel Vocks [email protected]