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

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.

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

…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>
@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: 342445a8-18b0-4fdf-aea1-1ee42d729dcc


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
@openshift-ci

openshift-ci Bot commented Sep 13, 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.

Comment thread Dockerfile.ci
@@ -0,0 +1,18 @@
FROM registry.access.redhat.com/ubi9/nodejs-18:latest AS build

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to re-use the image build for PROW by adding another step i.e. as it's done with existing steps. The main advantage would be to use the same base image as PROW and ART

If we need to run with a different image then let's:

  1. use image that already contains nginx
  2. pin version for both builder and runtime images
  3. use similar build commands as the production Dockerfile

CC: @sjd78

Comment thread .dockerignore
@@ -0,0 +1,17 @@
node_modules

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding the dockerignore is a very good idea! I'm not sure if the scope is right.
I'd rather keep the eslint and prettier ignore list. Not sure about git.
I.e. check https://github.com/konveyor/tackle2-ui/blob/main/.dockerignore and https://github.com/kubevirt-ui/kubevirt-plugin/blob/main/.dockerignore

gate-pr:
name: Gate PR
if: >-
github.event_name == 'workflow_dispatch' ||

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO we could simplify the conditions:

  1. manual workflow dispatch should be assigned to a user - so we can merge it with user checks
  2. not sure if same repo check alone is sufficient - we can use it as supplemental though
  3. author_association is not connected to actual write permissions. Using the permission check seems better.

name: Hot Cluster E2E

on:
pull_request_target:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

steps:
- run: echo "PR is authorized for hot-cluster E2E"

cluster-health-check:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why we need that health check?

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