Skip to content

Track device descriptors by Playwright release - #9

Merged
smnandre merged 2 commits into
playwright-php:mainfrom
smnandre:chore/track-playwright-release
Sep 20, 2026
Merged

smnandre merged 2 commits into
playwright-php:mainfrom
smnandre:chore/track-playwright-release

Conversation

@smnandre

@smnandre smnandre commented Sep 20, 2026 •

Copy link
Copy Markdown
Member

The device catalog currently does not record which stable Playwright release produced it, and freshness checks cannot explain upstream changes. Refresh the catalog from Playwright 1.63.0, record that source release, and make the update and check commands resolve the latest stable Playwright version by default.

The commands now emit a semantic Markdown report covering added, removed and changed devices and property-level changes. Nightly CI detects stale generated data, while the manual update workflow exposes the same report and uploads the generated patch.

@smnandre smnandre added the enhancement New feature or request label Sep 20, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The newly analyzed updater passes a potentially false cURL handle to functions requiring CurlHandle, blocking strict static analysis.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: None

What changed in this PR

Tracks device descriptors by stable Playwright release and adds automated freshness reporting.

Changes:

  • Refreshes descriptors from Playwright 1.63.0 and records provenance.
  • Adds reusable update/check tooling with semantic reports and tests.
  • Adds nightly verification and patch-producing update workflows.
File Description
tests/​UpdateDevicesTest.php Tests version parsing, generation, and reports.
README.md Documents release tracking and update commands.
phpstan.dist.neon Adds scripts to static analysis.
docs/​DEVICES.md Records the source release.
data/​playwright-version.txt Stores Playwright 1.63.0.
data/​devices.php Refreshes generated user agents.
bin/​update-docs.php Uses recorded version in documentation.
bin/​update-devices.php Updates catalog, version, and report.
bin/​update-devices-functions.php Provides shared generation and diff helpers.
bin/​check-devices.php Verifies catalog freshness.
.gitignore Ignores downloaded source JSON.
.github/​workflows/​update.yaml Produces reports and update patches.
.github/​workflows/​Nightly.yaml Adds nightly freshness checks.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@smnandre
smnandre force-pushed the chore/track-playwright-release branch from 3a6331d to cf0445f Compare September 20, 2026 16:47
@smnandre
smnandre merged commit 4f9668d into playwright-php:main Sep 20, 2026
6 checks passed
@smnandre smnandre mentioned this pull request Sep 20, 2026
smnandre added a commit that referenced this pull request Sep 20, 2026
## [1.2.0] - 2026-09-20

### Changed
- Refreshed the 107-device catalog from Playwright 1.63.0 (#7, #9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants