Skip to content

Conversation

@icing
Copy link
Contributor

@icing icing commented Nov 15, 2025

  • fix test_17_20 flakiness: the test case did not have nghttpx in its parameters, causing it to no check if a reload was necessary. When that test ran behind one that gave nghttpx another certificate, eg. in parallel mode, it used the wrong pinned pubkey.
  • Have env provide lists of HTTP protocol versions available for testing. Replace parameterized tests on a fixed protocol list with the dynamic one from env. This makes checks for protocol availability in the test function bodies superfluous.

refs #19489

- fix test_17_20 flakiness: the test case did not have `nghttpx` in
  its parameters, causing it to no check if a reload was necessary.
  When that test ran behind one that gave nghttpx another certificate,
  eg. in parallel mode, it used the wrong pinned pubkey.
- Have `env` provide lists of HTTP protocol versions available for
  testing. Replace parameterized tests on a fixed protocol list with
  the dynamic one from env. This makes checks for protocol availability
  in the test function bodies superfluous.
Copy link
Member

@vszakats vszakats left a comment

Choose a reason for hiding this comment

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

Nice!

Noticed this at the end of the log of a successful H3 job, seemed unfamiliar,
but it's unrelated, and present in master too:

Traceback (most recent call last):
  File "/home/runner/work/curl/curl/tests/http/testenv/env.py", line 219, in __init__
    self._nghttpx_version = NghttpxUtil.version(self.nghttpx)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/curl/curl/tests/http/testenv/env.py", line 83, in version
    raise RuntimeError(f'{cmd} --version failed with exit code: {p.returncode}')
RuntimeError: /home/runner/nghttp2/build/bin/nghttpx --version failed with exit code: 1

https://github.com/curl/curl/actions/runs/19389791408/job/55481684596#step:27:1695

@bagder bagder closed this in 217f0e4 Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants