buck2_test: don't poison results channel via internal orchestrator drop - #1461
Open
vlad-ivanov-name wants to merge 1 commit into
Open
buck2_test: don't poison results channel via internal orchestrator drop#1461vlad-ivanov-name wants to merge 1 commit into
vlad-ivanov-name wants to merge 1 commit into
Conversation
Contributor
|
This pull request has been imported. If you are a Meta employee, you can view this in D115868652. (Because this pull request was imported automatically, there will not be any future comments.) |
vlad-ivanov-name
marked this pull request as draft
August 13, 2026 14:00
Author
|
Turns out this requires some adjustments in how exit code is derived. I will fix that and mark it ready for review after. Edit: fixed |
Any `buck2 test` run in which at least one target used InternalRunnerTestInfo fails at teardown with
Did not receive all results from executor: BuckTestOrchestrator
exited before end-of-tests was received
even though all per-test results were already reported correctly.
Root cause: drop order in test_targets.
Fix: drop the internal orchestrator after try_fold.
Also fixed: failing internal-runner tests showed Fail in the UI but
`buck2 test` exited 0. The internal runner cannot call
end_of_test_results (the external executor owns that call), so its
results never fed the exit code. ExecutorReport.exit_code() now derives
the verdict: the executor's code when nonzero, else 32 (matching
RunVerdict::Fail) if any failing status was reported. SKIP/OMITTED do
not fail a run.
vlad-ivanov-name
force-pushed
the
fix-internal-orchestrator-teardown
branch
from
August 13, 2026 15:22
8d94998 to
6997fb9
Compare
vlad-ivanov-name
marked this pull request as ready for review
August 13, 2026 15:48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Any
buck2 testrun in which at least one target used InternalRunnerTestInfo fails at teardown witheven though all per-test results were already reported correctly.
Root cause: drop order in test_targets.
Fix: drop the internal orchestrator after try_fold.
This fix also surfaces other issue so the next fix is the exit code for failing internal-runner tests: they showed
Failin the UI butbuck2 testexited 0 (green CI on red tests).Reproducer
.buckconfigdefs.bzlBUCKBefore
After
With a failing command (
exit 1for testbeta):