You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "ErikBPF (via GitHub)" <gi...@apache.org> on 2026/09/22 12:46:43 UTC
[PR] ci: shard the Iceberg extensions test task [datafusion-comet]
ErikBPF opened a new pull request, #6113:
URL: https://github.com/apache/datafusion-comet/pull/6113
Closes #6103.
## Rationale
The `iceberg-spark-extensions` job ran unsharded and was the longest job in the
Iceberg workflow — 55m24s in a recent merge-queue run, against four shards for the
core `iceberg-spark` task. It now uses the same shard machinery as the core task.
## What changes
- `iceberg-spark-extensions` takes the shared shard matrix
(`fromJSON(needs.build-native.outputs.shard-matrix)`, `fail-fast: false`), gains
the `/shard-${{ matrix.shard }}` name suffix, and passes the same Gradle wiring as
the core task: `--init-script ../dev/ci/iceberg-test-shards.gradle`,
`-PcometShardTask=:iceberg-spark:iceberg-spark-extensions-...:test`,
`-PcometShardIndex`/`-PcometShardCount`.
- Each shard uploads its candidate inventory and test reports.
- A new `iceberg-spark-extensions-shard-coverage` job verifies the extensions
task's inventories (`check-iceberg-shards.py --manifests ... --task ...extensions...:test`),
mirroring the core coverage job.
- `dev/ci/check-ci-config.py` gains `check_iceberg_extensions_shards()` so the job
cannot silently lose its shard wiring.
## Expected effect
~55m24s → projected ~15-20 min for the extensions job, roughly 35 queue-minutes
per run. This is the largest single saving identified in the CI review.
## How it was tested
- Guard is RED before the workflow change (four failures) and GREEN after:
`python3 dev/ci/check-ci-config.py` → `CI config checks passed`.
- `python3 dev/ci/test-iceberg-shards.py` → 15 tests OK.
- Not yet exercised end-to-end: per-shard balance and a non-empty extensions
`unshardedCandidates` inventory need one label run to confirm. The new coverage
job fails if the union of shard candidates is not exactly the unsharded
inventory, so a bad split cannot merge silently.
## Constraint
`SHARD_COUNT = 4` in `dev/ci/check-iceberg-shards.py` is global; the extensions
task reuses the same count.
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] ci: shard the Iceberg extensions test task [datafusion-comet]
Posted by "ErikBPF (via GitHub) via github" <gi...@datafusion.apache.org>.
ErikBPF commented on PR #6113:
URL: https://github.com/apache/datafusion-comet/pull/6113#issuecomment-6799263194
Merged current `main` (`e59d93730`) into this branch at head `cc9fa7e6c` and revalidated the shard work against #7311 (fork PR tier), #7516 (Spark SQL 4.1 / Iceberg 1.11 on every PR) and #7521 (Spark 3.4 removal).
The conflict was again limited to `dev/ci/check-ci-config.py`, where both sides appended checks. The extensions job still uses the shared shard matrix, passes `-PcometShardTask` for its own task and the shard index/count from the same definition, and `iceberg-spark-extensions-shard-coverage` still verifies the extensions inventories. The contributor-guide edits merged cleanly and are reconciled with the current workflow shape.
Verification on the merged head: `python3 dev/ci/check-ci-config.py`, `dev/ci/test-iceberg-shards.py` (15 tests), `dev/ci/test-fork-push-changed-files.py` and `dev/ci/test-fork-ci-status.cjs` passed. The Gradle/JUnit shard fixture was not rerun here because it needs the Iceberg checkout; the earlier run remains the runtime evidence.
GitHub now reports the PR mergeable with the approval retained. Ready for re-review.
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] ci: shard the Iceberg extensions test task [datafusion-comet]
Posted by "ErikBPF (via GitHub)" <gi...@apache.org>.
ErikBPF commented on PR #6113:
URL: https://github.com/apache/datafusion-comet/pull/6113#issuecomment-6148213786
Merged current main (`474b5ece8`) into this branch without conflicts or history rewriting. Updated head: `4307a38acbf9eda244b39f051edae616515f0e53`; the PR remains scoped to the same six files (+170/-19). The four extensions buckets, core streaming reservation, and shard-qualified reports are retained.
Fresh local checks passed: CI configuration, suite inventory, versioned-source parity, benchmark runner (60 suites), Iceberg shard inventory (15 tests), and write-summary checks (6 tests). These are static/configuration checks. The earlier Gradle fixture and 3,606-test integration receipts remain tied to their older base; no fresh full integration result is claimed.
The Comet CI and CodeQL runs for this exact head require maintainer approval. Could a maintainer approve them?
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] ci: shard the Iceberg extensions test task [datafusion-comet]
Posted by "comphead (via GitHub) via github" <gi...@datafusion.apache.org>.
comphead commented on code in PR #6113:
URL: https://github.com/apache/datafusion-comet/pull/6113#discussion_r4637039471
##########
.github/workflows/iceberg_spark_test_reusable.yml:
##########
@@ -238,21 +241,52 @@ jobs:
ENABLE_COMET=true ENABLE_COMET_ONHEAP=true COMET_ICEBERG_DATA_FILE_CONCURRENCY_LIMIT=1 COMET_ICEBERG_WRITE_REPORT_DIR="$PWD/build/comet-iceberg-writes" \
./gradlew -DsparkVersions=${{ inputs.spark-short }} -DscalaVersion=${{ inputs.scala }} -DflinkVersions= -DkafkaVersions= \
:iceberg-spark:iceberg-spark-extensions-${{ inputs.spark-short }}_${{ inputs.scala }}:test \
+ --init-script ../dev/ci/iceberg-test-shards.gradle \
+ -PcometShardTask=:iceberg-spark:iceberg-spark-extensions-${{ inputs.spark-short }}_${{ inputs.scala }}:test \
+ -PcometShardIndex=${{ matrix.shard }} -PcometShardCount=${{ needs.build-native.outputs.shard-count }} \
-Pquick=true -x javadoc
- name: Summarize Iceberg writes
if: ${{ !cancelled() }}
run: |
- python3 dev/ci/summarize-iceberg-writes.py --title "iceberg-spark-extensions" \
+ python3 dev/ci/summarize-iceberg-writes.py --title "iceberg-spark-extensions shard ${{ matrix.shard }}" \
apache-iceberg/build/comet-iceberg-writes
- - name: Upload Iceberg write report
+ - name: Upload Iceberg shard inventory and test reports
if: ${{ !cancelled() }}
+ # iceberg-spark-extensions-shard-coverage downloads the inventory, so a
+ # flaky upload here fails that job too. Retry rather than fail on 403.
uses: ./.github/actions/upload-artifact-retry
with:
- name: iceberg-spark-extensions-writes-${{ inputs.iceberg-full }}-spark-${{ inputs.spark-full }}-scala-${{ inputs.scala }}-jdk${{ inputs.java }}-attempt-${{ github.run_attempt }}
- path: apache-iceberg/build/comet-iceberg-writes/*.jsonl
- if-no-files-found: ignore
+ name: iceberg-spark-extensions-${{ inputs.iceberg-full }}-spark-${{ inputs.spark-full }}-scala-${{ inputs.scala }}-jdk${{ inputs.java }}-shard-${{ matrix.shard }}-attempt-${{ github.run_attempt }}
+ path: |
+ apache-iceberg/**/build/comet-shards/*.json
+ apache-iceberg/**/build/test-results/test/*.xml
+ apache-iceberg/build/comet-iceberg-writes/*.jsonl
retention-days: 7
+ iceberg-spark-extensions-shard-coverage:
+ needs: iceberg-spark-extensions
+ if: ${{ !cancelled() }}
+ name: iceberg-spark-extensions-shard-coverage/iceberg-${{ inputs.iceberg-full }}/spark-${{ inputs.spark-full }}/scala-${{ inputs.scala }}/java-${{ inputs.java }}
+ runs-on: ubuntu-slim
Review Comment:
After the rebase this new job also needs a `timeout-minutes`. `.github/workflows/README.md` now says every job that runs on a runner sets one. The existing `iceberg-spark-shard-coverage` job uses 15, which I expect fits here too since it only downloads the inventories and runs two Python scripts.
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] ci: shard the Iceberg extensions test task [datafusion-comet]
Posted by "ErikBPF (via GitHub)" <gi...@apache.org>.
ErikBPF commented on PR #6113:
URL: https://github.com/apache/datafusion-comet/pull/6113#issuecomment-5951382271
Updated against pinned main `63fd1c9e` and fixed the empty extensions-shard feedback. Published ancestry is retained with an identical-tree merge, without force-pushing.
The shared helper now uses all four hash buckets for the extensions task while preserving the core task's streaming-only reservation. Existing write reports/summaries are retained with shard/attempt-qualified artifact names. Contributor docs clarify that the local extensions target remains unsharded and show how to reproduce a specific CI extensions shard directly.
Verification on Apollo:
- Actual Gradle helper fixture: 23 invocations, 20 successes and three expected failure controls; exact disjoint coverage. The original helper still fails the same final fixture with an empty extensions shard.
- 15 inventory tests, six summary tests, CI guards and source/docs checks passed.
- Real Iceberg 1.11.0 / Spark 4.1 / Scala 2.13 extensions integration ran all four shards: 3,606 passed, 331 skipped, zero failures/errors.
- The unchanged coverage checker verified a pairwise-disjoint exact union of all 77 baseline candidate classes. Per-shard candidate counts were 26, 16, 28 and 7.
- Independent source review passed; native/JAR hashes were unchanged during integration.
This was a sequential local verification run, not a measured speedup. Older Iceberg versions, core tests and other runtime matrices were not executed by this verification.
Updated head: `b0bc125f657f96f0d1cd1d28e5b1da6eb888af14` (tested tree unchanged from `a033c1871ee8174b9d7ea3aa6086e1b700e1c702`).
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] ci: shard the Iceberg extensions test task [datafusion-comet]
Posted by "ErikBPF (via GitHub) via github" <gi...@datafusion.apache.org>.
ErikBPF commented on PR #6113:
URL: https://github.com/apache/datafusion-comet/pull/6113#issuecomment-6924358097
@andygrove the label run now has successful results for all eight extensions shards on Iceberg 1.9.1 and 1.10.0. I updated the description with per-shard test-step times and both wall time and total runner time.
- 1.9.1 test steps, shards 1–4: 13.82 / 12.50 / 14.88 / 10.42 minutes. Elapsed extensions span: 22.35 minutes. Total shard runner time: 77.80 minutes.
- 1.10.0: 12.77 / 13.13 / 14.75 / 9.88 minutes. Elapsed span: 21.95 minutes. Total shard runner time: 74.40 minutes.
Against the historical 55m24s job reference, that is about 33 minutes less elapsed time and 19–22 additional runner minutes. This is not a controlled same-version/cache comparison. Runner totals include repeated shard setup/build and cleanup, but exclude shared native-build and coverage jobs; they are active job durations, not billing measurements.
The slowest test steps are 15.3% and 16.8% above their four-shard averages, so I have retained the hash split rather than assign heavy classes based only on these runs. Iceberg 1.11 was skipped by this upstream fork label run, so these numbers do not establish its balance. The 1.10 inventory coverage check passed; 1.9 coverage and the overall run are still in progress.
Run: https://github.com/apache/datafusion-comet/actions/runs/43905332772
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] ci: shard the Iceberg extensions test task [datafusion-comet]
Posted by "sunchao (via GitHub)" <gi...@apache.org>.
sunchao commented on code in PR #6113:
URL: https://github.com/apache/datafusion-comet/pull/6113#discussion_r4100340045
##########
.github/workflows/iceberg_spark_test_reusable.yml:
##########
@@ -224,7 +227,40 @@ jobs:
rm -rf /root/.m2/repository/org/apache/parquet # somehow parquet cache requires cleanups
ENABLE_COMET=true ENABLE_COMET_ONHEAP=true ./gradlew -DsparkVersions=${{ inputs.spark-short }} -DscalaVersion=${{ inputs.scala }} -DflinkVersions= -DkafkaVersions= \
:iceberg-spark:iceberg-spark-extensions-${{ inputs.spark-short }}_${{ inputs.scala }}:test \
+ --init-script ../dev/ci/iceberg-test-shards.gradle \
Review Comment:
[P1] Use an extensions-specific partition before enabling this init script. `CometIcebergTestShard.owner()` reserves shard 1 exclusively for `TestStructuredStreamingRead*` and assigns everything else to shards 2–4. None of the configured extensions source sets contains that family. Consequently, shard 1 becomes `NO-SOURCE`, Gradle skips the `doFirst` inventory writer, and the new coverage job fails because inventory 1 is missing, even when every extensions test passes. This makes the Iceberg workflow fail and blocks merge-queue runs that require it. Preserve the core streaming special case while distributing extensions across all four shards, and add a fixture without streaming tests.
Evidence: Checked upstream Iceberg 1.8.1/Spark 3.4, 1.9.1/Spark 3.5, 1.10.0/Spark 3.5, and 1.11.0/Spark 4.1 source trees and Gradle configuration: `TestStructuredStreamingRead3` belongs to the core module, not extensions. Reproduced with Gradle 8.14.4/JDK 17 using isolated Java test projects containing passing `TestExtendedParser`, `TestAddFilesProcedure`, and `TestAlterTableSchema` tests and the unchanged repository init script with `-PcometShardTask=:test -PcometShardIndex=1..4 -PcometShardCount=4`. Baseline executed three tests. Shard 1 reported `:test NO-SOURCE` and wrote no manifest. Shards 2–4 each passed one test and wrote their inventories. The repository coverage checker exited 1 with `Expected shard indices [1, 2, 3, 4], found [2, 3, 4]`. Reproduction and logs: `/tmp/comet-6113-repro-n141sa7s/run-isolated-repro.py` and its `isolated/` directory.
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] ci: shard the Iceberg extensions test task [datafusion-comet]
Posted by "ErikBPF (via GitHub)" <gi...@apache.org>.
ErikBPF commented on code in PR #6113:
URL: https://github.com/apache/datafusion-comet/pull/6113#discussion_r4243055348
##########
.github/workflows/iceberg_spark_test_reusable.yml:
##########
@@ -224,7 +227,40 @@ jobs:
rm -rf /root/.m2/repository/org/apache/parquet # somehow parquet cache requires cleanups
ENABLE_COMET=true ENABLE_COMET_ONHEAP=true ./gradlew -DsparkVersions=${{ inputs.spark-short }} -DscalaVersion=${{ inputs.scala }} -DflinkVersions= -DkafkaVersions= \
:iceberg-spark:iceberg-spark-extensions-${{ inputs.spark-short }}_${{ inputs.scala }}:test \
+ --init-script ../dev/ci/iceberg-test-shards.gradle \
Review Comment:
Addressed in `589001e`: extensions distribute across all four shards, while the core streaming reservation remains intact. The regression fixtures cover extensions without streaming tests, including small and empty inventories.
Rechecked the current head: all 15 tests in `dev/ci/test-iceberg-shards.py` and the CI configuration guard passed. The current Comet CI and CodeQL runs are still awaiting approval. Could a maintainer approve them so the hosted jobs can verify this head?
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] ci: shard the Iceberg extensions test task [datafusion-comet]
Posted by "ErikBPF (via GitHub)" <gi...@apache.org>.
ErikBPF commented on PR #6113:
URL: https://github.com/apache/datafusion-comet/pull/6113#issuecomment-6428342250
Updated head: `645e48db4` (recipe correction only).
Validated on Apollo against current `main` (`c4a0b1f2b`):
- `python3 dev/ci/test-iceberg-shards.py`: 15 tests OK.
- `python3 dev/ci/check-ci-config.py`: passed.
- `actionlint --shellcheck=off`, the CI invocation: passed.
- Real Gradle/JUnit fixture (`check-iceberg-shards.py --gradle`): 23 invocations, 20 passes and the 3 expected-failure controls; the four extensions shards form a disjoint exact union of the unsharded inventory (11 candidates, 13 cases); small and empty inventories verified.
Not rerun: the full Iceberg extensions integration; the 3,606-test receipt in the description remains older-base evidence.
CI and CodeQL are still `action_required` on this head. Could a maintainer approve them, and add `run-iceberg-tests` if you want a verdict on every Iceberg version rather than the queue's 1.11?
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] ci: shard the Iceberg extensions test task [datafusion-comet]
Posted by "ErikBPF (via GitHub) via github" <gi...@datafusion.apache.org>.
ErikBPF commented on PR #6113:
URL: https://github.com/apache/datafusion-comet/pull/6113#issuecomment-6901880869
I checked the current-head Comet CI run (43042610229). It is still `action_required` with no jobs, so there are no per-shard durations to report. The earlier inspected run (38415804477) also has no jobs. Could a maintainer approve CI and run the relevant Iceberg label coverage? Once the extensions jobs execute, we can compare their test-step durations and use the heaviest classes for explicit assignments if the hash split is materially imbalanced. I have left the allocation unchanged until there is timing evidence.
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org