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
Raise data-source delegate handlers at test lifecycle stages #7473
Handlers subscribed to TestContextEvents.OnTestRegistered, OnTestStart, OnTestEnd, OnTestSkipped and OnTestRetry never run. Raise them alongside their matching lifecycle receivers so data sources can observe the tests that use their values.
Acceptance criteria
After the sibling ownership/context foundation merges, extract delegate dispatch from branch issue-7308-events, head a454169.
Dispatch registration, start, end, skipped and retry delegates; retain subscriptions across executable row creation. Snapshot handlers during dispatch and preserve duplicate subscriptions and registration identity tracking.
Start/end run once in the default late stage. Aggregate end-handler failures with teardown errors; document propagation for other events. Retry handlers receive the upcoming one-based retry number after backoff/cancellation checks and preserve accepted cancellation if they fail.
Owned files: Engine Services/EventReceiverOrchestrator.cs, TestExecution/RetryHelper.cs, TestFilterService.cs; lifecycle-only edits in TestCoordinator.cs and Core TestContextEvents.cs / Interfaces/ITestEvents.cs; docs/docs/execution/retrying.md. Own DelegateLifecycleEventTests.cs, PropertyRegistrationDelegateTests.cs, EventReceiverRegistrationTests.cs and RetryDelegateCancellationTests.cs, plus lifecycle-specific integration coverage.
Reuse foundation context cloning and scope cleanup rather than duplicating them. Do not include further DI ownership or row-context refactoring in this part.
Run targeted integration filters and relevant unit tests in generated and reflection modes. Engine.Tests is hosted CI only. No shipped public signature changes.
Review disposition
The outstanding scope-registration race from #7417 belongs to the prerequisite foundation, not this dispatch part. Earlier non-blocking lifetime/helper refactors remain in #7454. Existing reviewed dispatch behavior and regression coverage can be reused, with fresh review on the extracted PR.
This is the second independently mergeable part of #7308; keep the parent open until both parts meet its expected lifecycle behavior.
Activity
Stop retrying after successful handlers accept cancellation (#7473)
Raise data-source delegates at test lifecycle stages (#7521)