Skip to content

fix(ci): 消除中转日志断言的时序抖动 - #8

Merged
junjundesk merged 1 commit into
mainfrom
fix/ci-log-race
Oct 21, 2026
Merged

junjundesk merged 1 commit into
mainfrom
fix/ci-log-race

Conversation

@junjundesk

Copy link
Copy Markdown
Owner

Linux CI 偶发在 test_relay_debug_capture_* 读到尚未创建的日志文件(handler 守护线程未写完)。新增 _read_log_text 轮询等待完整日志行,消除抖动。

ThreadingHTTPServer 的 handler 是守护线程,server.stop() 不会等待它写完日志;Linux CI 上偶发读到日志文件尚未创建,导致 test_relay_debug_capture_* 等用例报 FileNotFoundError。新增 _read_log_text 轮询等待完整行后再解析。
@junjundesk
junjundesk merged commit f0bc391 into main Oct 21, 2026
6 checks passed
@junjundesk
junjundesk deleted the fix/ci-log-race branch October 21, 2026 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant