You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e89dafd
Browse filesBrowse the repository at this point in the historyBrowse files
test(compiler): cover every discovery input in the compiler differential (#994)
* test(compiler): group differential harness helpers into buckets
Split the flat _helpers package into comparing, corpus and running buckets
so it can grow without exceeding the helpers container limit. Tests mirror
the new layout with local test-case types. No behaviour change.
* test(compiler): cover every discovery input kind in generated seeds
Add stride-forced feature blocks to the seeded project generator so any four
consecutive seeds exercise incremental strategies, microbatch, snapshots,
Python hooks, loaders, assets, checks, audit factories, providers, sinks,
custom materializations, a project-local adapter, model schemas, list
constants, cross-file macro imports, macro/udf/parameterized tests, generic
audits, functions, local config, target overrides, CRLF/tab/BOM input and
non-ASCII comments and strings. Seed 1 of every twelve uses a dbt ref with a
synthetic manifest: compile fails with C214 by design and plan must succeed.
Classify each seed's DiscoveredProjectInputs stage capture into input kinds
and report coverage; --require-discovery-coverage fails the run when a kind
derived from the discovery dataclass or the detail list is missing.
* test(compiler): add a discovery-time failure corpus
Add minimal failing projects for every discovery error code (D001-D009,
D011-D016) across config, SQL, YAML, conflict and Python families, including
BOM-prefixed TOML and SQL.
Tighten the corpus gate: the expected code must be the first error the
engine reports, and a case that intends a warning declares it separately.
built-in-audit-shadow now expects S010 as the error and P003 as a warning.
Add a helper that runs the corpus and returns the codes each case emits.
* test(compiler): prove discovery stage captures and corpus codes
Check that a project with every feature block yields a discovery capture
with every collection populated, no opaque or cyclic values and callables
replaced by qualified names, and that a perturbed native discovery result
is reported at the discovered_project_inputs capture.
Run the failure corpus for real and assert each case emits its declared
first error, walking every DiscoveryError subclass to require each code.
Prove a code reported only as a warning fails the gate and that missing
required coverage exits 1 without reporting success.
* ci: require discovery coverage in the per-PR compiler differential
0 commit comments