Repository navigation
ci: upload complete stacktraces (from i.e. hung check) into artifacts - #114143
Conversation
|
Workflow [PR], commit [c57b5d8] Summary: ❌
AI ReviewSummaryThis PR makes the full Findings
Final Verdict |
1492bb4 to
c4e6f58
Compare
The 600s hard timeout raised TimeoutExpired before the move loop, losing the dumps for exactly the hung-check failures being preserved. Move the collection into a finally block. Refs: ClickHouse#114143 (comment) Co-Authored-By: Claude Fable 5 <[email protected]>
subprocess.call(timeout=...) kills only the shell; a still-running clickhouse-test survives reparented to PID 1 and keeps appending to sql_stacktraces.log/c_stacktraces.log while the cross-mount copy+unlink snapshots them, losing the tail of the dump. Run the hung check in its own session and SIGKILL the process group on timeout. Waiting for tee to hit EOF is the barrier: the pipe is inherited as stdout/stderr by the whole tree, so EOF means every potential writer has exited before the copy starts. Verified with a standalone repro (shell + detached writer grandchild): after killpg + tee EOF no group members remain and the log stops growing. Refs: ClickHouse#114143 (comment) Co-Authored-By: Claude Fable 5 <[email protected]>
leshikus
left a comment
There was a problem hiding this comment.
Looks good. Maybe I should add a common helper for logs instead of duplicating sql_stacktraces.log, c_stacktraces.log across all jobs. Also it makes sense to add some reasonable timeout to tee.wait() - this may speed up execution.
51cb3c6 to
33bf1ab
Compare
59a8a6b to
68e57c1
Compare
…l tests The full dumps (sql_stacktraces.log, c_stacktraces.log) land in the cwd of clickhouse-test, which neither job uploads. Move them into the stress output folder; attach as debug files in functional tests. Refs: https://s3.amazonaws.com/clickhouse-test-reports/PRs/114127/6fe5a48b7b2a8285cb97fa3f081c07320d5d33ce/stress_test_amd_debug/hung_check.log Related: ClickHouse#114127 Co-Authored-By: Claude Fable 5 <[email protected]>
68e57c1 to
c57b5d8
Compare
51f3c8a
…races-on-hung-check-abort Resolved one conflict in ci/jobs/functional_tests.py. Master gained an inline attach of sql_stacktraces.log / c_stacktraces.log to debug_files (azat, c57b5d8, ClickHouse#114143) at the same point where this branch attaches them via collect_stacktrace_logs(). The two blocks resolve to an identical file set from the same directory, so keeping both would attach each dump twice. Kept this branch's helper, which is the tested form (ci/tests/test_print_stacktraces.py pins the call count, the scanned directory and the attach position) and which also clears stale dumps on TEST entry; dropped the duplicate inline block. Master's own changes to the file are unaffected: allow_oversubscription, attach_post_verdict_artifacts, the seaweedfs rename, the failure allowance and the llvm-profdata-22 detection are all present.
Otherwise it is hard to debug
Example: https://s3.amazonaws.com/clickhouse-test-reports/PRs/114127/6fe5a48b7b2a8285cb97fa3f081c07320d5d33ce/stress_test_amd_debug/hung_check.log
Changelog category (leave one):
Version info
26.8.1.1194(included in26.8and later)