paperclip/.github/scripts
Dotta 4ef6155aae
ci: harden paid runner browser and lock repair (#12829)
## Thinking Path

Paid cells now reuse the AWS image's system Chrome, but Playwright video
recording still resolves its revision-pinned FFmpeg helper from the
Playwright cache. Run 33875618534 proved Chrome qualification succeeds
and then failed before provider startup because that helper was absent.
The same run also exposed that generic lock repair can churn unrelated
package platform metadata, so the automated repair paths need
resolution-only regeneration rather than lockfile-only metadata refresh.

## What Changed

- install Playwright FFmpeg only on the AWS/system-Chrome path
- retry the small helper installation up to three times before provider
secrets are exposed
- keep the GitHub-hosted Chromium fallback unchanged
- bind static coverage to the exact FFmpeg step block and its pre-secret
ordering
- add pnpm `--resolution-only` to all four automated lock-repair paths
while retaining full transitive resolution
- require resolution-only repair in the shared workflow regression

The actual generated lockfile correction remains bot-owned by PR #12828
and is intentionally not committed here.

## Verification

- `node --test
.github/scripts/tests/lockfile-refresh-workflows.test.mjs`
- `actionlint -ignore SC2012` on all modified workflows
- focused Prettier checks
- `git diff --check`
- prior run 33875618534: system Chrome 151 qualified; missing Playwright
FFmpeg was the sole cell startup failure

## Risks

Low. The new network operation is limited to Playwright's pinned FFmpeg
payload, happens before paid credentials are exposed, and leaves the
hosted-runner path unchanged. Resolution-only is still a full
dependency-resolution pass, unlike lockfile-only, while avoiding
unrelated current-platform metadata churn.

## Model Used

GPT-5
2026-09-04 08:58:44 -05:00
..
tests ci: harden paid runner browser and lock repair (#12829) 2026-09-04 08:58:44 -05:00
check-pr-coauthors.mjs feat(commitperclip): surface the Co-Authored-By trailers a squash merge needs (#11498) 2026-08-21 16:44:26 -07:00
check-pr-dedup-search.mjs feat(commitperclip): widen linked-issue gate, add dedup-search check (#7632) 2026-06-05 22:10:52 -07:00
check-pr-dependencies.mjs feat(commitperclip): add automated PR quality and security gates (#6469) 2026-06-01 09:52:53 -07:00
check-pr-linked-issue.mjs fix(ci): make PR-template inline-description contract explicit (#10558) 2026-07-31 09:46:26 -07:00
check-pr-lockfile.mjs feat(commitperclip): add automated PR quality and security gates (#6469) 2026-06-01 09:52:53 -07:00
check-pr-migration-order.mjs ci: enforce migration order against PR target (#12433) 2026-08-28 08:47:22 -05:00
check-pr-release-bootstrap.mjs feat(release): bootstrap new npm packages with a placeholder publish (#11757) 2026-08-19 19:38:17 -07:00
check-pr-template.mjs feat(commitperclip): add automated PR quality and security gates (#6469) 2026-06-01 09:52:53 -07:00
check-pr-test-coverage.mjs fix(release): publish all remaining @paperclipai workspace packages from CI + guard unpublishable edges (#8365) 2026-06-19 19:11:20 -07:00
fetch-pr-files.mjs feat(commitperclip): add automated PR quality and security gates (#6469) 2026-06-01 09:52:53 -07:00
get-bot-token.mjs fix(commitperclip): stop security gate from hanging the review check (#7847) 2026-06-09 15:29:25 -07:00
run-quality-gates.mjs feat(commitperclip): surface the Co-Authored-By trailers a squash merge needs (#11498) 2026-08-21 16:44:26 -07:00