Skip to content

Record launch run errors and give suite hooks app and screen (#2586) - #2674

Open
kblok wants to merge 4 commits into
mainfrom
fix/2586-suite-attempt-host
Open

kblok wants to merge 4 commits into
mainfrom
fix/2586-suite-attempt-host

Conversation

@kblok

@kblok kblok commented Dec 2, 2026

Copy link
Copy Markdown
Member

Closes #2586

What

Suite hooks (beforeAll/afterAll) and worker-fixture teardowns now work on an engine whose state outlives an attempt (isolation: worker) in the in-memory run. Most of the host (OpenAsync, ISuiteAttemptSession, short attempt) was already on main. This PR closes the remaining gaps:

  • A launch failure or failed worker teardown is recorded in report.run.errors with its phase (upstream's runErrors), not only on stderr and the exit code.
  • A suite hook reads app and screen from the short attempt's session.

Upstream parity

Verdict: partial, gaps tracked in issues (formal /upstream-parity-check and /code-review runs were not done in this scheduled session).

Upstream tests

upstream it local
worker-fixtures: still runs afterAll and the worker teardown when the attempt they run in cannot open WorkerFixturesTests.Partial_Still_runs_afterAll... (no assertValidReport)
abandoned-suite-hook: aborts the engine calls of an afterAll hook that resumes in the next file AbandonedSuiteHookTests.Partial_Aborts_the_engine_calls... (one virtual file; late call stopped before the engine)

Not ported: worker-fixtures "opens no attempt ... after an interrupt" (#2671); "hands suite hooks ... engine's fixtures" needs serial groups (#2512, #2511).

Test infrastructure (.NET-only): CoreFakeEngine gained Events, OnStartAttemptAt, CoreGadget.PokeAsync, and AbortedAtCall/Url on Operations.

https://claude.ai/code/session_01Ls2e229wzYv2yVyhs4CJmP


Generated by Claude Code

…r-fixtures and abandoned-suite-hook its (#2586)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ls2e229wzYv2yVyhs4CJmP
@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You'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 46 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between e52c4a5 and 2974b11.

Files selected for processing: 5

  • src/E2E/Run/Realm.cs
  • src/E2E/Run/Runner.cs
  • tests/E2E.Tests/AbandonedSuiteHook/AbandonedSuiteHookTests.cs
  • tests/E2E.Tests/Core/CoreFakeEngine.cs
  • tests/E2E.Tests/WorkerFixtures/WorkerFixturesTests.cs
  • 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

…f an empty catch

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ls2e229wzYv2yVyhs4CJmP

kblok commented Dec 2, 2026

Copy link
Copy Markdown
Member Author

The only red check, restore-build-test, fails on DaritenTests.The_dashboard_links_to_the_transaction_register (getByRole("heading", "Dashboard") absent on the live Dariten demo). It fails the same way on main (CI on 1c29c25, 4b0ea5c and c410d40) and is tracked in #2670. This PR changes neither the sample nor the live site, so the failure is not caused by it; a re-run failed the same way. The other checks pass.


Generated by Claude Code

kblok commented Dec 2, 2026

Copy link
Copy Markdown
Member Author

The only red check, restore-build-test, now fails on one test: E2E.TUnit.Tests Partial_Slows_a_retry_again_and_starts_a_retry_from_its_own_timeout (TestSlowTests.cs:59). It fails the same way on a clean origin/main build run locally and on both CI runs here, and is the same timing-dependent family as #2637; filed as #2678. This PR does not touch the TUnit adapter or Slow(). The earlier Dariten failure is gone after merging main. Every other check and test project passes.


Generated by Claude Code

This branch has not been deployed

No deployments
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.

Open a short attempt for suite hooks on an engine whose state outlives an attempt (SuiteAttempt host)

2 participants