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

python310Packages.httpie: re-enable tests #210996

Closed
wants to merge 2 commits into from

Conversation

alexshpilkin
Copy link
Member

Description of changes

An upstream fix for the test failures discovered in #205270 has landed as httpie/cli@e73c3e6, so pick up that patch until the next version is released and revert #207035 which disabled the tests.

h/t @dbaynard @mweinelt

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.05 Release Notes (or backporting 22.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@fabaff
Copy link
Member

fabaff commented Jan 16, 2023

Result of nixpkgs-review pr 210996 run on x86_64-linux 1

2 packages failed to build:
  • python311Packages.httpie
  • python311Packages.httpie-ntlm
3 packages built:
  • http-prompt
  • httpie (python310Packages.httpie)
  • python310Packages.httpie-ntlm

Perhaps only related to Python 3.11:

[...]
       last 10 log lines:
       > FAILED tests/test_cli.py::test_url_colon_slash_slash_only - AssertionError: assert 'http: LogLev...host supplied' == 'http: error:...ho...
       > FAILED tests/test_output.py::TestQuietFlag::test_quiet_with_check_status_non_zero - AssertionError: assert 'http: warning: HTTP 500' in '\nhttp: LogLevel.WARNI...
       > FAILED tests/test_output.py::TestQuietFlag::test_quiet_with_check_status_non_zero_pipe - AssertionError: assert 'http: warning: HTTP 500' in '\nhttp: LogLevel.WARNI...
       > FAILED tests/test_output.py::TestQuietFlag::test_quiet_quiet_with_check_status_non_zero_pipe - AssertionError: assert 'http: warning: HTTP 500' in '\nhttp: LogLevel.WARNI...
       > FAILED tests/test_plugins_cli.py::test_plugins_upgrade - AssertionError: assert '1.0.0' == '2.0.0'
       > FAILED tests/test_sessions.py::TestCookieStorage::test_existing_and_new_cookies_sent_in_request[new=bar;chocolate=milk-new_cookies_dict1-chocolate=milk; cookie1=foo; cookie2=foo; new=bar] - AssertionError: assert 'Cookie: chocolate=milk; cookie1=foo; cookie2=foo; n...
       > FAILED tests/test_sessions.py::TestCookieStorage::test_existing_and_new_cookies_sent_in_request[new=bar; chocolate=milk-new_cookies_dict2-chocolate=milk; cookie1=foo; cookie2=foo; new=bar] - AssertionError: assert 'Cookie: chocolate=milk; cookie1=foo; cookie2=foo; n...
       > FAILED tests/test_sessions.py::TestCookieStorage::test_existing_and_new_cookies_sent_in_request[new=bar; chocolate=milk;;;-new_cookies_dict4-chocolate=milk; cookie1=foo; cookie2=foo; new=bar] - AssertionError: assert 'Cookie: chocolate=milk; cookie1=foo; cookie2=foo; n...
       > = 8 failed, 986 passed, 25 skipped, 3 deselected, 2 xfailed, 2 xpassed, 345 warnings in 81.55s (0:01:21) =
       > /nix/store/chilfhdcsnmwjl7igrw26j1lrc0zar35-stdenv-linux/setup: line 1570: pop_var_context: head of shell_variables not a function context

@alexshpilkin
Copy link
Member Author

alexshpilkin commented Jan 16, 2023

@fabaff Huh. Thanks! I did nixpkgs-review rev locally but that didn’t catch it—perhaps because at the point I based this on (a4379d2) a dependency of httpie (EDIT: ephemeral-port-reserve) did not build either? I’ll look into it.

@alexshpilkin
Copy link
Member Author

Right, so python311Packages.ephemeral-port-reserve doesn’t even build (or more precisely fails tests) on current nixpkgs-unstable, it only works only on master. And yes, this looks like independent 3.11-induced breakage. The first four failures (in test_cli.py and test_output.py) I think are due to the changes to enum.Enum.__format__; the one in test_plugins_cli.py is a genuine failure I’m not sure about; the final three in test_sessions.py are because the cookies in the mock response aren’t ordered the way the test expects (?).

Should I just disable these on ≥ 3.11 and let upstream sort it out? FWIW, the prerequisites on 3.12 seem quite broken for now.

@wegank wegank added 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 2.status: merge conflict This PR has merge conflicts with the target branch labels Mar 19, 2024
@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Mar 20, 2024
@wegank wegank marked this pull request as draft March 21, 2024 12:12
@wegank wegank added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jul 4, 2024
@NickCao
Copy link
Member

NickCao commented Dec 4, 2024

No longer relevant.

@NickCao NickCao closed this Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: merge conflict This PR has merge conflicts with the target branch 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: python 10.rebuild-darwin: 1-10 10.rebuild-linux: 1-10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants