Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hardcode the junit xml hostname to avoid doing DNS lookups in tests #7329



None yet
2 participants
Copy link

commented Mar 7, 2019


As described in the removed code, means that hostname lookups on OSX can sometimes take a very long time.

But the effect of executing a hostname lookup in the test runner is that we impose this cost even on tests that are well behaved and don't access the network.


Hardcode the hostname to localhost, which also has advantages for test reproducibility.


Faster network-oblivious tests.

@stuhood stuhood requested review from baroquebobcat, cheister and benjyw Mar 7, 2019


benjyw approved these changes Mar 7, 2019

@stuhood stuhood merged commit 1755e53 into pantsbuild:master Mar 13, 2019

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed

@stuhood stuhood deleted the twitter:stuhood/mock-out-junit-xml-hostname branch Mar 13, 2019


This comment has been minimized.

Copy link
Member Author

commented Mar 13, 2019

Published as:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.