Skip to content

Add GitHub workflow for integration tests on multiple Java versions - #1381

Open
ZPascal wants to merge 1 commit into
cloudfoundry:5.x.xfrom
ZPascal:gh-integration-test-matrix
Open

ZPascal wants to merge 1 commit into
cloudfoundry:5.x.xfrom
ZPascal:gh-integration-test-matrix

Conversation

@ZPascal

@ZPascal ZPascal commented Oct 3, 2026 •

Copy link
Copy Markdown

This adds a workflow that runs the integration tests against a Cloud Foundry on KinD, using kind-deployment, on Java 8, 11, 17 and 21. Each matrix job gets its own Cloud Foundry, so they can run in parallel.

The workflow is integration-test.yml. It runs ./mvnw -Pintegration-test test against the deployed CF and is triggered

  • nightly on weekdays (latest versions, Java 21 only, and only in cloudfoundry/cf-java-client, not on forks),
  • manually via workflow_dispatch, optionally with preview,
  • from ci-java.yml after the build job (Java 21).

Normal runs deploy the capi-release that matches SUPPORTED_API_VERSION. .github/scripts/resolve-capi-version.sh finds it and the workflow hands it to kind-deployment as a chart version override. Preview runs (nightly, or manual with preview) just take the latest versions.

PostgreSQL connections

All CF components share a single PostgreSQL, and its default of 100 connections runs out during a full test run (too many clients already). Once that happens UAA fails and so does every test context after it. The workflow therefore sets postgres-max-connections: '500', which needs cloudfoundry/kind-deployment#516.

Until #516 is merged, setup-cf and ref point to a commit on my fork (ZPascal/kind-deployment) that contains it. Both are marked TEMPORARY in the workflow and need to be moved to the upstream commit afterwards.

Dependencies

@ZPascal
ZPascal force-pushed the gh-integration-test-matrix branch 7 times, most recently from 6b1c866 to fffcc32 Compare October 5, 2026 11:32
@Lokowandtg

Copy link
Copy Markdown
Contributor

The failures because of "suspended" where addressed with #1371

@Lokowandtg

Copy link
Copy Markdown
Contributor

The failures because of "missing :resources" might be a problem in kind? As a workaround I added the following line to https://github.com/cloudfoundry/cf-k8s-releases/blob/4500c9dec5007c5c86c630bb86c3bb596e98259c/capi/helm/files/nginx/nginx_external_endpoints.conf#L47
upload_set_form_field "resources" [];
resulting in running tests.

@ZPascal
ZPascal force-pushed the gh-integration-test-matrix branch 3 times, most recently from 37647e0 to dea93e2 Compare October 7, 2026 20:22
@ZPascal
ZPascal force-pushed the gh-integration-test-matrix branch 2 times, most recently from 127d129 to cc8c779 Compare October 8, 2026 04:53
@ZPascal
ZPascal marked this pull request as ready for review October 8, 2026 04:55
@ZPascal
ZPascal changed the base branch from main to 5.x.x October 8, 2026 05:50
@ZPascal
ZPascal changed the base branch from 5.x.x to main October 8, 2026 05:50
@ZPascal
ZPascal changed the base branch from main to 5.x.x October 10, 2026 07:38
@ZPascal
ZPascal force-pushed the gh-integration-test-matrix branch from cc8c779 to 9e0904c Compare October 10, 2026 07:40

This branch has not been deployed

No deployments
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.

2 participants