Skip to content

Add common script to setup minikube for Playwright and system tests#2696

Merged
MikeEdgar merged 6 commits into
streamshub:mainfrom
MikeEdgar:minikube-init
Jul 1, 2026
Merged

Add common script to setup minikube for Playwright and system tests#2696
MikeEdgar merged 6 commits into
streamshub:mainfrom
MikeEdgar:minikube-init

Conversation

@MikeEdgar

@MikeEdgar MikeEdgar commented Jun 29, 2026

Copy link
Copy Markdown
Member

Add common script to setup minikube for Playwright and system tests in support of #2682.

In addition to adding the script, this PR modifies the playwright-tests and systemtests workflows to use it. Note, that systemtests will continue to use the version on main prior to this PR being merged. Once merged, future PRs will execute the systemtests workflow from the PR instead of from main. The Pre-Systemtests workflow will continue to execute from main, which is intended for security.

🚧 ⚠️ This is known to only work on Linux at the moment.

  1. Run minikube setup

    ./systemtests/scripts/setup-minikube.sh
  2. Run test(s)

    CONSOLE_CLUSTER_DOMAIN="$(minikube ip).nip.io" mvn -pl systemtests verify -DskipSTs=false -Dit.test=MessagesST

All commands above are from the project root.

@MikeEdgar MikeEdgar force-pushed the minikube-init branch 8 times, most recently from feaaaff to 23a15e1 Compare June 29, 2026 19:18
Comment thread .github/workflows/systemtests.yml Fixed
@MikeEdgar

Copy link
Copy Markdown
Member Author

/systemtests run

@streamshub-bot

Copy link
Copy Markdown

🏃 System tests run started️ 🏃

Build phase succeeded. Triggering systemtests.

Used parameters

  • TESTCASE:
  • PROFILE:
  • INSTALL_TYPE: olm
  • RETRY_COUNT: 0
  • ENVS:

@MikeEdgar MikeEdgar marked this pull request as ready for review June 30, 2026 14:06
@MikeEdgar MikeEdgar added this to the 0.13.0 milestone Jun 30, 2026
@MikeEdgar MikeEdgar requested a review from a team June 30, 2026 14:11

@tomncooper tomncooper left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this is a good move. It would be good to continue this trend with the running of the system/playwrite tests so they could be run locally or in CI with a single command.

I ran the script locally on my Fedora 44 box with Minikube 1.38.1 and it completed successfully. I had a couple of suggested improvements.

My main question is why you didn't use minikube image load ?

Comment thread systemtests/scripts/setup-minikube.sh Outdated
Comment thread .github/workflows/systemtests.yml Outdated
Comment thread systemtests/scripts/setup-minikube.sh
Comment thread systemtests/scripts/setup-minikube.sh Outdated
Comment thread systemtests/scripts/setup-minikube.sh Outdated
Comment thread systemtests/scripts/setup-minikube.sh
Comment thread systemtests/scripts/setup-minikube.sh Outdated
Comment thread .github/workflows/systemtests.yml
@MikeEdgar MikeEdgar force-pushed the minikube-init branch 2 times, most recently from 33bb1e5 to 16a56e6 Compare June 30, 2026 19:27
@MikeEdgar MikeEdgar requested a review from tomncooper June 30, 2026 19:58

@tomncooper tomncooper left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, just a couple of nits/suggestions.

My only thought was do you need to also delete the old .github/actions/setup-minikube/action.yml?

Comment thread systemtests/scripts/setup-minikube.sh Outdated
Comment thread .github/workflows/systemtests.yml
Comment thread systemtests/scripts/setup-minikube.sh
MikeEdgar and others added 6 commits July 1, 2026 08:02
Signed-off-by: Michael Edgar <medgar@redhat.com>
Signed-off-by: Michael Edgar <medgar@redhat.com>
Signed-off-by: Michael Edgar <medgar@redhat.com>
Signed-off-by: Michael Edgar <medgar@redhat.com>
Signed-off-by: Michael Edgar <medgar@redhat.com>
Signed-off-by: Michael Edgar <medgar@redhat.com>
Co-authored-by: Thomas Cooper <code@tomcooper.dev>
@MikeEdgar

Copy link
Copy Markdown
Member Author

@tomncooper your latest suggestions are applied in the final commit. I'll merge the PR once the CI passes.

@sonarqubecloud

sonarqubecloud Bot commented Jul 1, 2026

Copy link
Copy Markdown

@MikeEdgar MikeEdgar merged commit b619367 into streamshub:main Jul 1, 2026
8 checks passed
@MikeEdgar MikeEdgar deleted the minikube-init branch July 1, 2026 13:26
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.

4 participants