Skip to content

Conversation

@davdhacs
Copy link
Contributor

@davdhacs davdhacs commented Jan 7, 2026

verify the pr cluster deploy auth fails for cypress

@davdhacs davdhacs requested review from a team and rhacs-bot as code owners January 7, 2026 20:39
@rhacs-bot
Copy link
Contributor

A single node development cluster (infra-pr-1756) was allocated in production infra for this PR.

CI will attempt to deploy quay.io/rhacs-eng/infra-server: to it.

🔌 You can connect to this cluster with:

gcloud container clusters get-credentials infra-pr-1756 --zone us-central1-a --project acs-team-temp-dev

🛠️ And pull infractl from the deployed dev infra-server with:

nohup kubectl -n infra port-forward svc/infra-server-service 8443:8443 &
make pull-infractl-from-dev-server

🚲 You can then use the dev infra instance e.g.:

bin/infractl -k -e localhost:8443 whoami

⚠️ Any clusters that you start using your dev infra instance should have a lifespan shorter then the development cluster instance. Otherwise they will not be destroyed when the dev infra instance ceases to exist when the development cluster is deleted. ⚠️

Further Development

☕ If you make changes, you can commit and push and CI will take care of updating the development cluster.

🚀 If you only modify configuration (chart/infra-server/configuration) or templates (chart/infra-server/{static,templates}), you can get a faster update with:

make helm-deploy

Logs

Logs for the development infra depending on your @redhat.com authuser:

Or:

kubectl -n infra logs -l app=infra-server --tail=1 -f

@davdhacs davdhacs marked this pull request as draft January 7, 2026 22:04
@davdhacs davdhacs force-pushed the rox-29520-ui-testing-verifyprcluster branch 4 times, most recently from 322676b to 9cfde1d Compare January 19, 2026 17:21
This commit enables UI E2E tests to run against ephemeral GKE clusters
in GitHub Actions, similar to how Go E2E tests work.

Changes:

1. **TEST_MODE deployment support**:
   - Fix Helm template conditional in secrets.yaml to prevent duplicate
     secret creation when testMode=true
   - Generate self-signed certificates at deployment time for TEST_MODE
   - Delete and recreate secrets to force correct template application
   - Add test-mode-values.yaml to explicitly set testMode=true

2. **Session secret handling**:
   - Generate random session secrets for PR cluster deployments
   - Pass session secret from deploy job to UI E2E test job via outputs
   - Update Cypress commands to read SESSION_SECRET from environment
   - Update Makefile to generate and display session secret for local dev

3. **Runtime fixes**:
   - Handle invalid GCS credentials gracefully in TEST_MODE
   - Add wait for cluster readiness before deployment

4. **Test improvements**:
   - Add API error logging to Cypress tests for debugging
   - Use dynamic session secrets instead of hardcoded local-dev secret
   - Run UI E2E tests before Go E2E tests (UI tests are faster)
   - Go E2E tests use port-forward approach like PR 1735

This allows UI E2E tests to authenticate and run against PR clusters
that don't have production secrets, enabling automated UI testing in CI.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@davdhacs davdhacs force-pushed the rox-29520-ui-testing-verifyprcluster branch from 9cfde1d to 9149c97 Compare January 19, 2026 18:55
Add 'if: success() || failure()' to ui-e2e-test-pr-cluster job so it runs
even when deploy-and-test fails (due to Go e2e test failures). This allows
us to:
- See Go e2e failures as RED in GitHub UI (shows real status)
- Still run and test UI E2E functionality independently
- Get results for both test suites
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