question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failing tests on Gentoo Linux

See original GitHub issue

I recently “adopted” the Gentoo Linux net-misc/httpie package after the last maintainer called it quits, and while I have completed the 1.0.0 binary release, I am having some problems with failing tests:

tests/test_binary.py::TestBinaryResponseData::test_binary_suppresses_when_terminal FAILED
tests/test_binary.py::TestBinaryResponseData::test_binary_suppresses_when_not_terminal_but_pretty FAILED
tests/test_binary.py::TestBinaryResponseData::test_binary_included_and_correct_when_suitable FAILED
tests/test_ssl.py::TestClientCert::test_cert_file_invalid FAILED
tests/test_ssl.py::TestClientCert::test_cert_ok_but_missing_key FAILED
tests/test_ssl.py::TestServerCert::test_verify_custom_ca_bundle_invalid_bundle FAILED

Full build log file: httpie-1.0.0-r1:20181113-141909.log

Some of the tests seem to fail because they are executed in Gentoo’s test sandbox which blocks network connections beyond the build machine. Is it possible to execute only tests which are unaffected by this limitation? I did not find this mentioned in the HTTPie docs, but I’d rather not disable tests by patching if there is a better way.

As for SSL tests, I am not yet fully certain what is causing the failures, so I’d appreciate pointers in this area as well. Thanks.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rseichtercommented, Nov 14, 2018

Thanks @jakubroztocil for fixing the test issues so quickly!

1reaction
rseichtercommented, Nov 14, 2018

@jakubroztocil : I created a patch for test_ssl.py based on release 1.0.1 and your commit, to replace my patch shown above, and the tests succeed on my build machine. Looks good to me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

265167 – sys-apps/portage: don't clean files when test-fail ...
I use test-fail-continue in my FEATURES for running tests but don't get them stopping my merges. The problem is that, after test fails, ......
Read more >
Bug 629660 - Gentoo's Bugzilla
Bug 629660 - sys-apps/coreutils-8.28 : FAIL tests/. ... Alias: None. Product: Gentoo Linux ... Description Toralf Förster gentoo-dev ...
Read more >
828998 – dev-lang/python-3.10.1 test failures: test_bdb ...
The test failures are gone for me with python-3.10.2: >>> Installing (1 of 1) dev-lang/python-3.10.2::gentoo * Messages for package ...
Read more >
655880 – dev-db/mysql-5.7.22 fails test - Gentoo's Bugzilla
Too many failed: Failed 9/1208 tests, 99.25% were successful. Failing test(s): rpl.rpl_xa_survive_disconnect_table ...
Read more >
715040 – sys-devel/automake-1.16.2[test] - FAIL: t/instmany ...
Product: Gentoo Linux ... 626382 [details] test-suite.log.xz FAIL: t/instmany-python.sh FAIL: ... failed (test phase): * Make check failed.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found