Bug 1856356
Summary: | tox hangs for a minute in mock without --enable-network, even with very basic invocations | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
Component: | pyproject-rpm-macros | Assignee: | Miro Hrončok <mhroncok> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | fge, itamar, lbalhar, mhroncok, mrunge, pviktori, python-sig |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-07-21 20:45:49 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Miro Hrončok
2020-07-13 13:01:50 UTC
I've managed to debug this with https://unix.stackexchange.com/a/503217/196399 (running the command from outside mock). There is a dns query to my hostname, tox calls socket.getfqdn(). https://github.com/tox-dev/tox/blob/3.16.1/src/tox/logs/result.py#L24 I've manged to reproduce the hang with: <mock-chroot> sh-5.0# python3 -c 'import socket; print(socket.getfqdn())' Tox 3.17+ has a way to workaround this. Assigning to pyproject macros to use the workaround. |