Failure Detector Expansion 5/5: Separate server startup failures by cause - #85
Failure Detector Expansion 5/5: Separate server startup failures by cause#85BChan-0 wants to merge 2 commits into
Conversation
f285347 to
978461c
Compare
|
Warning Review limit reached
Next review available in: 59 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (9)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Signed-off-by: Bonnie Chan <bonniecv@amazon.com>
Signed-off-by: Bonnie Chan <bonniecv@amazon.com>
978461c to
80e436a
Compare
Stacked on #79 (1/5). This branch contains 1/5's commit as its base, so the file list and diff include it. It's best to review and merge in numerical order, but this PR should be ok to merge after 1/5 and doesnt need to wait on 3/5; the diff size will lower as they merge
The producer side is valkey PR 4292.
Issue
A startup failure arrives as
Can't start <exe>followed by the whole config file underCONFIGURATION:and then the reason underERROR:. The config dump is dozens of lines identical across causes, so it filled the identity'ssignificant-line window before the reason was reached: every startup failure reduced to the same identity regardless of why the server refused to start.
Across the 34 Daily artifacts checked, 46 startup entries carry two genuinely distinct causes ("Bad directive or wrong number of arguments" and "Configuration issue prevented Valkey startup") that collapsed into one issue, so one of the two was never reported. The title was affected the same way: it read
Can't start valkey-serverfor every cause, and on the valgrind jobs the config dump's ownLEAK SUMMARY:line could win the title outright.The executable path had the same problem in the other direction. It is the runner's workspace layout, not anything about the bug —
/home/runner/...on Linux,/Users/runner/...on macOS,/__w/...in a container — so one startup bug split into an issue per platform. All three shapes appear in the real artifacts.PR Summary
The config dump is collapsed before normalization and the executable path is reduced to its basename, so the identity keys on the fatal reason and one startup bug is one issue across platforms.
Finding that reason means skipping what sits in front of it: the harness's
### Starting servermarker, the*** FATAL CONFIG FILE ERRORbanner that is identical for every config error, the position line that moves whenever the configfile changes, and the
>>>echo of the offending directive. What is left is the reason itself. When the server never came up at all the runner hands over the whole log instead of a fatal-error blob, and there is no reason to parse; the failure is still named rather than falling through to a title built from the log's first line.The title carries the reason for the same reason the identity does, so two causes are tellable apart in an issue list and one issue is not retitled as the config dump's contents shift.
Testing
Added:
tests/test_testfailuredetector_failure_parser.py: TestStartupFailureIdentity, plustest_startup_reason_line_distinguishes_failurestests/test_testfailuredetector_issue_manager.py: TestStartupFailureTitle, TestExceptionTitle1472 total tests passed.