This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 920a401f8e02 [SPARK-55637][SQL][TESTS] Generalize
`postgres-krb-setup.sh` to find config files
920a401f8e02 is described below
commit 920a401f8e027876d56856cc4ca58786d03c2add
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Mon Feb 23 07:15:37 2026 -0800
[SPARK-55637][SQL][TESTS] Generalize `postgres-krb-setup.sh` to find config
files
### What changes were proposed in this pull request?
This PR aims to generalize `postgres-krb-setup.sh` to find config files
instead of using static locations.
### Why are the changes needed?
To improve `PostgresKrbIntegrationSuite` to handle different PostgreSQL
image via `POSTGRES_DOCKER_IMAGE_NAME`.
Currently, `PostgresKrbIntegrationSuite` fails for other `PostgreSQL`
images.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Pass the CIs.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: `Gemini 3.1 Pro (High)` on `Antigravity`
Closes #54423 from dongjoon-hyun/SPARK-55637.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
.../docker-integration-tests/src/test/resources/postgres-krb-setup.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/connector/docker-integration-tests/src/test/resources/postgres-krb-setup.sh
b/connector/docker-integration-tests/src/test/resources/postgres-krb-setup.sh
index dd9fd8cb51ad..3c6aff0ee322 100755
---
a/connector/docker-integration-tests/src/test/resources/postgres-krb-setup.sh
+++
b/connector/docker-integration-tests/src/test/resources/postgres-krb-setup.sh
@@ -16,6 +16,6 @@
# limitations under the License.
#
-sed -i 's/host all all all .*/host all all all gss/g'
/var/lib/postgresql/data/pg_hba.conf
-echo "krb_server_keyfile='/docker-entrypoint-initdb.d/postgres.keytab'" >>
/var/lib/postgresql/data/postgresql.conf
+sed -i 's/host all all all .*/host all all all gss/g' $(find
/var/lib/postgresql -name pg_hba.conf)
+echo "krb_server_keyfile='/docker-entrypoint-initdb.d/postgres.keytab'" >>
$(find /var/lib/postgresql -name postgresql.conf)
psql -U postgres -c "CREATE ROLE
\"postgres/[email protected]\" LOGIN SUPERUSER"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]