Commit Graph

48 Commits

Author SHA1 Message Date
Will Chen
7cf8317f55 Fix Playwright report comments on forked PRs (#1975)
Some checks failed
CI / test (map[image:macos-latest name:macos], 1, 4) (push) Has been cancelled
CI / test (map[image:macos-latest name:macos], 2, 4) (push) Has been cancelled
CI / test (map[image:macos-latest name:macos], 3, 4) (push) Has been cancelled
CI / test (map[image:macos-latest name:macos], 4, 4) (push) Has been cancelled
CI / test (map[image:windows-latest name:windows], 1, 4) (push) Has been cancelled
CI / test (map[image:windows-latest name:windows], 2, 4) (push) Has been cancelled
CI / test (map[image:windows-latest name:windows], 3, 4) (push) Has been cancelled
CI / test (map[image:windows-latest name:windows], 4, 4) (push) Has been cancelled
CI / merge-reports (push) Has been cancelled
## Summary
- update the Playwright summary script to support workflow_run events
and optional comment skipping
- stop the CI workflow from posting Playwright comments directly and
only generate the summary
- add a workflow_run-based commenter workflow that downloads artifacts
and posts results for PRs, including forks

## Testing
- not run (workflow changes only)


------
[Codex
Task](https://chatgpt.com/codex/tasks/task_e_694340b2da6083278e42db076ea89eba)

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Moves Playwright commenting to a workflow_run job that downloads
artifacts and posts/updates the summary; CI now only uploads the report,
and the summary script improves PR/run detection and OS bucketing.
> 
> - **Workflows**:
> - **CI (`.github/workflows/ci.yml`)**: Remove in-job PR comment step;
keep merging reports and uploading `playwright-report` artifact.
> - **New (`.github/workflows/playwright-comment.yml`)**: `workflow_run`
on CI to download artifacts (`html-report--attempt-*`, `blob-report-*`)
and run `scripts/generate-playwright-summary.js` to comment on the PR
(supports forks).
> - **Script (`scripts/generate-playwright-summary.js`)**:
> - Add PR detection for `workflow_run` and `PR_NUMBER`; use
`PLAYWRIGHT_RUN_ID` for report link.
> - Improve OS detection/bucketing (auto-detect from attachments/stacks,
sensible defaults, lazy bucket creation).
> - Safer fallbacks when no artifacts; always write job summary; skip PR
comment when no PR is detected.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
8428f7ad6eb0671571cb4ae0e473434ffb1cf8d1. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->



<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Fixes Playwright report comments on forked PRs by moving comment posting
to a workflow_run job. CI now only uploads the reports; a separate
workflow posts or updates the PR comment using artifacts.

- **Bug Fixes**
- Added Playwright Report Comment workflow (workflow_run on CI) to
download artifacts and comment on PRs from forks.
  - Removed PR comment step from CI; CI only uploads Playwright reports.
- Updated summary script to support workflow_run, auto-detect the PR
number, use PLAYWRIGHT_RUN_ID for links, and improve OS
detection/bucketing.

<sup>Written for commit 8428f7ad6eb0671571cb4ae0e473434ffb1cf8d1.
Summary will update automatically on new commits.</sup>

<!-- End of auto-generated description by cubic. -->
2025-12-17 17:30:58 -08:00
Will Chen
47992f48dd Leave GitHub comment with playwright results (#1965)
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> Posts a per-OS Playwright test summary as a PR comment by adding a
JSON reporter and a CI step to generate and publish the results.
> 
> - **CI / Reporting**
> - Add permissions and a GitHub Script step in
`.github/workflows/ci.yml` to generate and post/update a Playwright test
summary comment after merging shard reports.
>   - Upload merged HTML report artifact and link to full run.
> - **Playwright config**
> - Update `merge.config.ts` to add JSON reporter output to
`playwright-report/results.json` alongside HTML.
> - **New Script**
> - Add `scripts/generate-playwright-summary.js` to parse Playwright
JSON, compute per-OS (macOS/Windows) pass/fail/flaky/skipped counts,
list top failures/flaky tests, and write both PR comment and job
summary.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
d5ca6987f65e9a7063533960382516af89e67391. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->





<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Posts Playwright test results as a PR comment with a per-OS summary,
flaky test counts, and top failures, improving CI visibility across
macOS and Windows. Adds a JSON reporter and a GitHub Script step that
links to the full report.

- **New Features**
  - Adds JSON reporter output to playwright-report/results.json.
- Adds a script to parse results, include flaky tests, post/update the
PR comment, and write the job summary.
- Updates CI workflow permissions and runs the summary script after
report merge.

<sup>Written for commit d5ca6987f65e9a7063533960382516af89e67391.
Summary will update automatically on new commits.</sup>

<!-- End of auto-generated description by cubic. -->
2025-12-15 23:24:08 -08:00
Will Chen
20866d5d8c Update macos-intel to use macos-15 (#1912)
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> Updates the release workflow matrix to use the `macos-15-intel` runner
for `macos-intel` builds.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
37416cf576675ea399dd84cf1e50a2511b768de8. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Switch the macos-intel release job to the macos-15-intel GitHub Actions
runner. This updates CI to the macOS 15 Intel image and keeps our matrix
consistent with current supported runners.

<sup>Written for commit 37416cf576675ea399dd84cf1e50a2511b768de8.
Summary will update automatically on new commits.</sup>

<!-- End of auto-generated description by cubic. -->
2025-12-09 13:22:55 -08:00
Will Chen
bc79a3f079 Speculative: use sonnet 4 for triage bots (#1419)
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> <sup>[Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) is
generating a summary for commit
13f4cb7d6c59816719a09ae68572e489b05d4820. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
2025-09-30 23:02:33 -07:00
Will Chen
aa6a0649bc Triage bot (#1417)
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> Adds an issue triage workflow and upgrades the duplicate-detection
workflow to a newer Anthropic model.
> 
> - **CI Workflows**:
>   - **New `triage-issues.yml`**:
> - Runs on new issues; installs `opencode` and labels non-English
(`issue/lang`) and incomplete (`issue/incomplete`) reports, posting
guidance comments.
>   - **`duplicate-issues.yml`**:
> - Updates `opencode` model to `anthropic/claude-sonnet-4-5-20250929`
for duplicate detection.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
11a89c6cfec1691c68837d599b8e3fc6888df09e. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
2025-09-30 22:41:02 -07:00
Will Chen
86cc50c50c Switch back to anthropic (#1135) 2025-08-29 21:35:09 -07:00
Will Chen
acda9e2e5b gh prompt v2 (#1133) 2025-08-29 21:29:59 -07:00
Will Chen
227d7340bf improve prompt (#1131) 2025-08-29 21:26:38 -07:00
Will Chen
45ff05c7fc Switch to OpenAI GPT-5 bot (cheaper) (#1129)
<!-- This is an auto-generated description by cubic. -->

## Summary by cubic
Switches the duplicate-issues GitHub Action from
anthropic/claude-sonnet-4-20250514 to openai/gpt-5 to reduce cost.
Updates the workflow to use OPENAI_API_KEY instead of ANTHROPIC_API_KEY.

<!-- End of auto-generated description by cubic. -->
2025-08-29 21:17:35 -07:00
Will Chen
c6342350b4 Add dupe issue bot (#1120)
<!-- This is an auto-generated description by cubic. -->

## Summary by cubic
Adds a GitHub Action to detect and comment on potential duplicate issues
when a new issue is opened. This reduces triage time and keeps issue
lists clean.

- **New Features**
- Adds .github/workflows/duplicate-issues.yml triggered on issues:
opened.
- Uses opencode with Anthropic Claude Sonnet 4 to scan existing issues
and comment with links if duplicates are likely; stays silent otherwise.
- Runs with minimal permissions; allows gh issue commands and denies
webfetch.

- **Migration**
- Create the ai-bots environment and add the ANTHROPIC_API_KEY secret
(GITHUB_TOKEN is provided by GitHub).

<!-- End of auto-generated description by cubic. -->
2025-08-28 22:07:45 -07:00
Will Chen
60b1f509e6 increase mem size to avoid OOM (#942) 2025-08-14 14:21:28 -07:00
Will Chen
8ef84285fc Shard E2E tests (#941) 2025-08-14 13:48:27 -07:00
Will Chen
e4b763ac6d Bump SSM (#695)
Fix broken Windows release:

https://github.com/dyad-sh/dyad/actions/runs/16477531115/job/46583477855#step:9:11
2025-07-23 10:58:20 -07:00
Will Chen
62de7377c1 Bump up max old space size (#680)
Getting OOMs on Mac builds for release workflow:
https://github.com/dyad-sh/dyad/actions/runs/16395872602/job/46328291961
2025-07-21 11:27:25 -07:00
Will Chen
dd4987a9ac Verify release (#679)
Context: https://github.com/electron/forge/issues/3965
2025-07-21 11:07:53 -07:00
Will Chen
9694e4a2e8 Add Windows ARM to CI (#430) 2025-06-17 16:37:17 -07:00
Will Chen
d7f7f15afd use npm ci (#383) 2025-06-10 14:59:36 -07:00
Will Chen
e7941bc6f7 cache nextjs template (#381) 2025-06-10 12:46:13 -07:00
Will Chen
89f509fcfa Cache pnpm scaffold deps and postfix playwright artifacts (#380) 2025-06-10 11:53:20 -07:00
Will Chen
ac98a52ab1 Fix unit test & run in CI (#372) 2025-06-09 15:23:10 -07:00
Will Chen
b8f7490288 Stabilize E2E test by alphabetically sorting files for context (#321) 2025-06-03 17:58:59 -07:00
Will Chen
7235eab227 Make CI run cross-platform (#295) 2025-06-03 13:04:16 -07:00
Will Chen
8a743ca4f5 LM studio e2e test (#297) 2025-05-31 23:04:28 -07:00
Will Chen
509e044137 Boilerplate free tests (#277) 2025-05-28 22:55:54 -07:00
Will Chen
644012c9a5 Simple playwright e2e test (#234) 2025-05-23 10:44:52 -07:00
Will Chen
6b4620ca98 Pin to ubuntu v22.04 for linux release (#150) 2025-05-12 23:34:03 -07:00
Will Chen
cb9ffcc550 Add presubmit checks to CI (#113) 2025-05-08 17:28:48 -07:00
Will Chen
d0c410859d clean-up release scripts (#86) 2025-05-05 15:12:46 -07:00
Will Chen
60b403e904 windows code-sign (follow electron-fiddle) 2025-04-29 22:00:48 -07:00
Will Chen
c6b8f77448 Try #6: windows code signing 2025-04-29 21:30:25 -07:00
Will Chen
75b5ba257d Try 4: windows config (#53) 2025-04-29 16:48:39 -07:00
Will Chen
9999ab6bf7 try 3: windows sign config (#52) 2025-04-29 16:44:31 -07:00
Will Chen
14a11cc3d2 Code sign win (#50)
* try windows signing

* bump to v0.3.0
2025-04-29 16:12:24 -07:00
Will Chen
9b94122672 Support Linux release (0.2.5-beta.2) (#30) 2025-04-28 13:22:02 -07:00
Will Chen
901291bc70 Skip linux for now 2025-04-23 16:46:13 -07:00
Will Chen
7402f33b4a Add build for linux 2025-04-23 15:29:00 -07:00
Will Chen
1fac096233 Add macos-13 as a builder for release 2025-04-23 14:55:45 -07:00
Will Chen
badded4efd Sequentialize release 2025-04-15 15:51:40 -07:00
Will Chen
caa9a1566e Fix macOS release by adding MACOS_CERT_PASSWORD 2025-04-15 00:07:17 -07:00
Will Chen
a04bb5f9b7 Give env access to MACOS_CERT_P12 for release step 2025-04-14 23:59:01 -07:00
Will Chen
7d0857c10d Add macOS cert for release workflow 2025-04-14 23:56:11 -07:00
Will Chen
b8d50a17f2 setup macos release 2025-04-14 23:30:34 -07:00
Will Chen
086adc9955 infra(gha): fix ci workflow 2025-04-14 23:22:23 -07:00
Will Chen
d527bb0095 Add minimal CI GitHub action 2025-04-14 23:18:11 -07:00
Will Chen
472f7883f1 fix release.yml github token spelling 2025-04-11 10:56:39 -07:00
Will Chen
43b31aa299 release.yml - give permissions 2025-04-11 10:36:04 -07:00
Will Chen
e0a0212934 Just try release windows for now 2025-04-11 10:21:34 -07:00
Will Chen
43f67e0739 Initial open-source release 2025-04-11 09:38:16 -07:00