Skip to content

Conversation

@etmurasaki
Copy link
Contributor

@etmurasaki etmurasaki commented Dec 9, 2025

Creation of 2 claude slash commands:
/cypress-setup and /cypress-run

When running /cypress-setup, it validates the pre-reqs and opens a new terminal to prepare it with all cypress variables needed, such as base URL, credentials, kubeconfig etc.
Then /cypress-run will print to you all available commands for you to copy and paste in the opened terminal you had.

This way, will make claude available to perform other things instead of running and controlling the testing execution.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 9, 2025
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Dec 9, 2025
@openshift-ci-robot
Copy link

openshift-ci-robot commented Dec 9, 2025

@etmurasaki: This pull request references OU-1082 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 task to target the "4.21.0" version, but no target version was set.

Details

In response to this:

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.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 9, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 9, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: etmurasaki

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 Dec 9, 2025
@etmurasaki etmurasaki marked this pull request as ready for review December 9, 2025 18:36
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 9, 2025
@openshift-ci openshift-ci bot requested review from kyoto and zhuje December 9, 2025 18:36
@openshift-ci-robot
Copy link

openshift-ci-robot commented Dec 9, 2025

@etmurasaki: This pull request references OU-1082 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 task to target the "4.21.0" version, but no target version was set.

Details

In response to this:

Creation of 2 claude slash commands:
/cypress-setup and /cypress-run

When running /cypress-setup, it validates the pre-reqs and opens a new terminal to prepare it with all cypress variables needed, such as base URL, credentials, kubeconfig etc.
Then /cypress-run will print to you all available commands for you to copy and paste in the opened terminal you had.

This way, will make claude available to perform other things instead of running and controlling the testing execution.

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.

@etmurasaki
Copy link
Contributor Author

etmurasaki commented Dec 10, 2025

e2e-monitoring results run successfully with a known bug OU-1118 not merged in this PR
image

/override pull-ci-openshift-monitoring-plugin-main-e2e-monitoring

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 10, 2025

@etmurasaki: Overrode contexts on behalf of etmurasaki: ci/prow/e2e-monitoring

Details

In response to this:

e2e-monitoring results run successfully with a known bug OU-1118 not merged in this PR
image

/override pull-ci-openshift-monitoring-plugin-main-e2e-monitoring

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.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 10, 2025

@etmurasaki: 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.


---

## Execution Flow
Copy link
Contributor

Choose a reason for hiding this comment

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

For my this failed as it was trying to execute the command in the claude code terminal, instead of opening a new one. Maybe it will be better to be more explicit that a new terminal should be opened and the script should be executed there. Also maybe we don't need to embeed the whole script in the command but in a different folder and point the command to it.


## ⚡ Quick Start - Headless

**Fast Smoke Test (1-2 min, excludes slow/demo/flaky):**
Copy link
Contributor

Choose a reason for hiding this comment

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

For convenienve, we can tell claude to allow the user to select from this list of tests, and execute the appropriate command based on the selection

Copy link
Contributor

@DavidRajnoha DavidRajnoha left a comment

Choose a reason for hiding this comment

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

Besides the comments in the code, I have two questions:

  1. What is the validation in the cypress-setup exactly performing?
  2. How do you pass the variables (base url, kubeadmin passwd,...) to it? Should you include them when running the command?


---

## 🎯 Execution Modes
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we discuss the inclussion of the AI emojis in the docs / commands? Do we want them? I would vote for no, I don't think they add significant value / readability improvement and are visual clutter.


---

## 🎪 Specific Test Files - Headless
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the specific test files be here? I see a huge risk of this being inconsistent when things start changing and we won't update this.


echo ""
echo "Configured values:"
echo " CYPRESS_BASE_URL=$CYPRESS_BASE_URL"
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the reason of this and following changes? What should they achieve?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

initially I was not using this shell, but then started using it during the setup command and noticed it was not working in my mac due to bash version... with this solved, I got other error
./configure-env.sh: line 545: CYPRESS_BASE_URL: unbound variable
so I started asking claude to solve it and the intention of these both slash commands were to setup a new terminal window (that I am mostly using claude code in the terminal inside cursor/vscode), and execute there, to free up the terminal/claude code from controlling and executing it inside the IDE...


# [3/4] Create setup script
echo "[3/4] Creating setup script..."
TEMP_SCRIPT="/tmp/cypress-setup-$$.sh"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a need to generate those scripts on every run instead of having them defined as .sh file and referencing that? In my opinion it makes quite complicated to understand the scope/function of this setup-command.sh

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.

4 participants