-
Notifications
You must be signed in to change notification settings - Fork 123
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
ibazel writes IBAZEL_BUILD_COMPLETED FAILURE to stdin even for successful builds #56
Comments
I'm going to document a bit of research I've done on this bug. It appears that the "error" that ibazel identifies is one is causes it self. To see if an error is produced ibazel calls the .Wait method on the Cmd object it uses to represent an invocation of bazel. However, when it calls Wait to see if there was an error the error produced reads "Wait was already called". So I think the key to fixing this bug is to ensure that wait is only called once. If we do that then bazel should go down the code path which logs IBAZEL_BUILD_COMPLETED SUCCESS |
(fixes bazelbuild#56) Prior to this change everytime ibazel rebuilt a bazel command it would think that the build failed even if it succeeded. The issue was the the underlying command object was being called with both Run()# On branch master and subsequently Wait(). Becuase the command had already been run, the invocation of Wait() always produced an error.
(fixes bazelbuild#56) Prior to this change everytime ibazel rebuilt a bazel command it would think that the build failed even if it succeeded. The issue was the the underlying command object was being called with both Run()# On branch master and subsequently Wait(). Becuase the command had already been run, the invocation of Wait() always produced an error.
(fixes bazelbuild#56) Prior to this change everytime ibazel rebuilt a bazel command it would think that the build failed even if it succeeded. The issue was the the underlying command object was being called with both Run()# On branch master and subsequently Wait(). Becuase the command had already been run, the invocation of Wait() always produced an error.
(fixes bazelbuild#56) Prior to this change everytime ibazel rebuilt a bazel command it would think that the build failed even if it succeeded. The issue was the the underlying command object was being called with both Run()# On branch master and subsequently Wait(). Becuase the command had already been run, the invocation of Wait() always produced an error.
(fixes bazelbuild#56) Prior to this change everytime ibazel rebuilt a bazel command it would think that the build failed even if it succeeded. The issue was the the underlying command object was being called with both Run()# On branch master and subsequently Wait(). Becuase the command had already been run, the invocation of Wait() always produced an error.
…70) Prior to this change everytime ibazel rebuilt a bazel command it would think that the build failed even if it succeeded. The issue was the the underlying command object was being called with both Run()# On branch master and subsequently Wait(). Becuase the command had already been run, the invocation of Wait() always produced an error. Fixes: #56
Additoinally it emits the correct signals, stdin (from the perspective of the code living in the repo being built), and environment variables. Fixes: bazelbuild#57 Fixes: bazelbuild#56 Issue: bazelbuild#55
…azelbuild#70) Prior to this change everytime ibazel rebuilt a bazel command it would think that the build failed even if it succeeded. The issue was the the underlying command object was being called with both Run()# On branch master and subsequently Wait(). Becuase the command had already been run, the invocation of Wait() always produced an error. Fixes: bazelbuild#56
In my prototype devserver that uses ibazel from HEAD, I had to listen for FAILURE
https://github.com/alexeagle/angular-bazel-example/blob/98af46d27bab378e4ed5f14799c80578f0287d55/airplane/devserver.js#L9
because ibazel never reports SUCCESS
The text was updated successfully, but these errors were encountered: