Skip to content

test(sv-tests): classify failures and summarize diagnostics - #2196

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/sv-tests-failure-reports/classify-failures-summarize-diagnostics--c9bf68f5
Oct 26, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/sv-tests-failure-reports/classify-failures-summarize-diagnostics--c9bf68f5

Conversation

@tignear

@tignear tignear commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

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.

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
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T18:33:18.294898Z 668ab64 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 26, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +192 to +195
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)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@mergify mergify Bot added the queued Mergify queue entry label Oct 26, 2026
@mergify

mergify Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-ready Request merging through Mergify after required checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant