Skip to content

[CI only] Run build.yml on the #13962 POC - #17

Closed
nevzheng wants to merge 2 commits into
branch-13962-basefrom
branch-13962-poc-ci
Closed

nevzheng wants to merge 2 commits into
branch-13962-basefrom
branch-13962-poc-ci

Conversation

@nevzheng

Copy link
Copy Markdown
Owner

Requested by Nevin · project thread

CI only, not for review. build.yml runs only on PRs into main or branch-*, so the stacked POC (#16) gets no build. This PR targets branch-13962-base (= the apache#13899 head) to run core-test and the new core-test-external-db jobs on the POC commit. Close it once CI has run.


Generated by Claude Code

Rough draft: let tests get MySQL, PostgreSQL and other services from
Testcontainers or from the environment (Kubernetes services, CI service
containers) through one provider chain and per-service endpoint types.
…ternal MySQL and PostgreSQL

Proof of concept for the SPIP in design-docs/testing/containers/.

Tests ask ContainerSuite.getService(ServiceSpec) for a service and get a
ServiceEndpoint. ContainerSuite asks ServiceProviders in order and keeps
the first answer: providers listed through ServiceLoader, then
ExternalServiceProvider (gravitino.test.<service>.* properties), then
ContainerServiceProvider (today's containers).

MySQL and PostgreSQL are the first services: DatabaseEndpoint is
implemented by DatabaseContainer and by ExternalDatabase. The core
MySQL and PostgreSQL lanes pass GRAVITINO_TEST_<MYSQL|POSTGRESQL>_URL,
_USER and _PASSWORD to the test JVM; with them set, the lane starts no
container and needs no Docker. Database names on an external server
carry a random per-JVM token, and a run drops only what it created.
BaseIT, BackendTestExtension, AbstractEntityStorageTest and the
partition statistics tests take the login from the endpoint instead of
root/root.

A new core-test-external-db CI job runs both lanes against GitHub
Actions service containers and checks that no other container started.
@github-actions

Copy link
Copy Markdown

Code Coverage Report

Overall Project 72.28% 🟢
Files changed No Java source files changed -

Module Coverage
aliyun 19.74% 🔴
api 55.09% 🟢
authorization-common 85.96% 🟢
authorization-ranger 14.44% 🔴
aws 60.78% 🟢
aws-bundle 0.0% 🔴
azure 68.04% 🟢
azure-bundle 0.0% 🔴
catalog-common 29.49% 🔴
catalog-fileset 82.37% 🟢
catalog-glue 73.24% 🟢
catalog-hive 84.5% 🟢
catalog-jdbc-common 57.98% 🟢
catalog-jdbc-doris 87.56% 🟢
catalog-jdbc-mysql 81.91% 🟢
catalog-jdbc-postgresql 83.76% 🟢
catalog-jdbc-starrocks 79.44% 🟢
catalog-kafka 75.21% 🟢
catalog-lakehouse-generic 86.91% 🟢
catalog-lakehouse-hudi 79.1% 🟢
catalog-lakehouse-iceberg 86.8% 🟢
catalog-lakehouse-paimon 84.36% 🟢
catalog-model 77.99% 🟢
cli 44.62% 🟢
client-java 79.44% 🟢
client-java-runtime 0.0% 🔴
common 60.9% 🟢
core 87.51% 🟢
filesystem-hadoop3 76.89% 🟢
flink 55.44% 🟢
flink-common 32.2% 🔴
flink-runtime 0.0% 🔴
gcp 32.2% 🔴
hadoop-auth 68.0% 🟢
hadoop-common 17.84% 🔴
hive-metastore-common 62.3% 🟢
hive-metastore3-libs 58.8% 🟢
iceberg-aliyun-bundle 0.0% 🔴
iceberg-common 67.01% 🟢
iceberg-rest-server 77.74% 🟢
idp-basic 86.99% 🟢
integration-test-common 0.0% 🔴
jobs 71.35% 🟢
k8s-job-executor 97.81% 🟢
lance-common 40.49% 🟢
lance-rest-server 69.51% 🟢
lineage 59.39% 🟢
optimizer 84.27% 🟢
optimizer-api 46.58% 🟢
server 91.43% 🟢
server-common 83.86% 🟢
spark 63.29% 🟢
tencent 81.78% 🟢
tms 80.0% 🟢
trino-connector 64.88% 🟢

@nevzheng nevzheng closed this Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant