Roll back default Playwright CLI pin to satisfy npm release-age cooldown#42877
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Unpin @playwright/cli version to fix install failure
Roll back default Playwright CLI pin to satisfy npm release-age cooldown
Jul 2, 2026
Contributor
🤖 PR Triage — Run §28572743533
|
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request rolls back the default @playwright/cli pin used by tools.playwright.mode: cli workflows so npm installs remain satisfiable under the existing NPM_CONFIG_MIN_RELEASE_AGE=3 cooldown policy, and adds tests to prevent future regressions.
Changes:
- Roll back
DefaultPlaywrightCLIVersionfrom0.1.15to0.1.14. - Add a constants-level guard test to ensure the pinned default is older than the 3-day cooldown window.
- Add workflow-level test coverage and recompile affected
.lock.ymlworkflows / golden output to reference0.1.14.
Show a summary per file
| File | Description |
|---|---|
| pkg/constants/version_constants.go | Roll back default Playwright CLI version and document cooldown constraint. |
| pkg/constants/version_constants_test.go | Add a time-based regression guard ensuring the default pin is outside the cooldown window. |
| pkg/workflow/playwright_cli_test.go | Add a focused unit test validating CLI-mode install steps use the default version and include cooldown env + skills install. |
| pkg/workflow/testdata/TestWasmGolden_CompileFixtures/playwright-cli-mode.golden | Update compiled golden output to @playwright/cli@0.1.14. |
| .github/workflows/weekly-editors-health-check.lock.yml | Recompiled workflow to install @playwright/cli@0.1.14. |
| .github/workflows/visual-regression-checker.lock.yml | Recompiled workflow to install @playwright/cli@0.1.14. |
| .github/workflows/smoke-copilot.lock.yml | Recompiled workflow to install @playwright/cli@0.1.14. |
| .github/workflows/smoke-copilot-arm.lock.yml | Recompiled workflow to install @playwright/cli@0.1.14. |
| .github/workflows/smoke-copilot-aoai-entra.lock.yml | Recompiled workflow to install @playwright/cli@0.1.14. |
| .github/workflows/smoke-copilot-aoai-apikey.lock.yml | Recompiled workflow to install @playwright/cli@0.1.14. |
| .github/workflows/smoke-codex.lock.yml | Recompiled workflow to install @playwright/cli@0.1.14. |
| .github/workflows/smoke-claude.lock.yml | Recompiled workflow to install @playwright/cli@0.1.14. |
| .github/workflows/slide-deck-maintainer.lock.yml | Recompiled workflow to install @playwright/cli@0.1.14. |
| .github/workflows/docs-noob-tester.lock.yml | Recompiled workflow to install @playwright/cli@0.1.14. |
| .github/workflows/daily-multi-device-docs-tester.lock.yml | Recompiled workflow to install @playwright/cli@0.1.14. |
| .github/workflows/daily-model-inventory.lock.yml | Recompiled workflow to install @playwright/cli@0.1.14. |
| .github/workflows/cloclo.lock.yml | Recompiled workflow to install @playwright/cli@0.1.14. |
| .github/workflows/blog-auditor.lock.yml | Recompiled workflow to install @playwright/cli@0.1.14. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 18/18 changed files
- Comments generated: 2
- Review effort level: Low
|
|
||
| require.Len(t, steps, 2, "expected npm install step plus skills install step") | ||
|
|
||
| installStep := strings.Join(steps[0], "\n") |
| assert.Contains(t, installStep, "NPM_CONFIG_MIN_RELEASE_AGE: '3'") | ||
| assert.Contains(t, installStep, "timeout-minutes: 10") | ||
|
|
||
| skillsStep := strings.Join(steps[1], "\n") |
Contributor
|
🎉 This pull request is included in a new release. Release: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@playwright/cli@0.1.15was pinned as the default while Playwright CLI installs still enforceNPM_CONFIG_MIN_RELEASE_AGE=3, making the install step unsatisfiable for newly published versions and hard-failing all CLI-mode workflows before agent startup. This change restores a default that can resolve under the existing cooldown policy and adds a guard against repeating the mismatch.Default version rollback
DefaultPlaywrightCLIVersionfrom0.1.15to0.1.14inpkg/constants/version_constants.go.Regression guard for version age
Playwright CLI generation coverage
NPM_CONFIG_MIN_RELEASE_AGE: '3',Compiled workflow updates
.lock.ymlworkflows so generated install steps now reference@playwright/cli@0.1.14.