Skip to content

chore(ci): 30-minute test budget and Playwright browser cache - #2284

Merged
tamirdresher merged 1 commit into
devfrom
squad2-ci-test-budget
Oct 23, 2026
Merged

tamirdresher merged 1 commit into
devfrom
squad2-ci-test-budget

Conversation

@tamirdresher

Copy link
Copy Markdown
Collaborator

What

Give the Squad CI test job a 30-minute budget (was 15) and cache Playwright browsers across runs.

Why

Two stacked-PR runs (#2278 662fb636, #2279 52c467cc) were cancelled by the job budget before vitest finished. Step timings from the cancelled attempts: setup took 10–12 min — one npx playwright install chromium --with-deps ran 10m33s (22s on a healthy runner, #2277) — leaving ~2.5 min of the budget for a ~6-minute suite. The suite size did not change; runner/CDN speed did.

How

  • timeout-minutes: 30 on the test job (comment explains why).
  • actions/cache (same pinned SHA already used in agentics-maintenance.yml) on ~/.cache/ms-playwright, keyed on runner.os + the installed Playwright version; on a cache hit only playwright install-deps chromium runs.
  • repo-health scope: .github/ only.

⚠️ Quick Check

  • No SDK/CLI source changed → skip-changelog

PR Readiness Checklist

  • Branch from dev, up to date, single intended change
  • Not draft; single commit
  • Workflow-only; test/ci/changelog-gate, standalone-release-workflow, ci-concurrency pass locally (gh-aw capacity tests need gh aw v0.91 locally — env, identical without this change)
  • Changeset N/A · Docs N/A · Exports N/A

Breaking Changes

None.

Waivers

None.

…browsers

Two stacked-PR runs were cancelled by the 15-minute job budget before vitest finished:
setup alone took 10-12 minutes (one Playwright chromium download ran 10m33s vs 22s on a
healthy runner) while the suite itself needs ~6 minutes. Cache ~/.cache/ms-playwright
keyed on the Playwright version (cache hit installs only OS deps) and raise the budget.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b822a455-fa94-49a2-9127-eee479ab954e
@tamirdresher tamirdresher added the skip-changelog Skip changelog enforcement for this PR label Oct 22, 2026
Copilot AI balanced review requested due to automatic review settings October 22, 2026 22:55
@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

🛫 PR Readiness Check

ℹ️ This comment updates on each push. Last checked: commit ff73c2f

PR Scope: 🔧 Infrastructure

⚠️ 1 item(s) to address before review

Status Check Details
✅ Single commit 1 commit — clean history
✅ Not in draft Ready for review
✅ Branch up to date Up to date with dev
❌ Copilot review No Copilot review yet — it may still be processing
✅ Changeset present No source files changed — changeset not required
✅ Scope clean No .squad/ or docs/proposals/ files
✅ No merge conflicts No merge conflicts
✅ Copilot threads resolved No Copilot review threads
✅ CI passing All checks passing

Files Changed (1 file, +19 −2)

File +/−
.github/workflows/squad-ci.yml +19 −2

Total: +19 −2


This check runs automatically on every push. Fix any ❌ items and push again.
See CONTRIBUTING.md and PR Requirements for details.

@github-actions

Copy link
Copy Markdown
Contributor

🟢 Impact Analysis — PR #2284

Risk tier: 🟢 LOW

📊 Summary

Metric Count
Files changed 1
Files added 0
Files modified 1
Files deleted 0
Modules touched 1

🎯 Risk Factors

  • 1 files changed (≤5 → LOW)
  • 1 module(s) touched (≤1 → LOW)

📦 Modules Affected

ci-workflows (1 file)
  • .github/workflows/squad-ci.yml

This report is generated automatically for every PR. See #733 for details.

@github-actions

Copy link
Copy Markdown
Contributor

🏗️ Architectural Review

Authoritative evidence: base-controlled pull_request_target reporter.

⚠️ Architectural review: 1 info.

Severity Category Finding Files
ℹ️ info template-sync Template files changed in .github/workflows/ but not in other template locations. If these templates should stay in sync, consider updating the others too. Changed: .github/workflows/, Unchanged: templates/, .squad-templates/, packages/squad-cli/templates/

Automated architectural review — informational only.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused workflow changes preserve browser and system-dependency installation on both cache paths, with no blocking issues identified.

No open issues 🎉

What changed in this PR

This workflow-only PR gives Squad CI more time to complete tests when setup is slow and reduces repeated Playwright browser downloads.

Changes:

  • Increases the test job timeout from 15 to 30 minutes.
  • Caches Playwright browsers by runner OS and installed Playwright version.
  • Preserves system-dependency installation on cache hits and full browser installation on misses.
File Description
.github/​workflows/​squad-ci.yml Extends the test budget and adds version-keyed Playwright browser caching.

Review effort: Balanced

@tamirdresher
tamirdresher merged commit 11a9921 into dev Oct 23, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Skip changelog enforcement for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants