Repository navigation
Conversation
…lastic#3283) Backport of elastic#3283 (draft) to collect hang diagnostics on this branch. A test batch that hangs is killed by CTest after 45 minutes. Boost.Test only writes its JUnit file on completion, so the killed batch left an empty file, its cases vanished from the merged results and Test Analytics showed nothing, even though the build failed. - Record batches with no complete JUnit file as failed cases before merging. - Default TEST_TIMEOUT to 900s for non-debug test steps (was 2700s). - Run batches under a watchdog that dumps thread stacks, machine load and open files just before the timeout, so the hang can be diagnosed from the log. DYLD_LIBRARY_PATH is restored inside the wrapper because macOS SIP strips it when bash starts. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* Recover missing JUnit results only for batches that are expected to write them: JUnit logging configured, and not the HRF-only seccomp runner. * Treat only complete <testcase> elements as results, matched on suite and case name, so an interrupted case is still reported as failed. * Give the watchdog's diagnostics a fixed time budget and kill the batch regardless of whether they finish. * Kill the whole process tree of a timed-out batch, including processes in their own process group, and report the timeout through a flag file so the exit status does not depend on a signal race. Backport of the follow-up to elastic#3283. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
Author
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.
Backport of #3283 to
9.6. Draft, opened so the watchdog diagnostics run on this branch's CI while #3283 is still being validated; it is not intended to merge before #3283.Snapshot builds on
9.5,9.6andmain(macOS aarch64 and linux-x86_64) have timed out in unrelated multi-threaded tests since 26 Oct (7294 on 9.5, 7310 and 7316 on 9.6, 7361 on main). None of the three hung tests share code, and none occurred between 1 Aug and 25 Oct, so the cause is still unknown. This change makes the next hang show up in Test Analytics, fail in 15 minutes instead of 45, and log stacks, load and open files.The cmake changes apply unchanged;
run_tests.shdiffers slightly on 9.5 (no Sandbox2 sections) but the edit applies cleanly. Not yet run on this branch.🤖 Generated with Claude Code