Skip to content

ci: add GKE deployment test for pull requests - #225

Merged
vladd-bit merged 4 commits into
mainfrom
ci/gke-deployment-test
Nov 20, 2026
Merged

vladd-bit merged 4 commits into
mainfrom
ci/gke-deployment-test

Conversation

@mooperd

@mooperd mooperd commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

⚪ Test environment removed

The environment for this PR has been torn down. If the PR is still open, re-run the GKE deployment test job or push a commit to bring it back.

Updated 2026-11-20 14:44 UTC · workflow run

What this adds

Every pull request that touches the Helm charts is deployed to its own small GKE cluster and left running, so reviewers can open the apps in a browser instead of port-forwarding.

  • Links on the PR. A panel at the top of the PR description lists each app with a link and a green or red dot. It also shows when the environment is deploying, failed or removed.
  • Real cluster, real ingress. cogstack-ce-helm is installed from the PR, behind HTTPS at https://<app>.pr-<number>.platform.cogstack.dev, then helm test and a public smoke test run.
  • Cleans up after itself. The environment is removed when the PR closes, on demand from the gke_teardown workflow, or after 24 hours.
  • No stored credentials. GitHub authenticates to Google Cloud with OIDC. Everything lives in a separate project, cogstack-platform-ci.

Things to know when reviewing

  • Timing: about 20 minutes for a new environment and 7 for a later push to the same PR.
  • Access: every route is behind basic auth, because the charts ship demo passwords and the URLs are public. The panel says how to get the password; it needs access to the Google Cloud project.
  • Skipped PRs: pull requests from forks and from Dependabot cannot get an OIDC token, so the job is skipped for them and reports as passing. PRs that do not touch the charts are skipped too.
  • Not yet required. This PR does not make the check block merging. That is a ruleset change to make once the check has proved stable.
  • Hourly cleanup starts after merge. The scheduled job and the manual teardown only run from the default branch. Until this merges, an environment is removed only when its PR closes.
  • Chart finding: OpenSearch does not start on GKE with the chart defaults, because the nodes' vm.max_map_count is too low. The test works around it with the OpenSearch chart's sysctlInit option in its own values file. The chart default is unchanged here.

Testing

Run end to end on a fork before moving here: fresh deploy, upgrade on a later push, recovery from a cancelled install, and teardown leaving no cluster, disk, load balancer or DNS record behind. This PR deploys itself, so the panel above shows the result in this repository.

How it works and how to rebuild the Google Cloud side: .github/scripts/gke/README.md.

🤖 Generated with Claude Code

mooperd and others added 4 commits November 20, 2026 13:55
Deploy cogstack-ce-helm from each pull request to its own GKE cluster,
reachable over HTTPS at <app>.pr-<number>.platform.cogstack.dev, and
leave it running for review. A separate workflow tears clusters down
when the PR closes, on demand, or when they are older than a day.

Authentication to Google Cloud uses GitHub OIDC. The workflows run in
any repository that has the three GCP_* variables set.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@vladd-bit
vladd-bit merged commit edc4cad into main Nov 20, 2026
9 checks passed
@vladd-bit
vladd-bit deleted the ci/gke-deployment-test branch November 20, 2026 14:37
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