GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — gh-131178: add E2E mockless tests for `http.server` command-line interface by picnixz · Pull Request #134279 · python/cpython Conversation
|
|
Ok, so the tests hang on macOS & Windows for some reason I'm not aware of. The tests are really more E2E tests but they can help catching possible issues so I'm keeping them. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
!buildbot ASAN |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Ok, since the build bots are struggling, I'll first remove the bits where we test the HTTP server. I'll try to see how we can reliably test this component later (I'm essentially applying PEP-11 recommendations when a Tier-1 bot is failing). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…st-131178 # Conflicts: # Lib/test/test_httpservers.py
There was an error while loading. Please reload this page.
|
Ha! So there is something happening! I'll continue investigating this. At least, I think I know why it failed on the build bots. Presumably, the address being served was incorrectly parsed for some reason (namely it wasn't 127.0.0.1 or there was some exception being raised that I wasn't aware of) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
!buildbot ASAN |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 New build scheduled with the buildbot fleet by @picnixz for commit f735ee5 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F134279%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
I tried to reproduce these problems locally based on the commit that cause the buildbot failed(commit hash 605022a) and It appears that both of the Here's my reproduction of these bugs
$ git reset --hard 605022aeb69ae19cae1c020a6993ab5c433ce907 $ ./configure --with-openssl=donotexist # ... $ make -j12 # ... Could not build the ssl module! Python requires a OpenSSL 1.1.1 or newer $ ./python -m test test_httpservers -v # ... ====================================================================== ERROR: test_http_client (test.test_httpservers.CommandLineRunTimeTestCase.test_http_client) ---------------------------------------------------------------------- # ... AttributeError: 'NoneType' object has no attribute 'create_default_context' ====================================================================== FAIL: test_https_client (test.test_httpservers.CommandLineRunTimeTestCase.test_https_client) ---------------------------------------------------------------------- # ... AssertionError: False is not true ---------------------------------------------------------------------- |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Ah thank you! this is something I couldn't understand as I couldn't show the traceback in full. Thank you very much for that. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Actually, there is something else. The errors were: FAIL: test_https_client (test.test_httpservers.CommandLineRunTimeTestCase.test_https_client) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/ec2-user/buildbot/buildarea/3.x.itamaro-macos-intel-aws.macos-with-brew.asan.nogil/build/Lib/test/test_httpservers.py", line 1533, in test_https_client self.assertTrue(self.wait_for_server(proc, 'https', port, bind)) ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: False is not true However, I've already disabled the test if |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
!buildbot x86-64 MacOS Intel |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 New build scheduled with the buildbot fleet by @picnixz for commit 7686f3a 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F134279%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Ok, I think I know what happened. When requesting Therefore, I think I can merge this one without worries. If build bot fails (I can't seem to run them), I'll revert the PR (again). But the failing build bots now succeed, so it should be fine. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
http.server command-line interfacehttp.server command-line interface
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.