Commit ba17894
authored
Stabilize browser e2e setup (#233)
## Summary
- reinstall Playwright dependencies when `node_modules` exists but `tsx`
is missing
- stop Chromium before transfer benchmarks archive
`/home/kernel/user-data`, avoiding live profile writes during zip/zstd
creation
## Test plan
- `PATH="/usr/local/go/bin:$PATH" go test -v -race ./e2e/ -run
'TestZipTransferTiming|TestZstdTransferTiming|TestZipVsZstdComparison'
-count=1`
- `PATH="/usr/local/go/bin:$PATH" go test -v -race $(go list ./... | rg
-v '/e2e$')`
Made with [Cursor](https://cursor.com)
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Low risk: changes are limited to e2e/benchmark test setup, mainly
improving dependency installation checks and reducing flakiness from
live Chromium profile writes.
>
> **Overview**
> Improves e2e Chromium test reliability by re-running `pnpm install`
when Playwright’s `node_modules` exists but the `tsx` CLI is missing,
with clearer install logging and early error return.
>
> Stabilizes the zip/zstd transfer benchmark tests by explicitly
stopping `chromium` via `supervisorctl` (and briefly sleeping) before
reading/archiving `/home/kernel/user-data`, avoiding races with
in-flight profile writes during compression.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
fa5ed61. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent c058cb0 commit ba17894
2 files changed
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
75 | 76 | | |
| 77 | + | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| 83 | + | |
81 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
82 | 96 | | |
83 | 97 | | |
84 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
142 | 162 | | |
143 | 163 | | |
144 | 164 | | |
| |||
286 | 306 | | |
287 | 307 | | |
288 | 308 | | |
| 309 | + | |
289 | 310 | | |
290 | 311 | | |
291 | 312 | | |
| |||
436 | 457 | | |
437 | 458 | | |
438 | 459 | | |
| 460 | + | |
439 | 461 | | |
440 | 462 | | |
441 | 463 | | |
| |||
0 commit comments