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

python3Packages.sanic: disable failing tests on aarch64-linux #145022

Merged
merged 1 commit into from
Nov 14, 2021
Merged

python3Packages.sanic: disable failing tests on aarch64-linux #145022

merged 1 commit into from
Nov 14, 2021

Conversation

thiagokokada
Copy link
Contributor

@thiagokokada thiagokokada commented Nov 8, 2021

Motivation for this change

ZHF: #144627

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 wip"
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 21.11 Release Notes (or backporting 21.05 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
  • Fits CONTRIBUTING.md.

# Some tests depends on sanic on PATH
PATH="$out/bin:$PATH"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My mistake on the previous PR. Gunicorn is already on checkInputs so it should be already available on PATH.

It is just sanic itself that isn't.

@thiagokokada
Copy link
Contributor Author

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

2 packages marked as broken and skipped:
  • python38Packages.pytest-sanic
  • python39Packages.pytest-sanic
13 packages built:
  • dyndnsc
  • python38Packages.entrance
  • python38Packages.entrance-with-router-features
  • python38Packages.json-logging
  • python38Packages.sanic
  • python38Packages.sanic-auth
  • python38Packages.sanic-testing
  • python39Packages.entrance
  • python39Packages.entrance-with-router-features
  • python39Packages.json-logging
  • python39Packages.sanic
  • python39Packages.sanic-auth
  • python39Packages.sanic-testing

@thiagokokada
Copy link
Contributor Author

Result of nixpkgs-review pr 145022 run on aarch64-linux 1

2 packages marked as broken and skipped:
  • python38Packages.pytest-sanic
  • python39Packages.pytest-sanic
3 packages failed to build:
  • dyndnsc
  • python38Packages.json-logging
  • python39Packages.json-logging
10 packages built:
  • python38Packages.entrance
  • python38Packages.entrance-with-router-features
  • python38Packages.sanic
  • python38Packages.sanic-auth
  • python38Packages.sanic-testing
  • python39Packages.entrance
  • python39Packages.entrance-with-router-features
  • python39Packages.sanic
  • python39Packages.sanic-auth
  • python39Packages.sanic-testing

"test_server_run"
"test_host_port"
"test_num_workers"
"test_access_logs"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what are the underlying errors. I feel like a lot of these shouldn't be specific to aarch64

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://hydra.nixos.org/build/157553084/nixlog/1

I think at least some of them are related to timing errors, maybe because aarch64 is slower than x86_64 🤔 (I don't know which machines are Hydra running for aarch64).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you mind saying a long the lines of, "these appear to be very sensitive to output of commands. output is different on aarch64"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jonringer Any other issue? Can we get this merged?

@thiagokokada
Copy link
Contributor Author

@ofborg build python38Packages.sanic python39Packages.sanic

@thiagokokada
Copy link
Contributor Author

I removed some tests that are probably failing because I was using emulation to test locally. It seems to work at least on Ofborg: https://github.com/NixOS/nixpkgs/pull/145022/checks?check_run_id=4139712392

@thiagokokada
Copy link
Contributor Author

@SuperSandro2000 can I have a review here?

@domenkozar domenkozar merged commit 0f95172 into NixOS:master Nov 14, 2021
@thiagokokada thiagokokada deleted the zhf-sanic-aarch64-linux branch November 14, 2021 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants