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.apricot-select: fixup dependency categories and disable tests #314707

Merged

Conversation

ConnorBaker
Copy link
Contributor

@ConnorBaker ConnorBaker commented May 25, 2024

Description of changes

This PR moves scikit-learn and torchvision to dependencies and out of nativeCheckInputs, because they are required by the package. This can be observed by trying to build the package with doCheck = false -- the build will fail, as they're no longer available.

This PR also disables tests a handful of flaky tests which I've seen fail on and off.

Lastly, this PR disables the test suite by default, as it can take hours (or timeout entirely):

ZHF: #309482

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • 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/)
  • 24.11 Release Notes (or backporting 23.11 and 24.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.

Add a 👍 reaction to pull requests you find important.

…dependencies

These are needed when building the package, not just during the checkPhase. This can be observed by setting
doCheck to false.
@ConnorBaker
Copy link
Contributor Author

Result of nixpkgs-review pr 314707 run on x86_64-darwin 1

4 packages built:
  • python311Packages.apricot-select
  • python311Packages.apricot-select.dist
  • python312Packages.apricot-select
  • python312Packages.apricot-select.dist

@ConnorBaker
Copy link
Contributor Author

Result of nixpkgs-review pr 314707 run on aarch64-darwin 1

4 packages built:
  • python311Packages.apricot-select
  • python311Packages.apricot-select.dist
  • python312Packages.apricot-select
  • python312Packages.apricot-select.dist

@ConnorBaker ConnorBaker force-pushed the fix/python3Packages.apricot-select branch from a0d13a9 to b1c46e1 Compare May 26, 2024 04:22
@ConnorBaker ConnorBaker changed the title python3Packages.apricot-select: fixup dependency categories and disable certain tests under CUDA python3Packages.apricot-select: fixup dependency categories and disable flaky tests May 26, 2024
@ConnorBaker
Copy link
Contributor Author

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

4 packages built:
  • python311Packages.apricot-select
  • python311Packages.apricot-select.dist
  • python312Packages.apricot-select
  • python312Packages.apricot-select.dist

@ConnorBaker
Copy link
Contributor Author

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

4 packages built:
  • python311Packages.apricot-select
  • python311Packages.apricot-select.dist
  • python312Packages.apricot-select
  • python312Packages.apricot-select.dist

@ConnorBaker ConnorBaker marked this pull request as ready for review May 26, 2024 18:55
@ConnorBaker ConnorBaker changed the title python3Packages.apricot-select: fixup dependency categories and disable flaky tests python3Packages.apricot-select: fixup dependency categories and disable tests May 26, 2024
@nbraud
Copy link
Contributor

nbraud commented May 26, 2024

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

4 packages built:
  • python311Packages.apricot-select
  • python311Packages.apricot-select.dist
  • python312Packages.apricot-select
  • python312Packages.apricot-select.dist

Copy link
Member

@natsukium natsukium left a comment

Choose a reason for hiding this comment

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

It would be great if there were comments in the code to prevent someone from accidentally enabling the tests.

@ConnorBaker ConnorBaker force-pushed the fix/python3Packages.apricot-select branch from 4e3ec06 to 7568ee0 Compare May 27, 2024 01:42
@ConnorBaker
Copy link
Contributor Author

Added a comment about why the tests are disabled by default.

@ConnorBaker ConnorBaker merged commit 2663954 into NixOS:master May 27, 2024
20 checks passed
@ConnorBaker ConnorBaker deleted the fix/python3Packages.apricot-select branch May 27, 2024 03:12
Copy link
Contributor

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

3 participants