Private
Public Access
refactor(directives): strip metadata header from v1.md (27-35 of 51; meta extracted to meta.md)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# live_gui_poll_not_sleep
|
||||
|
||||
## v1
|
||||
|
||||
**Why this iteration:** Lifted verbatim from `conductor/workflow.md` §"Live_gui Test Fragility (Authoring-Side)" — Anti-Pattern: push_event + time.sleep(N) + assert (lines 464-475). This is the baseline encoding — the rationale-then-before/after-example style currently in production.
|
||||
Future variants will test alternative encodings (rule-only, tabular) against this baseline.
|
||||
**Source:** `conductor/workflow.md:464-475`
|
||||
|
||||
---
|
||||
**Lifted:** 2026-07-02 (Phase 1 harvest by Tier 3 worker; user directive 2026-07-02 moved the header into this meta file)
|
||||
@@ -1,12 +1,3 @@
|
||||
# live_gui_poll_not_sleep — v1
|
||||
|
||||
**Why this iteration:** Lifted verbatim from `conductor/workflow.md` §"Live_gui Test Fragility (Authoring-Side)" — Anti-Pattern: push_event + time.sleep(N) + assert (lines 464-475). This is the baseline encoding — the rationale-then-before/after-example style currently in production.
|
||||
Future variants will test alternative encodings (rule-only, tabular) against this baseline.
|
||||
|
||||
**Source:** `conductor/workflow.md:464-475`
|
||||
|
||||
---
|
||||
|
||||
#### Anti-Pattern: `push_event` + `time.sleep(N)` + `assert` is a guaranteed race (Added 2026-06-10)
|
||||
|
||||
The pattern `push_event(...)` → `time.sleep(N)` → `assert` is a guaranteed race condition in batched runs. The first time you write this, the test passes in isolation because the sleep happens to be long enough. Then it lands in the batched run, the subprocess is busier, the sleep is no longer long enough, and the assert fires before the GUI render loop has processed the event.
|
||||
|
||||
Reference in New Issue
Block a user