facebook / wangle

Wangle is a framework providing a set of common client/server abstractions for building services in a consistent, modular, and composable way.
Apache License 2.0
3.04k stars 535 forks source link

test failure #206

Open Alessandro-Barbieri opened 2 years ago

Alessandro-Barbieri commented 2 years ago

Gentoo's CI had test failures

12/14 Testing: SSLContextManagerTest
12/14 Test: SSLContextManagerTest
Command: "/var/tmp/portage/dev-cpp/wangle-2022.04.11.00-r1/work/wangle-2022.04.11.00/wangle_build/bin/SSLContextManagerTest"
Directory: /var/tmp/portage/dev-cpp/wangle-2022.04.11.00-r1/work/wangle-2022.04.11.00/wangle_build
"SSLContextManagerTest" start time: May 30 08:44 CEST
Output:
----------------------------------------------------------
[==========] Running 8 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 8 tests from SSLContextManagerTest
[ RUN      ] SSLContextManagerTest.Test1
[       OK ] SSLContextManagerTest.Test1 (2 ms)
[ RUN      ] SSLContextManagerTest.TestResetSSLContextConfigs
[       OK ] SSLContextManagerTest.TestResetSSLContextConfigs (4 ms)
[ RUN      ] SSLContextManagerTest.TestSessionContextCertRemoval
E20220530 08:44:30.200873    87 SSLContextManager.cpp:466] Cert for the default domain www.abc.example.com can not be removed
[       OK ] SSLContextManagerTest.TestSessionContextCertRemoval (0 ms)
[ RUN      ] SSLContextManagerTest.TestCertificateWithNoCN
[       OK ] SSLContextManagerTest.TestCertificateWithNoCN (0 ms)
[ RUN      ] SSLContextManagerTest.TestAlpnAllowMismatch
[       OK ] SSLContextManagerTest.TestAlpnAllowMismatch (0 ms)
[ RUN      ] SSLContextManagerTest.TestAlpnNotAllowMismatch
[       OK ] SSLContextManagerTest.TestAlpnNotAllowMismatch (0 ms)
[ RUN      ] SSLContextManagerTest.TestSingleClientCAFileSet
E20220530 08:44:30.203253    87 SSLContextManager.cpp:491] error loading client CA folly/io/async/test/certs/client_chain.pem: std::runtime_error: SSL_CTX_load_verify_locations: No such file or directory; no such file; system lib
unknown file: Failure
C++ exception with description "error loading client CA folly/io/async/test/certs/client_chain.pem: std::runtime_error: SSL_CTX_load_verify_locations: No such file or directory; no such file; system lib" thrown in the test body.
[  FAILED  ] SSLContextManagerTest.TestSingleClientCAFileSet (0 ms)
[ RUN      ] SSLContextManagerTest.TestMultipleClientCAsSet
E20220530 08:44:30.204098    87 SSLContextManager.cpp:491] error loading client CA folly/io/async/test/certs/client_cert.pem: std::runtime_error: SSL_CTX_load_verify_locations: No such file or directory; no such file; system lib
unknown file: Failure
C++ exception with description "error loading client CA folly/io/async/test/certs/client_cert.pem: std::runtime_error: SSL_CTX_load_verify_locations: No such file or directory; no such file; system lib" thrown in the test body.
[  FAILED  ] SSLContextManagerTest.TestMultipleClientCAsSet (0 ms)
[----------] 8 tests from SSLContextManagerTest (11 ms total)

[----------] Global test environment tear-down
[==========] 8 tests from 1 test suite ran. (11 ms total)
[  PASSED  ] 6 tests.
[  FAILED  ] 2 tests, listed below:
[  FAILED  ] SSLContextManagerTest.TestSingleClientCAFileSet
[  FAILED  ] SSLContextManagerTest.TestMultipleClientCAsSet

 2 FAILED TESTS
<end of output>
Test time =   0.03 sec
----------------------------------------------------------
Test Failed.
"SSLContextManagerTest" end time: May 30 08:44 CEST
"SSLContextManagerTest" time elapsed: 00:00:00
----------------------------------------------------------

see https://bugs.gentoo.org/848459 log https://848459.bugs.gentoo.org/attachment.cgi?id=781391 test log https://848459.bugs.gentoo.org/attachment.cgi?id=781394

risicle commented 5 months ago

We get the same TestSessionContextCertRemoval failure in the NixOS package.