the-other-tim-brown opened a new pull request, #1030:
URL: https://github.com/apache/incubator-xtable/pull/1030
**Draft.** This change cuts IT runtime by tuning the test Spark sessions,
and I'm opening it to measure the CI effect.
## What is the purpose of the pull request
Timing the xtable-core ITs locally showed that Delta is the most expensive
format, both as a source and as a target. Delta rebuilds table snapshots with
`spark.databricks.delta.snapshotPartitions`, which defaults to 50, and it
ignores the `spark.sql.shuffle.partitions=1` the tests already set. So every
snapshot of a 100-row table ran a 50-task job. Delta's own `build.sbt` sets
this to 2 for its tests and disables the Spark UI. This PR does the same.
## Brief change log
- Set `spark.databricks.delta.snapshotPartitions=1` and
`spark.sql.sources.parallelPartitionDiscovery.parallelism=1`, and turn off the
Spark UI, in:
- `HudiTestUtil.getSparkConf`, the shared conf, which also covers
xtable-service, the Iceberg pluggable-format ITs and the spark-runtime ITs;
- the three Delta ITs that build their own session;
- `TestXTableSyncTool`.
- In `testVariousOperations`, skip two full dataset comparisons for
partitioned tables. In both cases the next step's comparison still catches any
error from that sync:
- after the second delete, because the next step only writes a new
partition;
- after dropping a partition, because leftover or wrongly removed files
show up as a row mismatch once the partition is re-populated.
Local timings, with 4 JUnit threads:
| | before | after |
|---|---|---|
| ITDeltaConversionSource | 65.7s | 28.0s |
| ITDeltaKernelConversionSource | 29.1s | 17.8s |
| ITConversionController `testVariousOperations*` | 203s | 164s |
## Verify this pull request
This pull request is already covered by existing tests. No production code
changes. All xtable-core unit tests and ITs pass locally.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]