You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(e2e): a worker the e2e helpers seed has memory pressure turned off - #1929
A worker the e2e helpers seed has memory pressure turned off, for the fake and the real driver (e2e/helpers/env.tsSTANDALONE_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
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: 4
Check name
Status
Explanation
Title check
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
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
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
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1891
Status
Implement: done (2/2 green) Review: round 1, 0 findings Hardware: n/a Gate: pending
Next: gate
e2e/helpers/env.tsSTANDALONE_OFF; teste2e/helpers/env-memory-pressure.test.ts) —e2e/helpers/env-memory-pressure.test.tspasses for both drivers and fails on its named assertion with the fix revertedAssumptions
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.