Repository navigation
[test-quarantine] Stabilize DelegateTests.DelegateAfterReceiverRestart Quarantine test - #68131
Conversation
-Recreate DelegationRule after receiver restart instead of using the stale/disposed rule to prevent HTTP 500 failures.
|
Thanks for your PR, @karmegams02. Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
There was a problem hiding this comment.
Pull request overview
Stabilizes the DelegateAfterReceiverRestart HttpSys functional test by ensuring request delegation remains valid after the receiver server is restarted and re-attaches to the existing request queue.
Changes:
- Recreates the
DelegationRuleafter the receiver restart so delegation targets the reattached queue. - Removes the quarantine attribute from
DelegateAfterReceiverRestart.
…eceiver restart to prevent native handle leaks that contribute to test flakiness.
|
Tests passed in the CI, @halter73 PTAL |
|
Looks like this PR hasn't been active for some time and the codebase could have been changed in the meantime. |
|
/review |
There was a problem hiding this comment.
Source-only review of frozen head e826c224ed68831efe32cbdecf8de4a1ecaa2fd8 found one new P3 test-coverage issue: recreating the delegation rule means the restart test no longer verifies that an existing rule remains usable after receiver reattachment.
Existing feedback coverage: inline comment 3711794631 correctly identified the overwritten-rule handle leak; this revision disposes that handle, but the replacement creates the distinct coverage gap noted inline. No unresolved candidates remain.
Guide completion: docs/CrossCuttingGuidance.md completed by its independent worker and coordinator validation. Test/CI execution and security assessment were excluded by the trusted source-only policy. No HttpSys-specific specialist guide was routed, so area-specific coverage remains uncovered.
Provenance: immutable guidance commit fe077f01b8e8b5e7161381ec331d7666326aafc9; frozen merge base 28dd8a5895819baed4d7211120dbff0b452cc368; tracked Git bytes only. Target code and tests were not executed; proof is source-only.
Generated by ASP.NET Core Pull Request Review for #68131 · copilot · gpt56 · 106.1 AIC · ⌖ 7.62 AIC · ⊞ 20.2K
Comment /review to run again
There was a problem hiding this comment.
🔵 Needs a closer look
Removing quarantine depends on Windows HTTP.sys lifetime and receiver-restart behavior that source review cannot validate without repeated DelegateAfterReceiverRestart passes on a delegation-capable Windows agent.
No open issues 🎉
1 resolved since last review
Review effort: Balanced
There was a problem hiding this comment.
🔵 Needs a closer look
Windows HTTP.sys queue and handle stability across receiver restarts remains untested, and the missing frozen review bundle prevents verification of revision identities and independent checks.
No open issues 🎉
Review effort: Balanced
|
✅ No documentation PR was created. Confidence that documentation is needed: 2% No docs needed: the PR only stabilizes a quarantined HTTP.sys functional test. Documentation surfaces considered
|

Stabilize DelegateTests.DelegateAfterReceiverRestart
Description
Ensure request delegation continues working after the receiver restarts by keeping the destination request queue alive throughout the test.
Root cause
Delegation handles alone do not retain the destination request queue. Stopping the receiver can delete the queue, leaving the delegation handle referencing a deleted object and causing HTTP 500 responses.
Fix
CreateOrAttachto use the retained queue.Fixes #60141.