HyukjinKwon opened a new pull request, #766: URL: https://github.com/apache/spark-connect-rust/pull/766
### What changes were proposed in this pull request? The CI jobs that start a Spark Connect server download the Spark distribution when their `spark-dist-<version>-hadoop3` cache misses, and they download it from `archive.apache.org`. This PR adds `scripts/download_spark_dist.sh`, which downloads from the Apache CDN (`dlcdn.apache.org`) first and falls back to `archive.apache.org`. The seven download steps call it: - `build_python_connect.yml`: Connect parity, Connect drop-in, Rust behavioral e2e and the benchmark; - `coverage.yml`, `pandas-parity.yml` and `pipelines-parity.yml`. The CDN serves the current releases. The archive keeps every release, so a release that leaves the CDN still downloads. `wget` gives up on a host after a connection stalls for 60 seconds three times. ### Why are the changes needed? A download from the archive can take long enough to run a job out of time. On the master push of 2f63d56c on 2026-11-16, every job missed the cache and spent 9 to 45 minutes downloading Spark 4.3.0 from the archive: | job | download | |---|---| | Rust behavioral e2e | 36 min, then the job hit its 45-minute limit ([job](https://github.com/apache/spark-connect-rust/actions/runs/43831834538/job/133178752189)) | | Pandas parity | 45 min | | Connect parity | 43 min | | Pipelines parity | 32 min | | Connect drop-in | 28 min | | Coverage | 9 min | The tests themselves took as long as on the previous green master, where the cache hit. ### Does this PR introduce _any_ user-facing change? No, CI only. ### How was this patch tested? - On a GitHub runner (`ubuntu-latest`), through a temporary workflow in a fork that ran the script ([run](https://github.com/HyukjinKwon/spark-connect-rust/actions/runs/43877414526)): - Spark 4.3.0's `spark-4.3.0-bin-hadoop3-connect.tgz` came from the CDN in 40 seconds and unpacked with `sbin/start-connect-server.sh`. - Spark 3.5.0's source tarball, which the CDN no longer has, failed on the CDN and came from the archive, in 232 seconds. - Locally, with a stub `wget`: the download from the CDN, the fallback to the archive when the CDN fails, the error when both fail, and the usage error. No temporary file is left in any case. - This PR's own CI restores the cached distribution, so it does not run the download. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Opus 5.5 This pull request and its description were written by Isaac. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
