Add BUILD_TARGET environment variable to all build actions #11216
Labels
P3
We're not considering working on this, but happy to review a PR. (No assignee)
stale
Issues or PRs that are stale (no activity for 30 days)
team-Core
Skyframe, bazel query, BEP, options parsing, bazelrc
type: feature request
Description of the feature request:
Currently bazel adds TEST_TARGET as an environment variable to all test actions which is great for tracking down targets causing failures within actions executed remotely. Tracking down the related target for a failed build action is much harder.
Feature requests: what underlying problem are you trying to solve with this feature?
It is currently quite awkward to trace a failed build action back to the target which created it.
Have you found anything relevant by searching the web?
The test-encyclopedia details TEST_TARGET but I haven't found anything for other actions.
The text was updated successfully, but these errors were encountered: