question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BEP's named set of files is incomplete if an action from any output group of a set of groups fails

See original GitHub issue

Let 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 expect foo.out to be in a NamedSetOfFiles in the BEP output. This is WAI.
  • If we build T and request for foo-outputs and bar-outputs, we expect foo.out and bar.out to be in in their own NamedSetOfFiles, since they were generated by different actions foo-action and bar-action. This is WAI.
  • If we build T and request for foo-outputs and bar-outputs, and bar-action fails, we expect that foo.out to still be listed in BEP. However, this is not the case and foo.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:closed
  • Created 4 years ago
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
michaeledgarcommented, Dec 2, 2019

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.

0reactions
michaeledgarcommented, Jan 9, 2020

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).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found