Skip to content

feat: auto-derive skip tags from JOB_NAME in run-e2e.sh#2281

Merged
jrichter1 merged 4 commits into
redhat-developer:mainfrom
subhashkhileri:feat/skip-tags-from-job-name
Apr 21, 2026
Merged

feat: auto-derive skip tags from JOB_NAME in run-e2e.sh#2281
jrichter1 merged 4 commits into
redhat-developer:mainfrom
subhashkhileri:feat/skip-tags-from-job-name

Conversation

@subhashkhileri

@subhashkhileri subhashkhileri commented Apr 20, 2026

Copy link
Copy Markdown
Member

JIRA : https://redhat.atlassian.net/browse/RHIDP-13048

Summary

  • Auto-derive Playwright skip tags from OpenShift CI JOB_NAME in run-e2e.sh
  • Extracts job suffix from JOB_NAME (e.g., ocp-helm, ocp-helm-nightly) and injects --grep-invert "@skip-<suffix>" into Playwright args
  • Allows test authors to skip tests in specific CI jobs using standard Playwright tags (e.g., { tag: "@skip-ocp-helm-nightly" })
  • Works from workspace dirs too via manual --grep-invert

Documentation : redhat-developer/rhdh-e2e-test-utils#88

How it works

JOB_NAME suffix Derived tag
e2e-ocp-helm @skip-ocp-helm
e2e-ocp-helm-nightly @skip-ocp-helm-nightly
e2e-ocp-operator @skip-ocp-operator
e2e-ocp-operator-nightly @skip-ocp-operator-nightly

🤖 Generated with Claude Code

Derive Playwright skip tags from OpenShift CI JOB_NAME and inject
--grep-invert so tests can opt out of specific CI jobs using standard
Playwright tags (e.g., { tag: "@skip-ocp-helm-nightly" }).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@subhashkhileri subhashkhileri requested review from a team, gashcrumb and kadel as code owners April 20, 2026 10:32
subhashkhileri and others added 3 commits April 20, 2026 16:08
Append (?!-) to the grep-invert pattern so @skip-ocp-helm only matches
that exact tag, not @skip-ocp-helm-nightly. This lets tests skip in
PR check without accidentally skipping in nightly, and vice versa.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@subhashkhileri

Copy link
Copy Markdown
Member Author

/test ?

@subhashkhileri

Copy link
Copy Markdown
Member Author

/test e2e-ocp-helm-nightly

@subhashkhileri subhashkhileri force-pushed the feat/skip-tags-from-job-name branch from b9cfbbf to 8169565 Compare April 20, 2026 11:18
@sonarqubecloud

Copy link
Copy Markdown

@subhashkhileri

Copy link
Copy Markdown
Member Author

Documentation : redhat-developer/rhdh-e2e-test-utils#88

@github-actions github-actions Bot added the non-workspace-changes PR changes files outside workspace directories label Apr 20, 2026
@jrichter1

Copy link
Copy Markdown
Member

/publish

@github-actions

Copy link
Copy Markdown
Contributor

PR action (/publish) cancelled: PR doesn't touch only 1 workspace.

@openshift-ci openshift-ci Bot added the lgtm label Apr 21, 2026
@jrichter1 jrichter1 merged commit f3d542f into redhat-developer:main Apr 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm non-workspace-changes PR changes files outside workspace directories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants