fix watcher failure detection for host reporter json
Handle dict-shaped reporter events when deriving watcher host failures. - parse reporter JSON events with type/message/severity fields - preserve existing support for list-shaped event records - record the false-PASS failure mode in ATVM automation run learnings
This commit is contained in:
@@ -18,6 +18,15 @@ This file stores run-specific examples only when a run produced a new learning r
|
||||
- Write the template phase output to `/tmp/<build>.launch.log` so template activity is preserved separately from the live runner log.
|
||||
- If the template step fails, stop immediately and do not start the watcher or the runner.
|
||||
|
||||
## Run Learning: 2026-04-29 (Watcher host-artifact parser must handle dict-shaped reporter events)
|
||||
- Observed failure mode:
|
||||
- A non-categorized ATVM compute-migration run failed in the host reporter artifacts, but the watcher posted `PASS`.
|
||||
- The watcher fell back to the per-host JSON artifact after `check-xml-files.ts`, but `extract_failure_from_reporter_events()` only recognized the older list-shaped event format.
|
||||
- Current reporter JSON stores events as dicts with fields such as `type`, `message`, and `severity`, so the parser missed `severity: error` and incorrectly returned `0 failures`.
|
||||
- Action for future runs:
|
||||
- Treat both list-shaped and dict-shaped reporter event records as valid inputs when extracting failure details from host JSON artifacts.
|
||||
- Continue treating host reporter artifacts as authoritative fallback evidence when final XML only contains `check-xml-files.ts`.
|
||||
|
||||
## Run Learning: 2026-04-24 (Categorized watcher false-PASS guardrail)
|
||||
- Observed failure mode:
|
||||
- A categorized compute-migration run was incorrectly reported as `PASS` for `atvm121-ubuntu24.04` even though the actual Ubuntu grouped sub-run failed.
|
||||
|
||||
Reference in New Issue
Block a user