Repository navigation
Port the closed-session error, the session-control fixture rule, and LaunchOptions.Headed (upstream #1734) - #1697
Merged
Merged
Conversation
…LaunchOptions.Headed (upstream #1734) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ls2e22aX75z2zUoWo2KJsM
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 5 minutes. View limit details
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. |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ls2e22aX75z2zUoWo2KJsM
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 #1678
Ports the part of upstream e2e-inc/e2e#1734 (commit dbe3dc5) that #1667's port left out.
CANCELLEDandthe session is closed(E2ESessionOptions.Closed, upstreamStandaloneSessionOptions.closed;AttemptBudgetthrows it once the session ended, as upstream'sreadOperationthrows the abort reason).EngineManifest.DefineEnginerefuses a fixture namedclose,saveState, orsetDefaultTimeoutwithINVALID_CONFIG(upstreamSESSION_CONTROLS).LaunchOptions.Headed, carried throughStandaloneHostOptions.HeadedtoEnginePrepareInfo.Headed,EngineInitInfo.Headed, and the web engine's launch.redactOpeningmoved out ofOpenSession.csintoRun/RedactOpening.cs.Upstream parity
Upstream: tester-army/e2e dbe3dc5 (#1734). Verdict: complete, except the justified exception below.
CoreTests.Says_a_closed_session_is_closed_and_redacts_a_secret_from_the_error_an_operation_throws; newDefineEngineTests.Refuses_a_fixture_named_like_a_method_of_an_e2e_dev_core_session.OpeningRedactionclass: a C# member cannot share its type's name, so it holds upstream'sredactOpening.EngineStartOptions.Headed: the port does not callinitper worker, so the session start carries it.HeadedonEnginePrepareInfo,EngineInitInfo, andPrepareScopeisinitwith a default, not required, so existing constructions still compile.Headed: upstream has noitfor it.Host<Fixtures>,Session<Fixtures>,DeviceonSession). Follow-up issue Core: engine-typed fixtures (Host<Fixtures>, Session<Fixtures>) and a Device member on Session (upstream #1734) #1696.-p:TargetFrameworks=net10.0; Core, OpenSession, and DefineEngine tests pass. Tests that launch a browser fail here because Chromium cannot be installed in this sandbox. The API reference pages were edited by hand becausenpm run apineeds docfx, which is not available here. No real-model tests were run: the change does not touch the agent path beyond the session-end error.Generated by Claude Code