Skip to content

4K_INT-43: initial config for playwright #71

Open
rigoucr wants to merge 7 commits intomainfrom
feature/POTS-000-integrate-playwright
Open

4K_INT-43: initial config for playwright #71
rigoucr wants to merge 7 commits intomainfrom
feature/POTS-000-integrate-playwright

Conversation

@rigoucr
Copy link
Contributor

@rigoucr rigoucr commented Jan 16, 2026

@rigoucr rigoucr changed the title POTS-000: initial config for playwright 4K_INT-43: initial config for playwright Jan 23, 2026
@rigoucr rigoucr self-assigned this Mar 20, 2026
@rigoucr
Copy link
Contributor Author

rigoucr commented Mar 20, 2026

@codex please reviews

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 61e7ca316d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +558 to +561
- approve-playwright-vrt-test:
type: approval
requires:
- deploy_to_pantheon

Choose a reason for hiding this comment

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

P1 Badge Guard the VRT approval with the VRT flag

approve-playwright-vrt-test is always added to build-deploy-pantheon, even though run-playwright-vrt-tests defaults to false. CircleCI approval jobs pause the workflow until someone approves or cancels them, so Pantheon PR builds that are not using VRT will still sit in Needs approval/pending instead of reaching a terminal success state; that is a bad default for an opt-in job.

Useful? React with 👍 / 👎.

Comment on lines 565 to 567
- approve_deploy_to_test:
type: approval
requires:

Choose a reason for hiding this comment

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

P1 Badge Require Playwright checks before promoting to test

On main/master, approve_deploy_to_test only requires deploy_to_pantheon, so a user can approve promotion as soon as the multidev deploy finishes. If playwright-e2e-test is still running or has failed (and likewise playwright-vrt-test when enabled), CircleCI will not block the test/live promotion because those jobs are not listed in requires, which defeats the new pre-deploy validation step.

Useful? React with 👍 / 👎.

docker:
- image: quay.io/pantheon-public/build-tools-ci:8.x-php<< pipeline.parameters.php-version >>
executor: playwright-executor
parallelism: 4

Choose a reason for hiding this comment

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

P2 Badge Shard the Playwright suite before enabling parallelism

This job is fanned out with parallelism: 4, but the test command later in the job is still a plain npx playwright test --grep-invert "@vrt" (and playwright-vrt-test repeats the same pattern with npm run vrt:ci). CircleCI's parallelism docs and Playwright's sharding docs both require an explicit shard/split command here; otherwise each executor reruns the entire suite, so enabling these jobs multiplies runtime and credits by four instead of speeding the tests up.

Useful? React with 👍 / 👎.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e0caebdacb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +383 to +385
docker:
- image: quay.io/pantheon-public/build-tools-ci:8.x-php<< pipeline.parameters.php-version >>
executor: playwright-executor

Choose a reason for hiding this comment

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

P0 Badge Use a single executor type in Playwright jobs

playwright-e2e-test defines both a docker stanza and an executor, but CircleCI requires exactly one executor type per job. This makes the config invalid at compile/validation time, so the workflow cannot start; the same mixed definition is repeated in playwright-vrt-test, so fixing only one job is insufficient.

Useful? React with 👍 / 👎.

fi
- run: |
if [ -n "$BASIC_USER" ] && [ -n "$BASIC_PASS" ]; then
echo "export REMOTE_ENV_BASE_URL=https://${BASIC_USER}:${BASIC_PASS}@${TERMINUS_ENV}-${TERMINUS_SITE}.pantheonsite.io/" >> $BASH_ENV

Choose a reason for hiding this comment

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

P2 Badge Avoid raw BASIC_PASS interpolation in wake URL

When BASIC_USER/BASIC_PASS are set, this builds REMOTE_ENV_BASE_URL by embedding credentials directly in the URL. Any reserved character in the password (for example @, :, /, #, %) can corrupt URL parsing and cause the curl wake-up step to fail, which blocks E2E execution on password-protected environments.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant