Skip to content

fix(serve): ignore git stderr noise when parsing subprocess output#421

Merged
tinder-maxwellelliott merged 3 commits into
masterfrom
maxwelle/fix-serve-git-stderr-parsing
Jul 10, 2026
Merged

fix(serve): ignore git stderr noise when parsing subprocess output#421
tinder-maxwellelliott merged 3 commits into
masterfrom
maxwelle/fix-serve-git-stderr-parsing

Conversation

@tinder-maxwellelliott

Copy link
Copy Markdown
Collaborator

Summary

  • Fixes serve failures when git writes background auto-pack messages to stderr (e.g. Auto packing the repository in background for optimum performance.) during rev-parse/checkout.
  • ProcessGitClient now captures stdout only for subprocess parsing, while stderr is still printed to service logs on failure.
  • resolveSha additionally requires a 40-character hex SHA line, guarding against any stray stdout noise.

Test plan

  • bazel test //cli:GitClientTest //cli:ServeCommandTest
  • Deploy serve with --gitEngine=subprocess against a large repo and confirm /impacted_targets_with_distances no longer fails with a pathspec error during background git auto-pack

Made with Cursor

tinder-maxwellelliott and others added 3 commits July 9, 2026 17:20
ProcessGitClient merged stdout and stderr, so background auto-pack messages
could be mistaken for a commit SHA and break checkout during impacted-targets
queries. Capture stdout only and parse rev-parse output as a 40-char SHA.

Co-authored-by: Cursor <cursoragent@cursor.com>
The test-jre21 ubuntu-latest job can run out of disk during //cli:E2ETest,
causing unrelated failures (No space left on device). Reclaim space from
preinstalled toolchains the job does not use.

Co-authored-by: Cursor <cursoragent@cursor.com>
Deleting /usr/local/lib/android broke rules_android during analysis.
Reclaim space from dotnet/ghc/docker only, and route Bazel's output_user_root
to /mnt on hosted runners so E2ETest has more headroom than root disk.

Co-authored-by: Cursor <cursoragent@cursor.com>
@tinder-maxwellelliott tinder-maxwellelliott merged commit f51eeba into master Jul 10, 2026
15 checks passed
@tinder-maxwellelliott tinder-maxwellelliott deleted the maxwelle/fix-serve-git-stderr-parsing branch July 10, 2026 01:15
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