BEP's named set of files is incomplete if an action from any output group of a set of groups fails
See original GitHub issueLet T be a target, foo-outputs
and bar-outputs
be output groups, foo-action
and bar-action
be actions in T, and foo.out
and bar.out
be outputs generated by foo-action
and bar-action
respectively.
- If we build T and request for
foo-outputs
, we expectfoo.out
to be in aNamedSetOfFiles
in the BEP output. This is WAI. - If we build T and request for
foo-outputs
andbar-outputs
, we expectfoo.out
andbar.out
to be in in their ownNamedSetOfFiles
, since they were generated by different actionsfoo-action
andbar-action
. This is WAI. - If we build T and request for
foo-outputs
andbar-outputs
, andbar-action
fails, we expect thatfoo.out
to still be listed in BEP. However, this is not the case andfoo.out
is missing, even with--keep_going
. - Additionally, if there is a target U that depends on T, U’s
foo-outputs
files will also be missing from the BEP.
This has caused issues with IJwB’s Java integration. See this issue for the diagnosis and a repro project. https://github.com/bazelbuild/intellij/issues/1167#issuecomment-533693212
The intuitive BEP state here is that the foo-outputs
files should still be listed, regardless of failing actions requested by other output groups.
Issue Analytics
- State:
- Created 4 years ago
- Comments:15 (15 by maintainers)
Top Results From Across the Web
Country-by-Country Reporting Implementation Package - OECD
The Base Erosion and Profit Shifting (BEPS) Action Plan adopted by the OECD and G20 countries in 2013 recognised that enhancing transparency for...
Read more >BEPS Action 13: Country Implementation Summary
-Albania has not adopted the OECD Action 13 Master File. ... MF must also be presented if there is another group entity that...
Read more >refs/tags/6.0.0-pre.20211117.1 - bazel - Git at Google
BEP includes all files from successful actions in requested output groups. ... if any file in the output group was not produced due...
Read more >What's New in Bazel 5.0 - BuildBuddy
The BEP now includes all files from successful actions in requested output groups; previously, an output group's files were excluded if any ......
Read more >Bazel 5.0
BEP now includes all files from successful actions in requested output groups. Previously, an output group's files were excluded if any file ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Sorry for the delay with fixing this particular issue.
The first attempt at a fix was known to misreport some action outputs when building with
--nokeep_going
. My latest attempt addresses that concern. The new approach also handles the case where some (but not all) actions fail while producing outputs for the same output_group.Reopening this issue while the fix submitted as 0552bd7 is reworked to avoid producing overlarge NamedSetOfFiles messages. That fix has already been rolled back (d7d441b).