Skip to content

docs(#3333): warn about runOnce key collisions in multi-project workspaces - #3334

Open
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/3333-runonce-key-scoping-docs
Open

docs(#3333): warn about runOnce key collisions in multi-project workspaces#3334
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/3333-runonce-key-scoping-docs

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

Add guidance to the test.runOnce section in AGENTS.md warning about key collision when the same spec file runs in multiple Playwright projects. A literal runOnce key causes the first project's flag to satisfy the second, silently skipping configure() + deploy() and leaving no RHDH deployment in the second namespace. All tests in the second project then fail with misleading UI errors.

Documents the prescribed pattern of scoping keys by namespace (e.g. workspace-setup-${rhdh.deploymentConfig.namespace}), which mirrors what deploy() does internally. Includes correct and incorrect code examples and references PR #3318 as the case study.

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


Closes #3333

Post-script verification

  • Branch is not main/master (agent/3333-runonce-key-scoping-docs)
  • Secret scan passed (gitleaks — 57861ffa32bea8c1678110273cb1fab52632ec4a..HEAD)
  • Pre-commit hooks passed (authoritative run on runner)
  • Tests ran inside sandbox

…paces

Add guidance to the test.runOnce section in AGENTS.md warning about
key collision when the same spec file runs in multiple Playwright
projects. A literal runOnce key causes the first project's flag to
satisfy the second, silently skipping configure() + deploy() and
leaving no RHDH deployment in the second namespace. All tests in
the second project then fail with misleading UI errors.

Documents the prescribed pattern of scoping keys by namespace
(e.g. `workspace-setup-${rhdh.deploymentConfig.namespace}`),
which mirrors what deploy() does internally. Includes correct and
incorrect code examples and references PR #3318 as the case study.

Closes #3333

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

openshift-ci Bot commented Aug 19, 2026

Copy link
Copy Markdown

Hi @fullsend-ai-coder[bot]. Thanks for your PR.

I'm waiting for a redhat-developer member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@sonarqubecloud

Copy link
Copy Markdown

@github-actions github-actions Bot added the non-workspace-changes PR changes files outside workspace directories label Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ok-to-test non-workspace-changes PR changes files outside workspace directories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add AGENTS.md guidance for test.runOnce key scoping in multi-project workspaces

0 participants