Skip to content

python3Packages.pillow: add some reverse dependencies to passthru.tests#159637

Merged
jonringer merged 1 commit intoNixOS:masterfrom
risicle:ris-pillow-passthru-deps
Mar 7, 2022
Merged

python3Packages.pillow: add some reverse dependencies to passthru.tests#159637
jonringer merged 1 commit intoNixOS:masterfrom
risicle:ris-pillow-passthru-deps

Conversation

@risicle
Copy link
Copy Markdown
Contributor

@risicle risicle commented Feb 12, 2022

Motivation for this change

Packages that have a large reverse dependency set are hard to test because a full rebuild is infeasible. But on the other hand, it's tricky for reviewers to remember which reverse dependencies of a particular package are particularly important to ensure are working or are known to be particularly sensitive to changes in the depended package.

Therefore it makes sense to add a small selection of such packages to passthru.tests. Done here for python3Packages.pillow.

See also #157872 for a similar approach being applied there.

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/)
  • 22.05 Release Notes (or backporting 21.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.

picked for importance or sensitivity to pillow changes
@github-actions github-actions bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Feb 12, 2022
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Feb 12, 2022
@Artturin
Copy link
Copy Markdown
Member

Artturin commented Mar 7, 2022

is there a way to build a packages all passthru.tests, i couldn't find a way in the manual.

@jonringer
Copy link
Copy Markdown
Contributor

is there a way to build a packages all passthru.tests, i couldn't find a way in the manual.

ofborg will do it by default

@jonringer
Copy link
Copy Markdown
Contributor

is there a way to build a packages all passthru.tests

if your doing nixpkgs-review, nix-build ./nixpkgs -A <pkg>.tests

@risicle
Copy link
Copy Markdown
Contributor Author

risicle commented Mar 7, 2022

nixpkgs-review has a slightly irritating quirk in that it can't handle attrsets of derivations specified in its -p parameters. I tend to cd nixpkgs from the resulting shell and nix-build the tests attribute from there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants