Skip to content

Commit bd11ddb

Browse files
ZPascalclaude
andcommitted
TEMPORARY: Test kind-deployment with max_connections = 500
Deploy Cloud Foundry from the ZPascal/kind-deployment fork, which has cloudfoundry/kind-deployment#516, and drop the Postgres restart workaround. Revert to the cloudfoundry/kind-deployment pin once cloudfoundry#516 is merged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1 parent dea93e2 commit bd11ddb

1 file changed

Lines changed: 3 additions & 25 deletions

File tree

‎.github/workflows/integration-test.yml‎

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -88,36 +88,14 @@ jobs:
8888
echo "file=$RUNNER_TEMP/capi-values.yaml" >> "$GITHUB_OUTPUT"
8989
# Every job gets its own Cloud Foundry on KinD, so the matrix can run in parallel.
9090
# The action deploys the kind-deployment ref given in `ref`, so keep both on the same commit.
91+
# TEMPORARY: the fork contains cloudfoundry/kind-deployment#516 (max_connections = 500).
9192
- name: Set up Cloud Foundry
92-
uses: cloudfoundry/kind-deployment/.github/actions/setup-cf@8eff1a34c730d89d3c90044695cbcaba048ec68d
93+
uses: ZPascal/kind-deployment/.github/actions/setup-cf@6c4e9873608fe4bacf7815a9b15c075164d99d18
9394
with:
94-
ref: 8eff1a34c730d89d3c90044695cbcaba048ec68d
95+
ref: 6c4e9873608fe4bacf7815a9b15c075164d99d18
9596
use-latest-versions: ${{ (inputs.preview || github.event_name == 'schedule') }}
9697
github-token: ${{ github.token }}
9798
additional-values-files: ${{ steps.values.outputs.file }}
98-
# Workaround: all Cloud Foundry components share one Postgres with the default max_connections
99-
# (100). Over a full test run it runs out ("too many clients already") and UAA, which every
100-
# Spring test context needs, stops working. kind-deployment doesn't expose the setting, and
101-
# it only takes effect after a restart.
102-
- name: Raise Postgres connection limit
103-
timeout-minutes: 20
104-
run: |
105-
.github/scripts/pg-psql.sh -c "ALTER SYSTEM SET max_connections = 500"
106-
kubectl -n cf-system rollout restart statefulset/postgresql
107-
kubectl -n cf-system rollout status statefulset/postgresql --timeout=300s
108-
.github/scripts/pg-psql.sh -tc "SHOW max_connections"
109-
# The restart leaves the components with dead pooled connections (the cloud controller
110-
# answers one 500 per stale connection and does not validate them), and some of them
111-
# crash-loop for a while. Restart them all so they reconnect, wait for the rollouts and check
112-
# that the platform answers before the tests start.
113-
kubectl -n cf-system rollout restart deployment
114-
for deployment in $(kubectl -n cf-system get deployment -o name); do
115-
kubectl -n cf-system rollout status "$deployment" --timeout=600s
116-
done
117-
for url in "https://$CF_API_HOST/v3/info" "https://$CF_UAA_HOST/info"; do
118-
curl --silent --show-error --fail --insecure --output /dev/null \
119-
--retry 60 --retry-delay 10 --retry-all-errors "$url"
120-
done
12199
- name: Set up Java
122100
uses: actions/setup-java@v5
123101
with:

0 commit comments

Comments
 (0)