Skip to content

ci: run every integration test in CI instead of a hand-kept list - #287

Merged
DrunkOnJava merged 4 commits into
mainfrom
ci/run-every-integration-test
Sep 22, 2026
Merged

DrunkOnJava merged 4 commits into
mainfrom
ci/run-every-integration-test

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

CI now runs every tests/*.rs file. Until this PR, 21 of the 37 integration-test files ran in no CI job at all, including the honesty gates the docs describe as CI-enforced.

Motivation

The test matrix runs cargo test --lib --bins (unit tests only) and then a few integration targets by name (samples, ifc_roundtrip, field_type_coverage, elem_table_corpus); the tier-2 job runs its own name list. A target on neither list never executes. Confirmed against the log of the latest successful main run — only these 16 test binaries ran: arc_wall_corpus, cfb_roundtrip_delta, corpus_tier1_health, corpus_tier2_health, elem_table_corpus, field_type_coverage, ifc_roundtrip, ifc_synthetic_project, iter_elements_typed, partition_scanner, project_corpus_smoke, project_count_fixtures, re15_geometry_invariants, re19_door_window_wall_negative, samples, walker_to_ifc_integration.

Never run anywhere: support_matrix, witness_registry, witness_verdict, binary_inventory, json_schema_contracts, fuzz_regressions, proptest_parsers, typed_decoders, graceful_degradation, control_cancellation, checksum_page_framing, cfb_patch_corpus, es_remap_golden, gen_fixture_roundtrip, geometry_recovery, ifc_export_modes, ifc_synthetic_structural, rvt_ifc_diagnostics_cli, rvt_inspect_cli, rvt_info_cli, cli_ergonomics.

The #206 comment in the tier-2 job already records this failure mode once (elem_table_corpus hid a real decoder bug while off the list); a hand-kept list keeps reproducing it.

Changes

  • ci.yml test matrix: the named samples / ifc_roundtrip steps become one Integration tests (every tests/*.rs) step, cargo test --profile ci --no-fail-fast --test '*', on every OS, with RVT_SAMPLES_DIR set where the job fetched the family corpus. The RVT_REQUIRE_CORPUS=1 gates (field_type_coverage, elem_table_corpus) stay as they are.
  • ci.yml tier 2: the three named steps and the seven-target decoder-gate list become one step running every target against the magnetar project corpus (RVT_CORPUS_TIER2_LIMIT=8 kept).
  • tests/rvt_ifc_diagnostics_cli.rs: the one stale assertion the newly run files surfaced (details below).
  • CONTRIBUTING.md: says every tests/ file runs in CI and that corpus-reading tests must skip cleanly without their variable.
  • CHANGELOG.md entry.

The stale assertion

rvt_ifc_cli_strict_mode_fails_before_writing_ifc_but_keeps_diagnostics asserted confidence.level == "scaffold" for the strict-mode rejection of the 2024 sample family. The family has exported at typed_no_geometry for a while — verified identical on main and on a779122 (before #284) — so the test has been red whenever the family corpus is present, unseen because nothing ran it. The test is about strict mode rejecting an incomplete export, not about which below-geometry level it lands on, so it now accepts any below-geometry level.

Testing

  • Locally, every integration target against both corpora: RVT_SAMPLES_DIR=… RVT_PROJECT_CORPUS_DIR=… cargo test --profile ci --no-fail-fast --test '*' — 65 s wall clock; the only failures were the stale assertion above (fixed) and project_count_fixtures needing magnetar's two reference IFCs that my local corpus lacked (fetched; passes; CI's full clone has them)
  • actionlint — no new findings (the only report is the pre-existing SC1003 info note in the PII guard)
  • This PR's own CI is the proof on macOS / Windows / MSRV, where these files have never run before
  • N/A: no source, IFC output or performance change

Audit-honesty checklist

  • README / docs reflect the current state after this PR — docs/status.md / docs/verification-protocol.md describe the support-matrix and witness-registry tests as CI-enforced; after this PR that is true
  • N/A: no capability limitation changed
  • No new limitation
  • Commit messages describe WHAT changed and WHY
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files
  • N/A: not a reverse-engineering finding

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0 (see CONTRIBUTING.md)
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see CLEANROOM.md)
  • N/A: no test fixtures added

Breaking changes

None.

Screenshots or output samples

N/A

Related issues

Refs #206 (the same failure mode, fixed then for one target).


Note

Low Risk
Changes are limited to CI workflow wiring, contributor docs, and a test assertion loosened to match current export behavior; no library or runtime behavior changes.

Overview
CI now runs every tests/*.rs integration target instead of naming a few binaries per job. The cross-OS test matrix replaces separate samples / ifc_roundtrip steps with one cargo test --profile ci --no-fail-fast --test '*' step; RVT_SAMPLES_DIR is set only when that runner fetched the family corpus. The tier-2 job collapses its named health/smoke/decoder lists into the same wildcard run against the magnetar project corpus (keeping RVT_CORPUS_TIER2_LIMIT=8). Corpus-required gates like field_type_coverage and elem_table_corpus stay as dedicated steps.

That coverage caught a stale strict-mode assertion in rvt_ifc_diagnostics_cli: strict rejection is still required, but confidence.level is no longer pinned to scaffold—it accepts any below-geometry level as decoders improve.

Docs: CHANGELOG.md and CONTRIBUTING.md document the new gating model and the requirement that corpus-dependent tests skip cleanly when env vars are unset.

Reviewed by Cursor Bugbot for commit 7618722. Configure here.

The test matrix ran --lib --bins plus a few integration targets by name
and the tier-2 job a second name list, so 21 of the 37 tests/*.rs files
ran in no job at all: the support_matrix and witness_registry honesty
gates, the JSON schema contracts, binary_inventory, fuzz_regressions,
proptest_parsers and every CLI test. Both jobs now run
cargo test --no-fail-fast --test '*' (matrix: every OS, family corpus
where fetched; tier 2: against the magnetar project corpus), so a new
target is gated the moment it exists.

Running them surfaced one stale assertion: rvt_ifc_diagnostics_cli pinned
the strict-mode rejection to confidence scaffold, while the 2024 sample
family has exported at typed_no_geometry since its typed elements began to
export. It now asserts any below-geometry level, which is what the test is
about.
@cursor

cursor Bot commented Sep 22, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_28622144-5d56-45aa-a2e4-b14a110f4add)

…pipe

The first Windows run of tests/cli_ergonomics.rs (now that CI runs every
integration test) showed a write into a closed pipe panics there with
"The pipe has been ended. (os error 109)", which the closed-pipe matcher
did not recognise, so the CLI still printed a panic. Match 109 alongside
EPIPE (32) and ERROR_NO_DATA (232).
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) September 22, 2026 19:47
@DrunkOnJava
DrunkOnJava merged commit 1303782 into main Sep 22, 2026
21 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/run-every-integration-test branch September 22, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant