Repository navigation
test(sv-tests): classify failures and summarize diagnostics - #2196
Conversation
Official sv-tests failures currently share one verdict even when they indicate unsupported constructs, compilation diagnostics, output assertion failures, unexpected negative-test success, timeout, crashes or input/environment problems. Annotate observed evidence without changing the official verdict, dashboard denominator or expected.tsv. Unknown, absent and inconsistent evidence remains unclassified. Add per-state/group category and frequent-diagnostic summaries, a failing-case JSON index and a readable CI job summary. Surface negative-test passes with suspicious unsupported/crash/timeout diagnostics separately. Retain completed rows and structured collection errors after infrastructure failures, mark reports incomplete and continue to prohibit expectation updates. Cancel queued work on collection errors and interruptions. Provide reporting.py to reclassify saved TSV/log artifacts with relocated log roots and optional pinned meta-tags. Preserve incomplete provenance and mark old reports with unknown completeness instead of claiming a full run. Validation: all 27 Python contract tests pass against the actual pinned upstream tools/runner, including timeout, negative tests, parallel infrastructure failure, baseline protection and stale-report replacement. Focused classifier tests also pass after diagnostic excerpt changes. Reclassified 3,300 historical rows with every verdict and every original summary field unchanged. CI YAML parses and git diff --check passes. No Rust/compiler or corpus changes; no fresh full simulator run or release build. This PR is based directly on master and does not depend on the Aplite/randomize stack. Change-Id: Ic9bf68f5d4ba127e3e62cd9993a4b8cd1aee80d1
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 668ab64866
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| log = args.log_root / row["state_mode"] / test / "official.log" if args.log_root else Path(row["log"]) | ||
| if not args.log_root and not log.is_absolute(): | ||
| log = args.report.parent / log | ||
| row["log"] = str(log) |
There was a problem hiding this comment.
Resolve log paths before saving the annotated report
When --log-root is relative, as in the README example, the output stores log paths relative to the current working directory, but subsequent offline reads interpret them relative to the output TSV's directory. For example, writing work/triage/report.tsv with --log-root work/logs stores work/logs/2state/a.sv/official.log; reclassifying that report without another --log-root looks for work/triage/work/logs/2state/a.sv/official.log and changes a recognized failure to unclassified/missing_log despite the log still existing. The same problem affects relative paths resolved from an input report. Save absolute paths, or rebase them relative to the output report's directory.
Useful? React with 👍 / 👎.
Merge Queue Status
This pull request spent 1 hour 46 minutes 16 seconds in the queue, including 29 minutes 45 seconds running CI. Required conditions to merge
|
Official sv-tests failures currently share one verdict even when they indicate unsupported constructs, compilation diagnostics, output assertion failures, unexpected negative-test success, timeout, crashes or input/environment problems. Annotate observed evidence without changing the official verdict, dashboard denominator or expected.tsv. Unknown, absent and inconsistent evidence remains unclassified.
Add per-state/group category and frequent-diagnostic summaries, a failing-case JSON index and a readable CI job summary. Surface negative-test passes with suspicious unsupported/crash/timeout diagnostics separately. Retain completed rows and structured collection errors after infrastructure failures, mark reports incomplete and continue to prohibit expectation updates. Cancel queued work on collection errors and interruptions.
Provide reporting.py to reclassify saved TSV/log artifacts with relocated log roots and optional pinned meta-tags. Preserve incomplete provenance and mark old reports with unknown completeness instead of claiming a full run.
Validation: all 27 Python contract tests pass against the actual pinned upstream tools/runner, including timeout, negative tests, parallel infrastructure failure, baseline protection and stale-report replacement. Focused classifier tests also pass after diagnostic excerpt changes. Reclassified 3,300 historical rows with every verdict and every original summary field unchanged. CI YAML parses and git diff --check passes. No Rust/compiler or corpus changes; no fresh full simulator run or release build. This PR is based directly on master and does not depend on the Aplite/randomize stack.