Commit 0373059
committed
ui: surface real yarn build_prod stderr in failed bazel actions
The old pattern captured yarn output into \$output then printed it on
failure via `echo \$output` (unquoted) — which collapsed newlines,
overflowed argv for large outputs, and produced literally just
"Build Failed with Code: 1" in CI logs. Every release-time UI bundle
failure has been undiagnosable for the same reason.
Replace with direct streaming: yarn build_prod prints to stderr,
bazel surfaces it on failure. The only thing we print on top is the
exit code, in case it's useful as a header.
Verified locally that the rule still builds the bundle cleanly on
success.1 parent fca42b1 commit 0373059
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
| |||
0 commit comments