-
Notifications
You must be signed in to change notification settings - Fork 211
chore(ci): decouple namespace from Playwright project name #3796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(ci): decouple namespace from Playwright project name #3796
Conversation
|
Skipping CI for Draft Pull Request. |
|
/review |
PR Reviewer Guide 🔍(Review updated until commit b8f81ec)Here are some key observations to aid the review process:
|
|
/test e2e-ocp-helm |
|
The image is available at: |
|
/test e2e-ocp-helm |
|
Consider updating documentation in |
d406e5b to
d7f5e75
Compare
|
The image is available at: |
625f91d to
4a1362b
Compare
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR TypeEnhancement Description
|
| Relevant files | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Enhancement | 12 files
| ||||||||||||||||||||||||
| Configuration changes | 1 files
| ||||||||||||||||||||||||
| Documentation | 4 files
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
|
The image is available at: |
4a1362b to
ec72a2b
Compare
b8f81ec to
2630c2f
Compare
|
/approve |
|
The image is available at: |
|
The image is available at: |
|
|
The image is available at: |
|
/test e2e-ocp-helm-nightly |
|
/override ci/prow/e2e-ocp-helm |
|
@zdrapela: zdrapela unauthorized: /override is restricted to Repo administrators, approvers in top level OWNERS file, and the following github teams:. 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 kubernetes-sigs/prow repository. |
|
/approve |
|
/assign albarbaro |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: albarbaro, gustavolira The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
ade4324
into
redhat-developer:main
|
@zdrapela: The following test failed, say
Full PR test history. Your PR dashboard. 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. |



Description
This PR refactors the CI pipeline scripts to decouple the Kubernetes namespace from the Playwright project name, centralizes project names in a single source of truth, and fixes status reporting for the
showcase-runtimetest scenario.This enables more flexible use of namespaces and test projects, allowing them to be configured and reused independently.
Changes
1. Decouple namespace from Playwright project name
Previously, the CI scripts implicitly tied the namespace name to the Playwright project name (e.g., namespace
showcase-ci-nightlyalways ran projectshowcase). This created unnecessary coupling and prevented flexible reuse of namespaces with different test projects.Now,
check_and_test()andrun_tests()accept an explicitplaywright_projectargument separate from the namespace, allowing:Tests are executed directly via
npx playwright test --project="${playwright_project}"following Playwright's recommended approach.2. Single source of truth for Playwright project names
Created
e2e-tests/playwright/projects.jsonas the single source of truth for all Playwright project names. This file is consumed by:playwright.config.ts) viae2e-tests/playwright/projects.tsimport.ibm/pipelines/playwright-projects.shwhich exports$PW_PROJECT_*environment variablesAll CI job scripts now use these variables (e.g.,
${PW_PROJECT_SHOWCASE}) instead of hardcoded strings.3. Fix status saving for showcase-runtime
Moved the deployment status tracking (
CURRENT_DEPLOYMENTincrement andsave_status_deployment_namespace) to the beginning ofrun_tests()instead of only incheck_and_test(). This ensures tests likeshowcase-runtimethat callrun_tests()directly correctly report their deployment status.4. Clean up e2e-tests/package.json
Removed redundant
*-nightlyand*-ci-nightlyyarn script aliases that were only used for CI naming conventions.Which issue(s) does this PR fix
showcase-runtimein the fine-grained CI reporterPR acceptance criteria
How to test changes / Special notes to the reviewer
Key decoupling: Namespace and Playwright project are now independent:
Files modified:
.ibm/pipelines/utils.sh- Core functions updated with explicit project argument.ibm/pipelines/jobs/*.sh- All job handlers updatede2e-tests/playwright/projects.json- Single source of truth for project namese2e-tests/playwright/projects.ts- TypeScript exports.ibm/pipelines/playwright-projects.sh- Shell script to load project names as env varse2e-tests/package.json- Removed redundant script aliasesissues.redhat.com/browse/RHIDP-11056