-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Do not delay TargetCompleteEvents
with coverage
#22238
Conversation
e15fc3d
to
b0a02fc
Compare
TargetCompleteEvents
with coverage
b0a02fc
to
963e7a5
Compare
Thanks for sending this. I'll do a review either today or tomorrow. |
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.
Here are some nits. We do have some internal tests failing, I'll look into them tomorrow.
src/main/java/com/google/devtools/build/lib/analysis/BuildView.java
Outdated
Show resolved
Hide resolved
src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto
Show resolved
Hide resolved
InstrumentedFilesInfo instrumentedFilesInfo = | ||
value.getConfiguredObject().get(InstrumentedFilesInfo.STARLARK_CONSTRUCTOR); | ||
Iterable<SkyKey> keysToRequest; | ||
if (value.getConfiguredObject() instanceof ConfiguredTargetValue && instrumentedFilesInfo != null) { |
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.
So this was the bug. Should s/ConfiguredTargetValue/ConfiguredTarget
. After that all the tests passed.
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 pushed a fix, thanks!
@bazel-io fork 7.2.0 |
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.
LGTM.
Baseline coverage artifacts are now requested in `CompletionFunction` to ensure that they are built before the `TargetCompleteEvent` is generated. This makes it unnecessary to delay sending these events until after a Skymeld build has had the chance to request all coverage artifacts directly, which could only be done after the analysis & execution phase, thus delaying events until the end of the build. Fixes bazelbuild#21475 Closes bazelbuild#22238. PiperOrigin-RevId: 631414420 Change-Id: Idc77b6f5c8b5b775e6c69e35c5563f63b3bf974f
Baseline coverage artifacts are now requested in `CompletionFunction` to ensure that they are built before the `TargetCompleteEvent` is generated. This makes it unnecessary to delay sending these events until after a Skymeld build has had the chance to request all coverage artifacts directly, which could only be done after the analysis & execution phase, thus delaying events until the end of the build. Fixes bazelbuild#21475 Closes bazelbuild#22238. PiperOrigin-RevId: 631414420 Change-Id: Idc77b6f5c8b5b775e6c69e35c5563f63b3bf974f
Baseline coverage artifacts are now requested in `CompletionFunction` to ensure that they are built before the `TargetCompleteEvent` is generated. This makes it unnecessary to delay sending these events until after a Skymeld build has had the chance to request all coverage artifacts directly, which could only be done after the analysis & execution phase, thus delaying events until the end of the build. Fixes bazelbuild#21475 Closes bazelbuild#22238. PiperOrigin-RevId: 631414420 Change-Id: Idc77b6f5c8b5b775e6c69e35c5563f63b3bf974f
Baseline coverage artifacts are now requested in `CompletionFunction` to ensure that they are built before the `TargetCompleteEvent` is generated. This makes it unnecessary to delay sending these events until after a Skymeld build has had the chance to request all coverage artifacts directly, which could only be done after the analysis & execution phase, thus delaying events until the end of the build. Fixes bazelbuild#21475 Closes bazelbuild#22238. PiperOrigin-RevId: 631414420 Change-Id: Idc77b6f5c8b5b775e6c69e35c5563f63b3bf974f
Baseline coverage artifacts are now requested in
CompletionFunction
to ensure that they are built before theTargetCompleteEvent
is generated. This makes it unnecessary to delay sending these events until after a Skymeld build has had the chance to request all coverage artifacts directly, which could only be done after the analysis & execution phase, thus delaying events until the end of the build.Fixes #21475