Repository navigation
[tests] Handle OCSP network failures after certificate validation. Fixes #25444 - #27090
rolfbjarne wants to merge 1 commit into
Conversation
The OCSP tests stopped processing a request as soon as the certificate validation callback ran. A subsequent TLS handshake failure or transient HTTP error therefore bypassed the existing CI network-error handling and failed the test. Check the request exception and response status before taking the callback early exit. This preserves the certificate-policy and successful-response assertions, while applying the existing CI-only handling regardless of when the connection fails. Fixes #25444 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8aeb06e9-16c7-4a55-84c6-f55cdd4d7d44
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the OCSP test request-handling change.
No open issues 🎉
What changed in this PR
This PR adjusts OCSP test request handling so transient network failures after certificate validation reach the existing CI-only network-error handling, addressing part of the failure pattern reported in #25444.
Changes:
- Checks request exceptions and HTTP response status before exiting when the certificate-validation callback has run.
- Preserves the existing certificate-policy and successful-response assertions.
| File | Description |
|---|---|
tests/monotouch-test/System.Net.Http/MessageHandlers.cs |
Moves the callback early exit after CI network-error checks in the OCSP test. |
Review effort: Balanced
✅ API diff for current PR / commitNET (empty diffs)✅ API diff vs stableNET (empty diffs)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
🔥 [CI Build #80ccab9] Test results 🔥Test results❌ Tests failed on VSTS: test results 1 tests crashed, 1 tests failed, 213 tests passed. Failures❌ dotnettests tests (macOS)1 tests failed, 0 tests passed.Failed tests
Html Report (VSDrops) Download ❌ windows tests🔥 Failed catastrophically on VSTS: test results - windows (no summary found). Html Report (VSDrops) Download Successes✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download macOS tests✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download Linux Build VerificationPipeline on Agent |
The OCSP tests stopped processing a request as soon as the certificate validation callback ran. A subsequent TLS handshake failure or transient HTTP error therefore bypassed the existing CI network-error handling and failed the test.
Check the request exception and response status before taking the callback early exit. This preserves the certificate-policy and successful-response assertions, while applying the existing CI-only handling regardless of when the connection fails.
Fixes #25444
🤖 Pull request created by Copilot