Skip to content

test313: disable CRL test for Schannel due to lack of support and flakiness #16862

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Mar 28, 2025

The source code and documentation says that CRL is not supported by
curl's Schannel TLS backend.

It's also frequently flaky in CI with both MinGW and MSVC jobs, e.g.:
https://github.com/curl/curl/actions/runs/14134841988/job/39603994164 (Schannel)
https://github.com/curl/curl/actions/runs/14134841988/job/39606336445 (Schannel)
https://github.com/curl/curl/actions/runs/13981383629/job/39147183706 (LibreSSL)

curl returned 35, when expecting 60

This test was passing with Schannel because it misses the --insecure
option and thus always returns 60, regardless of passing --crlfile or
not:

curl: (60) schannel: CertGetCertificateChain trust error CERT_TRUST_REVOCATION_STATUS_UNKNOWN
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the webpage mentioned above.

  • Question is why it passes test 313 at all? [ANSWERED]

The source code and documentation suggests that CRL is not supported by
curl's Schannel TLS backend.

It's frequently flaky in CI with both MinGW and MSVC jobs, e.g.:
https://github.com/curl/curl/actions/runs/14134841988/job/39603994164?pr=16858

It also has a high failure rate according to Test Clutch:
https://testclutch.curl.se/static/reports/results-count.html

Disable this test for the Schannel backend.

---

Question is why it pass test 313 at all?
@vszakats vszakats added TLS tests Windows Windows-specific labels Mar 28, 2025
@vszakats vszakats marked this pull request as draft March 28, 2025 19:29
@vszakats vszakats marked this pull request as ready for review March 29, 2025 03:02
@vszakats vszakats changed the title test313: disable CRL test for Schannel test313: disable CRL test for Schannel due to lack of support and flakiness Mar 29, 2025
@vszakats vszakats closed this in 8adee88 Mar 29, 2025
@vszakats vszakats deleted the t313 branch March 29, 2025 11:38
vszakats added a commit to vszakats/curl that referenced this pull request Mar 29, 2025
vszakats added a commit that referenced this pull request Mar 30, 2025
Instead of via `tests/data/DISABLED` file.

They are all missing CRL feature support, as opposed to being broken.

Follow-up to 8adee88 #16862
Follow-up to 8b1b5cd #16660

Closes #16865
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
…kiness

The source code and documentation says that CRL is not supported by
curl's Schannel TLS backend.

It's also frequently flaky in CI with both MinGW and MSVC jobs, e.g.:
https://github.com/curl/curl/actions/runs/14134841988/job/39603994164 (Schannel)
https://github.com/curl/curl/actions/runs/14134841988/job/39606336445 (Schannel)
https://github.com/curl/curl/actions/runs/13981383629/job/39147183706 (LibreSSL)

```
curl returned 35, when expecting 60
```

This test was passing with Schannel because it misses the `--insecure`
option and thus always returns 60, regardless of passing `--crlfile` or
not:
```
curl: (60) schannel: CertGetCertificateChain trust error CERT_TRUST_REVOCATION_STATUS_UNKNOWN
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the webpage mentioned above.
```

Closes curl#16862
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
Instead of via `tests/data/DISABLED` file.

They are all missing CRL feature support, as opposed to being broken.

Follow-up to 8adee88 curl#16862
Follow-up to 8b1b5cd curl#16660

Closes curl#16865
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests TLS Windows Windows-specific
Development

Successfully merging this pull request may close these issues.

2 participants