Skip to content

ci: give the examples job the test data it needs - #62

Merged
TimelordUK merged 1 commit into
mainfrom
fix/ci-examples-generated-test-data
Sep 1, 2026
Merged

ci: give the examples job the test data it needs#62
TimelordUK merged 1 commit into
mainfrom
fix/ci-examples-generated-test-data

Conversation

@TimelordUK

Copy link
Copy Markdown
Owner

Four examples were reported as smoke failures in CI while passing locally: file_cte, cte_demo, expansion_transformers and mathematical_series. All four load a data file that exists in a developer's working tree but never in a fresh checkout, because .gitignore's blanket test_*.csv rule covers it.

file_cte: Query 1 failed: File not found: data/test_simple_strings.csv

Two fixes, one per cause:

  • data/test_simple_{math,strings}.csv are generated by scripts/generate_simple_test.py. The Python Tests job already runs that script; the Examples job never did. Add the same step there.

  • data/test_dummy.csv is a hand-written three-row fixture that no script generates, so generating it is not an option - it has to ship. Un-ignore and commit it.

Note this was never gating the build: test_examples.py exits non-zero only for FORMAL failures (those with an examples/expectations/*.json), so these were noise in an otherwise green job. The remaining 18 smoke failures reproduce locally too - 6 need a live HTTP endpoint, 12 are genuine engine or example bugs - and are left alone here.

Four examples were reported as smoke failures in CI while passing locally:
file_cte, cte_demo, expansion_transformers and mathematical_series. All four
load a data file that exists in a developer's working tree but never in a
fresh checkout, because .gitignore's blanket `test_*.csv` rule covers it.

  file_cte: Query 1 failed: File not found: data/test_simple_strings.csv

Two fixes, one per cause:

- data/test_simple_{math,strings}.csv are generated by
  scripts/generate_simple_test.py. The Python Tests job already runs that
  script; the Examples job never did. Add the same step there.

- data/test_dummy.csv is a hand-written three-row fixture that no script
  generates, so generating it is not an option - it has to ship. Un-ignore
  and commit it.

Note this was never gating the build: test_examples.py exits non-zero only
for FORMAL failures (those with an examples/expectations/*.json), so these
were noise in an otherwise green job. The remaining 18 smoke failures
reproduce locally too - 6 need a live HTTP endpoint, 12 are genuine engine
or example bugs - and are left alone here.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@TimelordUK
TimelordUK merged commit b64818d into main Sep 1, 2026
8 checks passed
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