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

thespian: Python library init at 3.8.3 #31923

Merged
merged 2 commits into from Nov 24, 2017
Merged

thespian: Python library init at 3.8.3 #31923

merged 2 commits into from Nov 24, 2017

Conversation

kquick
Copy link
Contributor

@kquick kquick commented Nov 22, 2017

Motivation for this change

New package (library for Python).

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

# significant system resources. Thespian tests are performed via
# it's Travis CI configuration and do not need to be duplicated
# here.
doCheck = false;
Copy link
Member

Choose a reason for hiding this comment

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

The problem is here less the time spent, but that it requires network for most tests.

Copy link
Member

Choose a reason for hiding this comment

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

Indeed, please update the comment.

inherit pname version;
extension = "zip";
sha256 = "0vvwsh3waxd5ldrayr86kdcshv07bp361fl7p16g9i044vklwly4";
# fdbbea4edb6bad0ac0e53fc7bc6970e78e12eef4944aa4146bcdcb573201676c";
Copy link
Member

Choose a reason for hiding this comment

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

can you remove this

# significant system resources. Thespian tests are performed via
# it's Travis CI configuration and do not need to be duplicated
# here.
doCheck = false;
Copy link
Member

Choose a reason for hiding this comment

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

Indeed, please update the comment.

@kquick
Copy link
Contributor Author

kquick commented Nov 23, 2017

@FRidh, @Mic92 thanks for catching that, I've pushed updates to correct that.

@FRidh
Copy link
Member

FRidh commented Nov 23, 2017

Thespian tests are performed via it's Travis CI configuration and do not need to be duplicated here.

Why not? Do you mean with that, that we don't have to test a package if upstream tests it already?

@kquick
Copy link
Contributor Author

kquick commented Nov 24, 2017

@FRidh the thespian tests are oriented toward functional testing to verify that the process management and network communications provided by the package are working correctly. During the testing it will create hundreds of processes and use a large number of network ports and corresponding resources. The testing typically takes on the order of 25 minutes to complete. They certainly could be enabled, but it was my thought that this would be either a bad user experience or a high burden on the hydra system already under stress. The comment in question was not intended to absolve of the need for general testing, but rather intended to reassure the viewer that there was testing performed even though it wasn't performed immediately upon installation.

Do you have a recommendation for a better approach or better wording?

@FRidh
Copy link
Member

FRidh commented Nov 24, 2017

Ideally a limited amount of testing is done to determine the package is functioning. The absolute minimum would be checking imports, although typically we do not take the effort to implement this, and just have tests disabled.

@FRidh FRidh merged commit 59d294d into NixOS:master Nov 24, 2017
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.

None yet

4 participants