Skip to content

Expose Bazel action starts to build proxies - #3336

Draft
karim-alweheshy wants to merge 1 commit into
review/rules-10-live-progressfrom
review/rules-11-live-action-lifecycle
Draft

Expose Bazel action starts to build proxies#3336
karim-alweheshy wants to merge 1 commit into
review/rules-10-live-progressfrom
review/rules-11-live-action-lifecycle

Conversation

@karim-alweheshy

Copy link
Copy Markdown
Contributor

Summary

  • request Bazel's pretty-printed subcommand lifecycle only for build-proxy invocations
  • consume each action-start header immediately while suppressing the entire environment and command block from Xcode output
  • publish only bounded allowlisted action identity fields to a private mode-0600 JSONL stream
  • fail closed on malformed, nested, oversized, unterminated, linked, or pre-existing stream state and disable inherited subcommand output for metadata-only aquery

Stack

Validation

  • focused launcher and log-processor Bazel tests passed uncached with --ignore_all_rc_files
  • direct Python suite: 5 tests, 0 failures
  • bash -n, scoped ShellCheck, Buildifier, git diff --check, and TruffleHog passed
  • real Bazel 9.2 reduced smoke observed the first start record while the wrapper remained alive; two sequential four-second actions produced two contiguous records at mode 0600 while command/environment bytes remained suppressed
  • exact RedditApp project generation succeeded and embedded the paired release proxy and candidate adapter
  • PID-bound Xcode 26.5 RedditApp build observed an individual link action in progress, then succeeded with real compile/link durations and no wrapper or errors

Testing

Generate a project with a build proxy, change a source file, and build from Xcode. Confirm the generated adapter contains the proxy-only start option, individual Bazel actions appear before completion, and the publishable build log contains neither the raw SUBCOMMAND: header nor its environment/command/runner block. Generate without a proxy and confirm the option and sidecar are absent.

Signed-off-by: Karim Alweheshy <karim.alweheshy@reddit.com>
@karim-alweheshy karim-alweheshy changed the title Stream Bazel action starts to build proxies Expose Bazel action starts to build proxies Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant