Skip to content

Stabilize browser e2e setup#233

Merged
rgarcia merged 1 commit intomainfrom
fix/e2e-user-data-flake
Apr 30, 2026
Merged

Stabilize browser e2e setup#233
rgarcia merged 1 commit intomainfrom
fix/e2e-user-data-flake

Conversation

@rgarcia
Copy link
Copy Markdown
Contributor

@rgarcia rgarcia commented Apr 30, 2026

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


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.

Reviewed by Cursor Bugbot for commit fa5ed61. Bugbot is set up for automated code reviews on this repo. Configure here.

Made-with: Cursor
@firetiger-agent
Copy link
Copy Markdown

Firetiger deploy monitoring skipped

This PR didn't match the auto-monitor filter configured on your GitHub connection:

Any PR that changes the kernel API. Monitor changes to API endpoints (packages/api/cmd/api/) and Temporal workflows (packages/api/lib/temporal) in the kernel repo

Reason: PR only modifies browser e2e testing setup and dependencies, with no changes to API endpoints or Temporal workflows.

To monitor this PR anyway, reply with @firetiger monitor this.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is ON. A cloud agent has been kicked off to fix the reported issue. You can view the agent here.

Reviewed by Cursor Bugbot for commit fa5ed61. Configure here.

playwrightDepsErr = fmt.Errorf("failed to install playwright dependencies: %w\noutput: %s", err, string(output))
return
}
t.Log("Playwright dependencies installed successfully")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Duplicated install logic in two conditional branches

Low Severity

The if branch (node_modules missing) and the else if branch (tsx missing) contain identical pnpm install logic — same command, same error handling, same log messages. If install behavior ever needs updating, both branches must be changed in lockstep, risking divergence. A single needsInstall boolean computed from both os.Stat checks, followed by one install block, would eliminate the duplication.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit fa5ed61. Configure here.

@rgarcia rgarcia requested a review from ulziibay-kernel April 30, 2026 17:45
Copy link
Copy Markdown
Contributor

@ulziibay-kernel ulziibay-kernel left a comment

Choose a reason for hiding this comment

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

was this issue observed and reported somewherE?

@rgarcia rgarcia merged commit ba17894 into main Apr 30, 2026
11 checks passed
@rgarcia rgarcia deleted the fix/e2e-user-data-flake branch April 30, 2026 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants