Skip to content

fix(e2e): a worker the e2e helpers seed has memory pressure turned off - #1929

Merged
V3RON merged 2 commits into
mainfrom
bug/1891
Nov 27, 2026
Merged

V3RON merged 2 commits into
mainfrom
bug/1891

Conversation

@V3RON

@V3RON V3RON commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1891

Status

Implement: done (2/2 green) Review: round 1, 0 findings Hardware: n/a Gate: pending
Next: gate

  • A worker the e2e helpers seed has memory pressure turned off, for the fake and the real driver (e2e/helpers/env.ts STANDALONE_OFF; test e2e/helpers/env-memory-pressure.test.ts) — e2e/helpers/env-memory-pressure.test.ts passes for both drivers and fails on its named assertion with the fix reverted

Assumptions

none

Review

Spec review: 0 blocking, 0 fixed, 0 notes. Code review: 0 blocking, 0 fixed, 0 notes. Claims review: 0 blocking, 0 fixed, 0 notes.
Rounds: 1. Tokens: 1.6M.
Runs: 6. Cost USD: 0.9177. Agent seconds: 455.

Assessment: complete

Written by an agent.

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The non-gateway STANDALONE_OFF configuration now sets memoryPressure.enabled to false. A new end-to-end test runs withDaemon in auto mode with the fake and real drivers, then checks that the seeded configuration has memory pressure disabled.

Severity of issue fixed: Low

Merge Risk: Minimal · up to a9c10

This change disables memory pressure for e2e-seeded workers so the warm clipboard test no longer times out waiting for a spare simulator. It affects only test helpers, with no production impact, and no merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the e2e helpers seed a worker with memory pressure turned off. It matches the raw summary (STANDALONE_OFF sets memoryPressure.enabled to false) and the linked objectiv…
Description check Passed The description is related to the changeset. It links issue #1891, names the changed file e2e/helpers/env.ts (STANDALONE_OFF) and the new test e2e/helpers/env-memory-pressure.test.ts, and states the t…
Linked Issues check Passed Issue #1891 (direct, open) requires that the warm clipboard case in e2e/slow-ios-window.test.ts stop timing out on a warm spare that memory pressure holds back, so the test reaches its clipboard check…
Out of Scope Changes check Passed The PR changes two files. e2e/helpers/env.ts adds one memoryPressure entry to STANDALONE_OFF, with a why comment that names #1891. e2e/helpers/env-memory-pressure.test.ts adds a test that checks the s…
Full details: Title check

Explanation

The title names the main change: the e2e helpers seed a worker with memory pressure turned off. It matches the raw summary (STANDALONE_OFF sets memoryPressure.enabled to false) and the linked objectives. The title uses a fix(e2e) prefix and is specific, so it passes.

Full details: Description check

Explanation

The description is related to the changeset. It links issue #1891, names the changed file e2e/helpers/env.ts (STANDALONE_OFF) and the new test e2e/helpers/env-memory-pressure.test.ts, and states the test results for both drivers. It is not off-topic, so it passes.

Full details: Linked Issues check

Explanation

Issue #1891 (direct, open) requires that the warm clipboard case in e2e/slow-ios-window.test.ts stop timing out on a warm spare that memory pressure holds back, so the test reaches its clipboard checks. At head, STANDALONE_OFF in e2e/helpers/env.ts sets memoryPressure.enabled to false. seedConfig merges STANDALONE_OFF into the seeded config for the real driver whenever role is not gateway. The slow test calls withDaemon with driver 'real' and configOverrides that do not set memoryPressure, so the merged config keeps memoryPressure disabled. The change therefore reaches the code path in #1891. The author reports that e2e/helpers/env-memory-pressure.test.ts passes for both drivers and fails when the fix is reverted. I did not run that test. The runtime result of the warm spare refill is reported, not independently verified. The issue's acceptance target is the test passing, and I did not observe that run.

Full details: Out of Scope Changes check

Explanation

The PR changes two files. e2e/helpers/env.ts adds one memoryPressure entry to STANDALONE_OFF, with a why comment that names #1891. e2e/helpers/env-memory-pressure.test.ts adds a test that checks the seeded config has memoryPressure.enabled set to false for the fake and real drivers. Both changes support the #1891 objective. No unrelated changes were identified in the summary or the inspected hunks. The gateway role is excluded from STANDALONE_OFF, which keeps the change limited to worker configs.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: QUIET
  • Plan: Advanced
  • Run ID: 132fa0ff-a58b-4d8e-99c7-0621fc33734a
Commits

Reviewing files that changed from the base of the PR and between df89b5b and a9c107e.

Files selected for processing: 2

  • e2e/helpers/env-memory-pressure.test.ts
  • e2e/helpers/env.ts

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

@V3RON

V3RON commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

Review ledger

Round 1: a9c107e

Runs: 6. Cost USD: 0.9177. Agent seconds: 455.
Tokens input 102, output 18069, cache read 1261311, cache write 177566.
- build implementer: claude-sonnet-5-5 116 s $0.1297
- audit implementer: claude-sonnet-5-5 40 s $0.1719
- review 1 reviewer: claude-sonnet-5-5 163 s $0.1285
- review 1 spec: claude-sonnet-5-5 12 s $0.0712
- review 1 code tests: claude-opus-5-5 106 s $0.3332
- review 1 claims: claude-sonnet-5-5 18 s $0.0832
Finding outcomes: {}. Classes: {}.
{"findings":[]}

Written by an agent.

@V3RON
V3RON marked this pull request as ready for review November 27, 2026 20:00
@V3RON
V3RON merged commit 7efa617 into main Nov 27, 2026
55 checks passed
@V3RON
V3RON deleted the bug/1891 branch November 27, 2026 20:05
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.

slow-ios-window: warm clipboard test times out when memory pressure holds back the warm spare

1 participant