Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,15 @@ jobs:
--expected conformance/sv-tests/expected.tsv
--report "$RUNNER_TEMP/sv-tests-report.tsv"

- name: Summarize sv-tests failures
if: always()
shell: bash
run: |
report="$RUNNER_TEMP/sv-tests-report.summary.md"
if [ -f "$report" ]; then
cat "$report" >> "$GITHUB_STEP_SUMMARY"
fi

- name: Retain the report and official per-case logs
if: always()
uses: actions/upload-artifact@v7
Expand All @@ -546,6 +555,8 @@ jobs:
path: |
${{ runner.temp }}/sv-tests-report.tsv
${{ runner.temp }}/sv-tests-report.summary.json
${{ runner.temp }}/sv-tests-report.summary.md
${{ runner.temp }}/sv-tests-report.failures.json
${{ runner.temp }}/sv-tests-results
if-no-files-found: ignore
retention-days: 14
Expand Down
87 changes: 86 additions & 1 deletion conformance/sv-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ modes, sources without a module still undergo preprocessing and parsing; root
detection then reports the actual no-root diagnostic. The current
compiler and simulator require a module root, so the driver reports a failure for
rootless unit, package and interface inputs. The official runner still decides
the case verdict, including expected failures. There is no `no_top` classification
the case verdict, including expected failures. There is no `no_top` verdict
or preemptive skip. Without an explicit top, the driver infers a single root from
parsed declarations and instantiations; multiple roots receive a diagnostic
because Celox’s simulator requires one root. Each input file is a separate
Expand Down Expand Up @@ -145,6 +145,26 @@ contains 3,300 case/mode verdicts at the pinned revision. These are its only
changed rows, with no passing case regressing: 1,201 cases pass in 2state and
1,212 in 4state. Only these reviewed expectations are updated.

Zero-argument dynamic-container methods accept omitted parentheses, including
`size`, associative `num`, `delete`, and queue `pop_front` / `pop_back`
(7.5.2–7.5.3, 7.9, 7.10.2). Sixteen unmodified upstream simulation cases pass
the official runner in both state modes at the pinned revision: dynamic
`op-delete` / `op-size`, associative `alloc`, `nonexistent`, `delete`, `num`,
and `size`, and queue
`bounded`, `delete`, `insert`, `max-size`, `pop_back`, `pop_front`, `push_back`,
`push_front` and `size`. Only these 32 expectations change from `fail` to `pass`.
The focused runner checked 36 pinned case files containing these bare
method names (72 case/mode verdicts), with no passing candidate regressing.
This does not establish full dynamic-container conformance.
Shared regressions additionally cover discarded pop results, string/class
handles, four-state values and empty-pop defaults, and unevaluated type queries
that preserve packed result dimensions and authored bounds. The packed-result
query regression failed on all five Celox backend configurations even after
the initial 28 upstream checks passed. Arity and void-result rejection remain checked.
Queue slices, queue operands in concatenations, element-reference persistence,
warning diagnostics, and queries on nonintegral pop results remain outside
this change's support contract.

## Running locally

Use the locked development shell and install the pinned [`requirements.txt`](requirements.txt) in a Python environment.
Expand Down Expand Up @@ -341,3 +361,68 @@ These fixtures exercise the actual upstream runner with a controlled driver,
including mode priority, skips, negative tests, assertions, timeouts, library
injection and missing-environment failures. The Rust example is a single-case
compiler/simulator driver; it does not parse sv-tests metadata or judge verdicts.

## Failure triage

`run.py` now writes four companion artifacts:

- `report.tsv`: official verdicts plus `failure_category`, `diagnostic`, a bounded
diagnostic excerpt (`evidence`), and `negative_test` (`1`, `0`, or empty when unknown).
- `report.summary.json`: schema version 2, collection completeness, requested and
collected row counts, per-group/per-state totals, failure counts and frequent
diagnostics. `classification_version` identifies the diagnostic rules.
- `report.summary.md`: a readable overview, also attached to the CI job summary.
- `report.failures.json`: every failing case with its classification and log path,
plus collection errors. No case is removed from the TSV or denominator.

Categories describe **observed diagnostics**, not proven compiler root causes:

| Category | Evidence |
| --- | --- |
| `unsupported` | explicit unsupported-construct or single-module-root diagnostic |
| `compile_error` | parse-error or illegal-context diagnostic, even if the selected mode was simulation |
| `runtime_error` | `$fatal` or lost-runtime-event diagnostic |
| `assertion_failure` | official simulation output validation failed after a successful positive invocation |
| `unexpected_success` | a negative test's driver succeeded |
| `timeout` | upstream timeout return code **and** timeout diagnostic |
| `crash` | Rust panic diagnostic or abnormal/signal return code |
| `input_issue` | the reviewed upstream input defect described above |
| `environment` | missing include directory without the reviewed input exception |
| `unclassified` | unknown diagnostic, missing log, or TSV/log metadata disagreement |

