Skip to content

OCPNETUI-56: Add hot-cluster E2E workflows, composite actions, and Dockerfile.ci - #497

Open
lkladnit wants to merge 1 commit into
openshift:mainfrom
lkladnit:lkladnit/hot-cluster-workflows
Open

lkladnit wants to merge 1 commit into
openshift:mainfrom
lkladnit:lkladnit/hot-cluster-workflows

Conversation

@lkladnit

@lkladnit lkladnit commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Summary

GitHub Actions infrastructure for running Cypress E2E tests on a persistent (hot) OpenShift cluster via ARC self-hosted runners. Manual dispatch only (workflow_dispatch).

Workflows

File Purpose
hot-cluster-e2e.yml Entry point: manual dispatch, calls run workflow
hot-cluster-e2e-run.yml Build plugin image → provision test env via Helm → run Cypress → collect diagnostics → tear down

Composite actions

Action Purpose
ci-env-request Create trigger ConfigMap, poll until environment ready, output bridge URL
ci-env-release Patch ConfigMap to absent, wait for cleanup, delete ConfigMap

Docker

File Purpose
Dockerfile.ci Multi-stage build mirroring production Dockerfile, pinned UBI9 base images (GitHub Actions cannot pull from registry.ci.openshift.org)
.dockerignore Exclude CI/test/git files from image context

FIPS cluster support

RHOS clusters with FIPS enabled cause segfaults in both the .NET-based GitHub Actions runner and the Go-based oc CLI. Workarounds applied:

  • OPENSSL_FORCE_FIPS_MODE=0 for the runner process
  • GOLANG_FIPS=0 for oc commands
  • KUBECONFIG=/tmp/kubeconfig for non-root writable path

Changes addressing review feedback

  • Dockerfile.ci: pinned base image versions, match production Dockerfile structure (CYPRESS_INSTALL_BINARY=0, --ignore-scripts)
  • .dockerignore: relaxed scope — kept eslint/prettier configs, removed *.md exclusion
  • Trigger: removed pull_request_target (security concern), kept workflow_dispatch only. PR-triggered runs can be added later via the safer pull_request + workflow_run pattern.
  • Health check: removed separate job, replaced with inline oc cluster-info + node count after auth

Cluster setup prerequisites

See ci-scripts/README.md (from #489) for RHOS cluster preparation steps.

Depends on #489 (ci-scripts), #490 (ci-test-stack), #491 (ci-env-controller).

Jira: OCPNETUI-56

Test plan

  • Workflow triggers via manual dispatch on a fork with ARC configured
  • Plugin image builds and pushes to ttl.sh
  • Helm provisions test environment on hot cluster
  • Cypress tests execute against in-cluster console
  • Cleanup tears down Helm release and namespaces

@openshift-ci

openshift-ci Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Pipeline controller notification
This repo is configured to use the pipeline controller. Second-stage tests will be triggered either automatically or after lgtm label is added, depending on the repository configuration. The pipeline controller will automatically detect which contexts are required and will utilize /test Prow commands to trigger the second stage.

For optional jobs, comment /test ? to see a list of all defined jobs. To trigger manually all jobs from second stage use /pipeline required command.

This repository is configured in: LGTM mode

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Sep 13, 2026
@openshift-ci-robot

openshift-ci-robot commented Sep 13, 2026

Copy link
Copy Markdown

@lkladnit: This pull request references OCPNETUI-56 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.1.0" version, but no target version was set.

Details

In response to this:

Summary

GitHub Actions infrastructure for running Cypress E2E tests on a persistent (hot) OpenShift cluster via ARC self-hosted runners.

Workflows

File Purpose
hot-cluster-e2e.yml Entry point: PR gating (fork trust, ok-to-test label), health check, calls run workflow
hot-cluster-e2e-run.yml Build plugin image → provision test env → run Cypress → collect diagnostics → tear down

Composite actions

Action Purpose
ci-env-request Create trigger ConfigMap, poll until ci-env-controller provisions environment, output bridge URL
ci-env-release Patch ConfigMap to absent, wait for cleanup, delete ConfigMap

Docker

File Purpose
Dockerfile.ci Multi-stage build with public UBI9 base images (GitHub Actions cannot pull from registry.ci.openshift.org)
.dockerignore Exclude CI/test files from image context

FIPS cluster support

RHOS clusters with FIPS enabled cause segfaults in both the .NET-based GitHub Actions runner and the Go-based oc CLI. Workarounds applied:

  • OPENSSL_FORCE_FIPS_MODE=0 for the runner process
  • GOLANG_FIPS=0 for oc commands
  • KUBECONFIG=/tmp/kubeconfig for non-root writable path

Cluster setup prerequisites

See ci-scripts/README.md (from #489) for RHOS cluster preparation steps (ARC controller, runner scale set, ci-env-controller).

Depends on #489 (ci-scripts), #490 (ci-test-stack), #491 (ci-env-controller).

Jira: OCPNETUI-56

Test plan

  • Workflow triggers via manual dispatch on a branch with ARC configured
  • Health check passes on a RHOS cluster with ARC installed
  • Plugin image builds and pushes to ttl.sh
  • ci-env-controller provisions test environment
  • Cypress tests run against in-cluster console

Made with Cursor

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@coderabbitai

coderabbitai Bot commented Sep 13, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 8731833f-3f2f-4059-809e-e7f31c1b6c96


Comment @coderabbitai help to get the list of available commands.

@openshift-ci

openshift-ci Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lkladnit

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 13, 2026
@rszwajko
rszwajko requested review from rszwajko and sjd78 September 17, 2026 11:09
Comment thread Dockerfile.ci Outdated
Comment thread .dockerignore
Comment thread .github/workflows/hot-cluster-e2e.yml Outdated
Comment thread .github/workflows/hot-cluster-e2e.yml Outdated
Comment thread .github/workflows/hot-cluster-e2e.yml Outdated
@lkladnit lkladnit self-assigned this Sep 22, 2026
@lkladnit
lkladnit force-pushed the lkladnit/hot-cluster-workflows branch from a1270f3 to b2b25dc Compare September 22, 2026 10:10
…ckerfile.ci

Add GitHub Actions infrastructure for running Cypress E2E tests on a
persistent (hot) OpenShift cluster via ARC self-hosted runners:

Workflows:
- hot-cluster-e2e.yml: entry point with PR gating (fork trust via
  author_association or ok-to-test label), cluster health check
- hot-cluster-e2e-run.yml: build plugin image to ttl.sh, provision
  test environment via ci-env-controller, run Cypress, collect
  diagnostics, tear down

Composite actions:
- ci-env-request: create trigger ConfigMap, wait for environment ready
- ci-env-release: signal teardown, wait for cleanup, delete ConfigMap

Docker:
- Dockerfile.ci: multi-stage build using public UBI9 base images
  (not registry.ci.openshift.org which requires Prow auth)
- .dockerignore: exclude CI/test files from image builds

FIPS cluster support:
- OPENSSL_FORCE_FIPS_MODE=0 and GOLANG_FIPS=0 for runner and oc CLI
- KUBECONFIG set to writable path for non-root runners
- oc CLI downloaded to RUNNER_TEMP on each job

Depends on ci-scripts (openshift#489), ci-test-stack (openshift#490), ci-env-controller (openshift#491).

Jira: OCPNETUI-56
Co-authored-by: Cursor <cursoragent@cursor.com>
@lkladnit
lkladnit force-pushed the lkladnit/hot-cluster-workflows branch from b2b25dc to 8033f88 Compare September 22, 2026 12:59
@openshift-ci

openshift-ci Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

@lkladnit: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants