docs: warn against --test_keep_going=false with quarantining#214
docs: warn against --test_keep_going=false with quarantining#214mintlify[bot] wants to merge 3 commits into
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
|
Verification status (2026-06-05): Could not determine rollout state from available signals. Chaining to
Next: the content claim (Bazel stops at the first failure under |
|
Code verification (2026-06-05): 2 confirmed / 1 contradicted
The recommendation is right; the stated consequence is inverted. Leaving Suggested replacement callout ( <Warning>
Leave `--test_keep_going` at its default (`true`) when you quarantine tests. With `--test_keep_going=false` (or `--notest_keep_going`), Bazel stops at the first test failure, so the remaining tests never run and never reach the BEP report. If that first failure is a quarantined test, the only failure Trunk sees is already quarantined, so it marks the run as passing and your PR can merge even though the skipped tests never ran and may have failed.
</Warning>Heads up before publishing: the eng thread is still open. The last word is Matt's "let me keep thinking about this," and there is an unadopted alternative (splitting flaky vs non-flaky targets into two Source #1 — quarantine pass/fail is computed only over failures present in the report (contradicted)File: quarantine_results.group_is_quarantined =
quarantine_results.quarantine_results.len() == total_failures;
// use the exit code from the command if the group is not quarantined
// override exit code to be exit_success if the group is quarantined
let exit_code = if total_failures == 0 {
exit_code
} else if !quarantine_results.group_is_quarantined {
exit_code
} else if exit_code != EXIT_SUCCESS {
// All test failures were quarantined, overriding exit code to be exit_success
EXIT_SUCCESS
} else {
exit_code
};Reasoning: Source #2 — Bazel flag default and short-circuit behavior (confirmed)File: Bazel command-line reference, Reasoning: |
…ss risk The original Note claimed combining --test_keep_going=false with quarantining would break CI. The actual failure mode is the opposite: analytics-cli forces a passing exit code when every observed failure is quarantined (context_quarantine.rs group_is_quarantined check), so a quarantined first-failure makes the run go green while Bazel-skipped tests vanish from the BEP. Reframe as a Warning describing the silent unsafe-merge risk. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds a warning to the Bazel flaky tests guide explaining that
--test_keep_going=false(or--notest_keep_going) shouldn't be combined with quarantining, since Bazel will stop at the first failure and skipped tests won't appear in the BEP report for Trunk to quarantine.