-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Remove engine.Job from Builder. #12457
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
Conversation
d3c7a31 to
368dde3
Compare
|
@calavera Looks like panic |
|
yeah, json deserialization 🙀 |
api/server/server.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer not to call this 'job' - it would be better to just call it "buildConfig" or something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I'm too for calling it buildConfig. Was very confused to read diff :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed, it's still there because I used it as a reference to know what I had to change 😄
368dde3 to
3f8c8e1
Compare
3f8c8e1 to
0c51f95
Compare
0c51f95 to
faedd61
Compare
faedd61 to
1edec46
Compare
1edec46 to
cc3cac2
Compare
|
It looks like errors were not actually serialized to stdout either but just returned as |
d1aab9d to
beb813e
Compare
|
I've rebased this with master. |
|
@calavera Janky still failing :( |
|
Yeah, it really really wants to check errors in the output and also in the returned err. Reverting |
beb813e to
66dad95
Compare
|
@calavera Could you point me to place where it checks those errors? |
|
Yeah, we need this condition: https://github.com/docker/docker/pull/12457/files#diff-44a527ea72ea9572e1cf71c7f1e2a0f0R1338 Some errors are in the output, in that case we don't return |
|
I don't understand why we need this trick at all. |
|
I think if we return the |
|
I think I know - it is detection of sending |
|
Also, if we'll merge #12564 it will be possible to remove engine from builder totally :) but maybe in other PR. |
Signed-off-by: David Calavera <david.calavera@gmail.com>
Signed-off-by: David Calavera <david.calavera@gmail.com>
66dad95 to
701a868
Compare
|
@LK4D4 well, it turns out that we already have a wrapper around the ResponseWriter, the WriteFlusher. I've added a flag to know when the stream has been flushed. That way we still can control the writer status without introducing a new wrapper. Let me know what you think. |
api/server/server.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will be a race. Should be protected by mutex. Maybe method Flushed()?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed!
That way we can know when the stream has been flushed. Signed-off-by: David Calavera <david.calavera@gmail.com>
701a868 to
3b05005
Compare
|
green again 🎉 |
|
LGTM |
1 similar comment
|
LGTM |
Remove engine.Job from Builder.
Part of #12151.