For example, a parser error on a valid but unimplemented grammar construct is
still `compile_error`; the classifier does not guess whether the source or the
parser is wrong. A nonzero return code in simulation mode alone does not establish
a runtime bug because compilation may have failed first. Frequent diagnostic
counts normalize source paths and line numbers; `.failures.json` retains the
individual evidence and log locations. Tag counts still overlap as described above.

Negative-test passes accompanied by unsupported, root-requirement, timeout or
crash diagnostics appear in `negative_pass_diagnostics` for review. They remain
**official passes**, not new failures. No assertion expression is evaluated by
this classification code.

Missing drivers, missing libraries, runner exceptions and other collection
errors still return exit code 2 and prohibit `--update`. A failed collection now
retains already completed rows and separate `collection_errors`, with
`complete: false`; cancelled/unrun cases do not become invented failure rows.
An incomplete report must not be used as a full conformance score. Successful
collection has `complete: true` even when comparison with expectations returns 1.

Reclassify a downloaded or older **run report**, without rerunning simulations or
changing `expected.tsv`:

```bash
python conformance/sv-tests/reporting.py work/sv-tests-report.tsv \
--log-root work/sv-tests-results \
--meta-tags ../sv-tests/conf/meta-tags.conf \
--output work/triage/report.tsv
```

