test: fall back to a Maven Central mirror for the Spark Lance connector (#13031)

spark-submit resolved the Lance bundle and its dependencies through Ivy
from Maven Central only, so a refused Central request failed the run in
seconds with "module not found". --repositories adds the Google mirror
after Central in Ivy's resolver chain.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Chris LuandClaude Opus 5.5 authored and GitHub committed 2026-11-26 08:43:09 -08:00
1 parent 9c17e0038d
commit c2c5aac943
1 file changed
+2
@@ -27,6 +27,7 @@ const (
// Pinned: the connector is as much the thing under test as the server, and
// an unrelated release should not change what an old commit reproduces.
lancePackages = "org.lance:lance-spark-bundle-3.5_2.12:0.7.1"
mavenMirror = "https://maven-central.storage-download.googleapis.com/maven2/"
startupTimeout = 60 * time.Second
clientTimeout = 25 * time.Minute
)
@@ -297,6 +298,7 @@ func (env *environment) runSpark(t *testing.T, bucket string) {
sparkImage,
"/opt/spark/bin/spark-submit",
"--packages", lancePackages,
"--repositories", mavenMirror,
"--conf", "spark.jars.ivy=/tmp/ivy",
"/opt/spark/work-dir/spark_lance_ops.py",
"--namespace-url", namespaceURL,