Skip to content

mbedtls: skip test_02_33 - #23897

Closed
icing wants to merge 2 commits into
curl:masterfrom
icing:mbedtls-skip-test_02_33
Closed

icing wants to merge 2 commits into
curl:masterfrom
icing:mbedtls-skip-test_02_33

Conversation

@icing

@icing icing commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

It has been unreliable in CI. Skip it, no one cares.

It has been unreliable in CI. Skip it, no one cares.

@vszakats vszakats left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps also do this for 02_34, and also for Rustls (for both 02_33 and 02_34)?
They are also subjects to these flaky failures:
#23709 (comment)

quote:

The linux mbedtls jobs' pytests became flaky somewhere around the last 1-2 weeks.
https://github.com/curl/curl/actions/runs/41441679596/job/125265301821?pr=23709
test_02_34_max_total_conns[False-0-h2]

edit, it's not mbedTLS-specific, it also happens with Rustls:
https://github.com/curl/curl/actions/runs/41443793733/job/125271822042?pr=23101
test_02_33_max_host_conns[False-0-h2]

@vszakats

Copy link
Copy Markdown
Member

The other CI fails should be fixed after a rebase on master.
Right after patching those, Ubuntu went down, all mirrors.

@icing

icing commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

Also skipping test_02_34, same for rustls.

@vszakats vszakats closed this in 1cc0909 Nov 11, 2026
@vszakats

Copy link
Copy Markdown
Member

Thanks @icing, merged! (also: Ubuntu recovered)

@vszakats

vszakats commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

edit: PR → #23976

It also happened with LibreSSL:

FAILED ../../tests/http/test_02_download.py::TestDownload::test_02_34_max_total_conns[False-0-h2] - AssertionError: expected exit code 0, got 55

https://github.com/curl/curl/actions/runs/43752361738/job/132930459159?pr=23969#step:32:10102

_____________ TestDownload.test_02_34_max_total_conns[False-0-h2] ______________
[gw2] linux -- Python 3.14.4 /home/runner/venv/bin/python3

self = <test_02_download.TestDownload object at 0x78c978106b20>
env = <testenv.env.Env object at 0x78c97adb98b0>
httpd = <testenv.httpd.Httpd object at 0x78c97821e7b0>
nghttpx = <testenv.nghttpx.NghttpxQuic object at 0x78c97821f620>, proto = 'h2'
max_total_conns = 0, share_connect = False

    @pytest.mark.skipif(condition=Env.curl_uses_lib('mbedtls'), reason='mbedtls unreliable here')
    @pytest.mark.skipif(condition=Env.curl_uses_lib('rustls-ffi'), reason='rustls unreliable here')
    @pytest.mark.parametrize("proto", Env.http_h1_h2_protos())
    @pytest.mark.parametrize("max_total_conns", [0, 1, 5])
    @pytest.mark.parametrize("share_connect", [False, True])
    def test_02_34_max_total_conns(self, env: Env, httpd, nghttpx, proto, max_total_conns, share_connect):
        if not env.curl_is_debug():
            pytest.skip('only works for curl debug builds')
        if not env.curl_is_verbose():
            pytest.skip('only works for curl with verbose strings')
        count = 50
        max_parallel = 50
        docname = 'data-10k'
        port = env.port_for(proto)
        url = f'https://{env.domain1}:{port}/{docname}'
        run_env = os.environ.copy()
        run_env['CURL_DEBUG'] = 'multi'
        client = LocalClient(name='cli_hx_download', env=env, run_env=run_env)
        if not client.exists():
            pytest.skip(f'example client not built: {client.name}')
        extra_args = ['-S'] if share_connect else []  # share connections
        r = client.run(args=[
             '-n', f'{count}',
             '-m', f'{max_parallel}',
             '-C', env.ca.cert_file,
             '-x',  # always use a fresh connection
             '-T',  str(max_total_conns),  # limit total connections
             '-r', f'{env.domain1}:{port}:127.0.0.1',
        ] + extra_args + ['-V', proto, url])
>       r.check_exit_code(0)

../../tests/http/test_02_download.py:642: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = ExecResult[code=55, exception=None, args=['/home/runner/work/curl/curl/bld/tests/../tests/libtest/libtests', 'cli_hx_d... shutdown finished cleanly\n', '* [MULTI] multi_cleanup, closing admin handle, done\n', 'Test ended with result 55\n']]
code = 0

    def check_exit_code(self, code: Union[int, bool]):
        if code is True:
            assert self.exit_code == 0, f'expected exit code {code}, '\
                                        f'got {self.exit_code}\n{self.dump_logs()}'
        elif code is False:
            assert self.exit_code != 0, f'expected exit code {code}, '\
                                        f'got {self.exit_code}\n{self.dump_logs()}'
        else:
>           assert self.exit_code == code, f'expected exit code {code}, '\
                                           f'got {self.exit_code}\n{self.dump_logs()}'
E           AssertionError: expected exit code 0, got 55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants