This is an automated email from the ASF dual-hosted git repository.
xiaozhenliu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/texera.git
The following commit(s) were added to refs/heads/main by this push:
new e7ded5f7ac fix(ci): add explicit jdbc driver loading in relevant e2e
tests (#3783)
e7ded5f7ac is described below
commit e7ded5f7ac3b9effd0f623032ee75ecd0d6925b4
Author: Xiaozhen Liu <[email protected]>
AuthorDate: Tue Sep 30 15:45:51 2025 -0700
fix(ci): add explicit jdbc driver loading in relevant e2e tests (#3783)
## Purpose
This PR adds a fix for recent random CI failures caused by `No suitable
driver found for
jdbc:[postgresql](postgresql://localhost:5432/texera_iceberg_catalog)`.
- Closes #3570
## Content
- Add an explicit step to load JDBC driver in e2e test cases that need
to access postgres catalog.
- Affected test cases are `DataProcessingSpec` and `PauseSpec`.
---
.../test/scala/edu/uci/ics/amber/engine/e2e/DataProcessingSpec.scala | 3 +++
core/amber/src/test/scala/edu/uci/ics/amber/engine/e2e/PauseSpec.scala | 3 +++
2 files changed, 6 insertions(+)
diff --git
a/core/amber/src/test/scala/edu/uci/ics/amber/engine/e2e/DataProcessingSpec.scala
b/core/amber/src/test/scala/edu/uci/ics/amber/engine/e2e/DataProcessingSpec.scala
index 3d6616af8e..2cf6e53feb 100644
---
a/core/amber/src/test/scala/edu/uci/ics/amber/engine/e2e/DataProcessingSpec.scala
+++
b/core/amber/src/test/scala/edu/uci/ics/amber/engine/e2e/DataProcessingSpec.scala
@@ -59,6 +59,9 @@ class DataProcessingSpec
override def beforeAll(): Unit = {
system.actorOf(Props[SingleNodeListener](), "cluster-info")
+ // These test cases access postgres in CI, but occasionally the jdbc
driver cannot be found during CI run.
+ // Explicitly load the JDBC driver to avoid flaky CI failures.
+ Class.forName("org.postgresql.Driver")
}
override def afterAll(): Unit = {
diff --git
a/core/amber/src/test/scala/edu/uci/ics/amber/engine/e2e/PauseSpec.scala
b/core/amber/src/test/scala/edu/uci/ics/amber/engine/e2e/PauseSpec.scala
index 1cae358e3f..bd4164798d 100644
--- a/core/amber/src/test/scala/edu/uci/ics/amber/engine/e2e/PauseSpec.scala
+++ b/core/amber/src/test/scala/edu/uci/ics/amber/engine/e2e/PauseSpec.scala
@@ -50,6 +50,9 @@ class PauseSpec
override def beforeAll(): Unit = {
system.actorOf(Props[SingleNodeListener](), "cluster-info")
+ // These test cases access postgres in CI, but occasionally the jdbc
driver cannot be found during CI run.
+ // Explicitly load the JDBC driver to avoid flaky CI failures.
+ Class.forName("org.postgresql.Driver")
}
override def afterAll(): Unit = {