`--log-root` relocates logs using `STATE/TEST/official.log`. Otherwise the paths
in the TSV are used (relative paths resolve against the TSV directory).
`--meta-tags` should reference the matching pinned checkout; omit it to count
only literal tags, reported as `meta_tags_expanded: false`. The existing summary
supplies the corpus revision and incomplete-collection provenance. Without a
completeness marker in that summary, offline reports use `complete: null`
(unknown), not a claim that every case ran. Missing logs stay unclassified.
64 changes: 32 additions & 32 deletions conformance/sv-tests/expected.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -1255,8 +1255,8 @@ chapter-6/6.9.2--vector_vectored.sv 2state fail
chapter-6/6.9.2--vector_vectored.sv 4state fail
chapter-6/6.9.2--vector_vectored_inv.sv 2state pass
chapter-6/6.9.2--vector_vectored_inv.sv 4state pass
chapter-7/arrays/associative/alloc.sv 2state fail
chapter-7/arrays/associative/alloc.sv 4state fail
chapter-7/arrays/associative/alloc.sv 2state pass
chapter-7/arrays/associative/alloc.sv 4state pass
chapter-7/arrays/associative/arguments.sv 2state fail
chapter-7/arrays/associative/arguments.sv 4state fail
chapter-7/arrays/associative/assignment.sv 2state pass
Expand Down Expand Up @@ -1287,8 +1287,8 @@ chapter-7/arrays/associative/locator-methods/unique-index.sv 2state fail
chapter-7/arrays/associative/locator-methods/unique-index.sv 4state fail
chapter-7/arrays/associative/locator-methods/unique.sv 2state fail
chapter-7/arrays/associative/locator-methods/unique.sv 4state fail
chapter-7/arrays/associative/methods/delete.sv 2state fail
chapter-7/arrays/associative/methods/delete.sv 4state fail
chapter-7/arrays/associative/methods/delete.sv 2state pass
chapter-7/arrays/associative/methods/delete.sv 4state pass
chapter-7/arrays/associative/methods/exists.sv 2state pass
chapter-7/arrays/associative/methods/exists.sv 4state pass
chapter-7/arrays/associative/methods/first.sv 2state pass
Expand All @@ -1297,16 +1297,16 @@ chapter-7/arrays/associative/methods/last.sv 2state pass
chapter-7/arrays/associative/methods/last.sv 4state pass
chapter-7/arrays/associative/methods/next.sv 2state pass
chapter-7/arrays/associative/methods/next.sv 4state pass
chapter-7/arrays/associative/methods/num.sv 2state fail
chapter-7/arrays/associative/methods/num.sv 4state fail
chapter-7/arrays/associative/methods/num.sv 2state pass
chapter-7/arrays/associative/methods/num.sv 4state pass
chapter-7/arrays/associative/methods/prev.sv 2state pass
chapter-7/arrays/associative/methods/prev.sv 4state pass
chapter-7/arrays/associative/methods/size.sv 2state fail
chapter-7/arrays/associative/methods/size.sv 4state fail
chapter-7/arrays/associative/methods/size.sv 2state pass
chapter-7/arrays/associative/methods/size.sv 4state pass
chapter-7/arrays/associative/methods/traversal.sv 2state pass
chapter-7/arrays/associative/methods/traversal.sv 4state pass
chapter-7/arrays/associative/nonexistent.sv 2state fail
chapter-7/arrays/associative/nonexistent.sv 4state fail
chapter-7/arrays/associative/nonexistent.sv 2state pass
chapter-7/arrays/associative/nonexistent.sv 4state pass
chapter-7/arrays/associative/other.sv 2state fail
chapter-7/arrays/associative/other.sv 4state fail
chapter-7/arrays/associative/string.sv 2state pass
Expand All @@ -1315,12 +1315,12 @@ chapter-7/arrays/associative/wildcard.sv 2state fail
chapter-7/arrays/associative/wildcard.sv 4state fail
chapter-7/arrays/dynamic/basic.sv 2state pass
chapter-7/arrays/dynamic/basic.sv 4state pass
chapter-7/arrays/dynamic/op-delete.sv 2state fail
chapter-7/arrays/dynamic/op-delete.sv 4state fail
chapter-7/arrays/dynamic/op-delete.sv 2state pass
chapter-7/arrays/dynamic/op-delete.sv 4state pass
chapter-7/arrays/dynamic/op-new.sv 2state pass
chapter-7/arrays/dynamic/op-new.sv 4state pass
chapter-7/arrays/dynamic/op-size.sv 2state fail
chapter-7/arrays/dynamic/op-size.sv 4state fail
chapter-7/arrays/dynamic/op-size.sv 2state pass
chapter-7/arrays/dynamic/op-size.sv 4state pass
chapter-7/arrays/multidimensional/basic.sv 2state pass
chapter-7/arrays/multidimensional/basic.sv 4state pass
chapter-7/arrays/multidimensional/copy.sv 2state pass
Expand Down Expand Up @@ -1409,38 +1409,38 @@ chapter-7/memories/read-write.sv 2state pass
chapter-7/memories/read-write.sv 4state pass
chapter-7/queues/basic.sv 2state pass
chapter-7/queues/basic.sv 4state pass
chapter-7/queues/bounded.sv 2state fail
chapter-7/queues/bounded.sv 4state fail
chapter-7/queues/delete.sv 2state fail
chapter-7/queues/delete.sv 4state fail
chapter-7/queues/bounded.sv 2state pass
chapter-7/queues/bounded.sv 4state pass
chapter-7/queues/delete.sv 2state pass
chapter-7/queues/delete.sv 4state pass
chapter-7/queues/delete_assign.sv 2state fail
chapter-7/queues/delete_assign.sv 4state fail
chapter-7/queues/insert.sv 2state fail
chapter-7/queues/insert.sv 4state fail
chapter-7/queues/insert.sv 2state pass
chapter-7/queues/insert.sv 4state pass
chapter-7/queues/insert_assign.sv 2state fail
chapter-7/queues/insert_assign.sv 4state fail
chapter-7/queues/max-size.sv 2state fail
chapter-7/queues/max-size.sv 4state fail
chapter-7/queues/max-size.sv 2state pass
chapter-7/queues/max-size.sv 4state pass
chapter-7/queues/persistence.sv 2state fail
chapter-7/queues/persistence.sv 4state fail
chapter-7/queues/pop_back.sv 2state fail
chapter-7/queues/pop_back.sv 4state fail
chapter-7/queues/pop_back.sv 2state pass
chapter-7/queues/pop_back.sv 4state pass
chapter-7/queues/pop_back_assing.sv 2state fail
chapter-7/queues/pop_back_assing.sv 4state fail
chapter-7/queues/pop_front.sv 2state fail
chapter-7/queues/pop_front.sv 4state fail
chapter-7/queues/pop_front.sv 2state pass
chapter-7/queues/pop_front.sv 4state pass
chapter-7/queues/pop_front_assign.sv 2state fail
chapter-7/queues/pop_front_assign.sv 4state fail
chapter-7/queues/push_back.sv 2state fail
chapter-7/queues/push_back.sv 4state fail
chapter-7/queues/push_back.sv 2state pass
chapter-7/queues/push_back.sv 4state pass
chapter-7/queues/push_back_assign.sv 2state fail
chapter-7/queues/push_back_assign.sv 4state fail
chapter-7/queues/push_front.sv 2state fail
chapter-7/queues/push_front.sv 4state fail
chapter-7/queues/push_front.sv 2state pass
chapter-7/queues/push_front.sv 4state pass
chapter-7/queues/push_front_assign.sv 2state fail
chapter-7/queues/push_front_assign.sv 4state fail
chapter-7/queues/size.sv 2state fail
chapter-7/queues/size.sv 4state fail
chapter-7/queues/size.sv 2state pass
chapter-7/queues/size.sv 4state pass
chapter-7/queues/slice.sv 2state fail
chapter-7/queues/slice.sv 4state fail
chapter-7/structures/packed/basic.sv 2state pass
Expand Down
Loading
Loading