upd to 1.22 API update part 1#469
Conversation
KostyaSha
commented
Feb 17, 2016
|
I will do models sync firstly, then we can define what to do with tests. Additional dumps are picked from tests executions with wireshark. |
|
Please comment diffs tab and not single commits. |
|
Will do so. |
|
What about sync to 1.21 in v3.0.0? There is an appropriate open issue in |
|
@marcuslinke i see no sense in syncing 1.21 because it will be double work to sync 1.22 separately. I have full time to fully end 1.22 sync at this week. So i can do it for 3.0.0. I also think people already wants 1.22/1.10 features... Or i can rebase 1.22 to future version later. |
|
Ideally we should jump over the precipice by mass syncing and refactoring for existed problems and then do more frequent releases with single changes. |
|
@marcuslinke that's terrible :(
I would suggest review/merge 1.22 by portions. Will you have time? |
|
@KostyaSha I'm currently working on the auth refactoring and my time is mainly limited to the evening hours so we will see what I can do... |
|
@KostyaSha We should not mix two different test frameworks. Rather switch to JUnit completely. But that would be a pain... Regarding your suggestions
I think most of this could be fixed in the current master branch as it is not related to 1.22 API sync. Maybe we could do this later when this PR is merged? |
|
@marcuslinke i will add tests and end this portion of 1.22 then. Will target related tests to 1.22. 1.22 didn't remove any 1.21 fields so it shouldn't cause problems for 1.21. Btw 1.21 wasn't synced in time. |
|
PS i made custom getter/setter generators for IDEA. TODO place in some sources. |
|
use |
|
Ok, fixing this and will add tests for new fields. In theory, would you accept testng->junit if i can do it? |
|
Sure, I would accept it but ideally it should be done after all pending changes are merged. I'm currently working on the auth refactoring which affects many test sources also... |
|
Of course later! 🏧 i'm following existed design + partially started implementing #404 (without refactorings). |
|
@marcuslinke am i right understand that for the same types i.e. |
|
I.e. https://github.com/docker/docker/blob/master/docs/reference/api/docker_remote_api_v1.22.md#list-containers |
|
IDEA getter generator uses |
|
Getter generator: |
I think this is not intended but rather by mistake. Maybe in the past these objects had the same fields so original contributors decided to reuse a class. But nowadays for example if we have two different |
|
@marcuslinke yeah... I become bit confused with information where and what is used so i'm filling javadocs everywhere. |
|
Have to go now. We have guests this weekend.... |
| * | ||
| * @author Kanstantsin Shautsou | ||
| */ | ||
| public class JSONSamples { |
There was a problem hiding this comment.
@oleg-nenashev FYI, reworked with ability to specify types.
|
|
||
| final Integer exitCode = inspectContainerResponse.getState().getExitCode(); | ||
| if (apiVersion.equals(VERSION_1_22)) { | ||
| assertThat(exitCode, is(0)); // FIXME: 2/26/16 |
There was a problem hiding this comment.
that looks very strange, needs to be double checked
There was a problem hiding this comment.
Checked locally with the same result. For 1.22 exit code is 0 and for 1.21 exit code is 137...
There was a problem hiding this comment.
No idea why, let's keep as is? :)
|
@marcuslinke get your review, resolve few 'fixme' and merge :) I can even try squash some changes into logical commits but without PR builder that may verify all commits it would be to difficult. |
|
@KostyaSha Hopefully I'm able to review your PR today evening. |
|
fingers crossed guys! lets hope there will be 0.10.2 support soon :) |
|
|
||
| public KillContainerCmd.Exec createKillContainerCmdExec(); | ||
|
|
||
| UpdateContainerCmd.Exec createUpdateContainerCmdExec(); |
There was a problem hiding this comment.
use public keyword or remove other public keywords.
There was a problem hiding this comment.
in next PR will do and it TODO enable checkstyle.
|
@KostyaSha Review finished so far. What about //Fixme annotated properties? And how to proceed in general? Should we create a |
In summary i think that docker-java should be splitted into models and porcelain API (no interfaces, ability to do serders on models) #469 (comment)
Imho, better 3.0.0-rc2 as many people wants newer API. (We should be more robust in future with changes). |
|
So 3.0.0-RC2 should include this PR? Wouldn't it be better to release a version (3.0.0) that supports 1.21 rudimentary and then do a subsequent 3.1.0 with 1.22 support? |
|
unless 3.0.0 truly supports 1.21 I would go for rc2. If you release 3.0.0 please be double sure that it works. |
|
This pr has mostly only new fields, it doesn't change internals. So should be safe. |
|
Imho, release rc2, merge this, release rc3, etc. :)as soon as i end sync i will update my reference plugin and do additional checks. |
|
👍 |
Value set according to response.
Signed-off-by: Kanstantsin Shautsou <kanstantsin.sha@gmail.com>
|
merged via #488 |