Repository navigation
Description
The Linux / Electron-Smoke PR check is failing on unrelated PRs because the smoke step hits its 20-minute limit (timeout-minutes: 20). The macOS and Windows workflows use the same limit. No test hangs or fails; the suite just takes about 20 minutes on the slower Linux runners:
##[error]The action '🧪 Run smoke tests (Electron)' has timed out after 20 minutes.
Three unrelated PR runs failed this way within about an hour on Oct 13: 38451868541, 38451559755 and 38448364543. In the first one, tests were passing steadily until the limit hit 17 seconds into the Accessibility suite. Passing runs from the same day took 19.4 and 19.7 minutes of step time, and a run on a faster machine took 14.3 minutes.
Where the time goes
Per-suite times below come from the GitHub Actions log timestamps of a passing run (38443277116, 19.7 minutes of step time):
| Area | Time | Share |
|---|---|---|
| Data Loss (insiders → insiders): 5 tests at ~41s each, because each test restarts the app | 211s | 18% |
| Agents Window (6 suites): Dev Container 115s, SSH Dev Container 77s, Codex 65s, local 58s, SDK sandbox 53s | 368s | 31% |
| Chat (4 suites): Sessions 83s, Sandbox 50s, Model Configuration 40s, Disabled 22s | 195s | 17% |
| Everything else (16 suites) | ~405s | 34% |
The biggest structural cost is starting and stopping the app for each suite. installAllHandlers launches a fresh app in each suite's before hook and stops it in after. Suites with a single quick test (Launch, Search, Multiroot, Quick Open, Policy Plumbing) still take 17–19s each. With about 24 suites launching, I estimate around 6–7 minutes of the step goes to app start/stop.
When it got slower
The smoke step took ~10–13 minutes on Sep 8–15 and ~18–20 minutes from about Sep 16–22 onward (sampled from successful PR runs of this workflow).
Comparing per-suite times from Sep 15 (35037789160), Sep 22 (35799853170) and Oct 13 (38443277116):
| Suite | Sep 15 | Sep 22 | Oct 13 |
|---|---|---|---|
| Agents Window (SSH Dev Container AgentHost) | — | 73s | 77s |
| Data Loss (insiders → insiders) | 141s | 206s | 211s |
| Agents Window (Dev Container AgentHost) | 67s | 136s | 115s |
| Extension Host Restart | 35s | 51s | 56s |
| Launch | 11s | 17s | 18s |
| Search | 12s | 18s | 18s |
| Step total | 780s | 1172s | 1181s |
- Every suite got ~6–7s slower, including trivial ones, which points to each app start/stop getting slower. Across all suites that's about 3 minutes, plus about 70s more in Data Loss, which launches the app about 10 times.
- The new SSH Dev Container suite added ~75s, and the Dev Container suite went from 67s to 115s.
The slower per-suite times first show up in runs on Sep 16, the same morning the Electron 43 update (4ae4d96) merged. That isn't conclusive:
- At least one later run against
main, which already included Electron 43, still had the old ~12s per-suite time (35286081593). - Current runs on the same runner image vary between ~13s and ~19s per trivial suite (fast example: 38446538970). Runner hardware differences may be part of it.
Possible fixes
- Raise the smoke step's
timeout-minutesto stop the immediate failures. - Share one app instance across short suites to cut per-suite launch overhead.
- Shorten the Data Loss suite, for example with fewer restarts per test.
- Bisect why each app launch got ~6s slower around Sep 16.
Activity
ci: run browser unit tests in a separate job
ci: run browser unit tests in a separate job
ci: shard Electron smoke tests across two jobs per platform (#341808)
ci: run browser unit tests in a separate job
ci: run browser unit tests in a separate job (#341809)
lramos15 commentedon Oct 16, 2026
Sharding has been implemented. We shall see if it helps