Skip to content

Commit 5c91ebd

Browse files
committed
Fix CI: invalid win build config and smoke-test binary-download race
Builds (all 3 OSes) failed electron-builder 26 schema validation: win.publisherName is no longer allowed on WindowsConfiguration (additionalProperties: false; it moved to the Windows signing config). Removed it — the app doesn't code-sign, so it had no effect. smoke_test timed out because the Electron binary was downloading during the test, exceeding the 60s timeout. Pre-download the binary in a dedicated CI step before running the test, and raise the Playwright timeout to 120s for cold-runner launch margin. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NfJxwvs65kVRNnVym5UsYe
1 parent 508f74b commit 5c91ebd

4 files changed

Lines changed: 15 additions & 2 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
- name: Install dependencies
1818
run: npm ci
1919

20+
- name: Pre-download Electron binary
21+
run: node node_modules/electron/install.js
22+
2023
- name: Run Electron smoke test
2124
run: xvfb-run -a npm test
2225

‎docs/planning/PLANNING.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ Known limitations of this pass:
2222

2323
- **Not verified in this environment.** The Electron binary can't be downloaded in the planning sandbox (GitHub release download is 403-blocked; only the npm registry is reachable), so the app was never booted here. The smoke test parses and is discovered locally (`playwright test --list`) but its first *real* execution is in CI / on a dev machine. Transparent/frameless/shadowed window rendering and Tray-under-xvfb behavior are the specific things to watch on that first run.
2424

25+
### 2026-08-01 — CI failures fixed (PR #57)
26+
27+
First real CI run on PR #57 surfaced two issues, now fixed:
28+
29+
- **All 3 build jobs** failed schema validation: `win.publisherName` is invalid in electron-builder 26 (`WindowsConfiguration` is `additionalProperties: false`; `publisherName` moved to the Windows signing config). Removed it — the app doesn't code-sign, so it was a no-op anyway.
30+
- **smoke_test** timed out: the Electron binary was downloading *during* the test, racing the 60s timeout. Added a `node node_modules/electron/install.js` pre-download step before `npm test` and raised the Playwright timeout to 120s.
31+
32+
---
33+
2534
Follow-up not yet done: **prune stale branches** `imgbot` and `v1.2.0-patch` — `git push --delete` is 403-blocked by the managed git endpoint, so these need deleting via the GitHub UI. (`claude/project-overview-planning-w5yym2` was already gone; `test-suite` and `release` intentionally kept.) PR #36 (ImgBot) was closed.
2635

2736
## 1. What DropPoint is

‎package.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
"category": "Utility"
3939
},
4040
"win": {
41-
"publisherName": "Sudev Suresh Sreedevi",
4241
"target": [
4342
"zip",
4443
"nsis"

‎playwright.config.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ const { defineConfig } = require("@playwright/test");
77
module.exports = defineConfig({
88
testDir: "./test",
99
testMatch: "**/*.spec.js",
10-
timeout: 60_000,
10+
// Generous timeout: the first Electron launch on a cold CI runner can be
11+
// slow even with the binary pre-downloaded.
12+
timeout: 120_000,
1113
workers: 1,
1214
fullyParallel: false,
1315
reporter: "list",

0 commit comments

Comments
 (0)