Skip to content

test: cut duplicated work in the slowest integration tests - #793

Merged
dfa1 merged 2 commits into
mainfrom
test/merge-duplicate-integration-work
Nov 30, 2026
Merged

dfa1 merged 2 commits into
mainfrom
test/merge-duplicate-integration-work

Conversation

@dfa1

@dfa1 dfa1 commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Two commits, each cutting work a slow integration class repeated. Timings are sequential runs on the same machine, two each.

Commit Class Before After
Write each nested repartition column once NestedRepartitionInteropIntegrationTest 17.5 s alone (5.6–6.3 s in the full suite) 12.2–13.0 s alone (3.6–4.9 s in the suite)
Compare the taxi import cell by cell TaxiParquetOracleVsJavaIntegrationTest 8.3–8.9 s 5.3–5.4 s
  • NestedRepartition: both tests wrote the same vortex-jni/Java file pair for each of the 7 columns. The pair is now written once per class and shared, and the two tests keep their separate failure signals.
  • Taxi: the test proved the Parquet import by diffing two 3M-line CSV exports. It now compares hardwood's Parquet rows with VortexReader's cells directly (nulls as nulls, floats bit for bit). No CSV files and no export leg; CsvExporter has its own unit, integration and load tests. A deliberately broken comparison fails at row 0.

🤖 Generated with Claude Code

dfa1 and others added 2 commits November 30, 2026 07:48
javaCutsTheChunksJniCuts and jniReadsTheJavaChunksAsItsOwn wrote the
same pair of files (vortex-jni's and Java's, 240,000 nested rows) for
each of the 7 columns: the writes, most of the class's time, ran twice.
The pair is now written once per class and shared; the two tests keep
their separate failure signals. 17.5 s -> 12.2-13.0 s, sequential.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The taxi oracle test meant to prove the Parquet importer keeps every
value, but went through two 3M-line CSV files: hardwood wrote one,
CsvExporter wrote the other from the imported Vortex file, and the two
were diffed. It now walks hardwood's Parquet rows and VortexReader's
chunks in step and compares each cell directly: integers, booleans and
strings by value, floats bit for bit, nulls as nulls. No CSV files, no
export leg (CsvExporter has its own unit, integration and load tests).
8.3-8.9 s -> 5.3-5.4 s, sequential; a deliberately broken comparison
fails at row 0.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@dfa1
dfa1 force-pushed the test/merge-duplicate-integration-work branch from 278eee2 to e742d8f Compare November 30, 2026 06:48
@dfa1
dfa1 merged commit fe71bcc into main Nov 30, 2026
6 checks passed
@dfa1
dfa1 deleted the test/merge-duplicate-integration-work branch November 30, 2026 06:56
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