Remove engine.Job from Builder.#12457
Conversation
d3c7a31 to
368dde3
Compare
|
@calavera Looks like panic |
|
yeah, json deserialization 🙀 |
api/server/server.go
Outdated
There was a problem hiding this comment.
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.
Yeah, I'm too for calling it buildConfig. Was very confused to read diff :)
There was a problem hiding this comment.
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: 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 <[email protected]>
Signed-off-by: David Calavera <[email protected]>
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.
Will be a race. Should be protected by mutex. Maybe method Flushed()?
That way we can know when the stream has been flushed. Signed-off-by: David Calavera <[email protected]>
701a868 to
3b05005
Compare
|
green again 🎉 |
|
LGTM |
1 similar comment
|
LGTM |
Remove engine.Job from Builder.
Part of #12151.