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

piexif: 1.0.13 -> 1.1.2 (and bunch of other packages) #49409

Merged
merged 13 commits into from Nov 29, 2018

Conversation

jluttine
Copy link
Member

Motivation for this change

I just wanted to upgrade Piexif but Thumbor didn't have tests enabled so I didn't dare to upgrade without having tests passing successfully. Well, enabling the tests required quite a few new packages to be added...

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option 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/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

Copy link
Member

@veprbl veprbl left a comment

Choose a reason for hiding this comment

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

Looks great! This could use a rebase and reorder commits to enable thumbor tests after you add pyssim, preggy and cairosvg1.

@veprbl
Copy link
Member

veprbl commented Nov 27, 2018

cc @Ma27

@Ma27
Copy link
Member

Ma27 commented Nov 27, 2018

First of all thank you @jluttine for the work!
As I was notified here (I guess because I maintain thumbor), I'd ask you to wait with merging until tomorrow, then I can have a look at this as well :)

Copy link
Member

@Ma27 Ma27 left a comment

Choose a reason for hiding this comment

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

Thanks a lot for working hard on improving these python packages (and all the dependency issues in here). I added some minor comments (I'm also happy to discuss about).

I just tested thumbor locally and it seems to still work :)

@jluttine
Copy link
Member Author

@veprbl Thanks for the comments!

I tried rebasing on master but got some conflicts not related to this pull request so I didn't dare proceed solving those. This is now based on nixos-unstable.

GitHub shows the commits in weird order. Probably based on some timestamps. The commits are already in the order you are requesting.

@Ma27
Copy link
Member

Ma27 commented Nov 28, 2018

I tried rebasing on master but got some conflicts not related to this pull request so I didn't dare proceed solving those. This is now based on nixos-unstable. GitHub shows the commits in weird order. Probably based on some timestamps. The commits are already in the order you are requesting.

Indeed, the GitHub timeline can be a bit confusing, especially when force-pushing onto your branch. The history of a branch is usually clearer when looking at the "Commits" tab.

I'll have a look at the conflict, but I won't push a resolution (yet).

@Ma27
Copy link
Member

Ma27 commented Nov 28, 2018

@jluttine it seems as you checked out your branch before the change(s) were merge that moved all remaining packages from pkgs/top-level/python-packages.nixinto their own files.

From what I can see it's only one large conflict which I resolved locally. I'll test all the changes now and I'd ask for your permission to push this onto your branch (I can do this as NixOS maintainer, but in such a case I'd ask for permission first ^^)

@jluttine
Copy link
Member Author

@Ma27 Great, thanks! Feel free to push to this branch.

@Ma27
Copy link
Member

Ma27 commented Nov 28, 2018

btw I'm getting irreproducible build failures during the Redis tests, that are fixed when restarting the build.

EDIT: I'm not sure though if it's an issue with the patch or with my conflict resolution. Reviewing the commits step by step for now...

@Ma27
Copy link
Member

Ma27 commented Nov 28, 2018

The problem causing the test failures on my checkout is the following commit: 094e643

I'll look into the upstream sources (reverting this locally fixed the thumbor build again. I'll force-push the fixed patches as soon as I've found a suitable solution, but please recheck if everything works for you as well ok @jluttine ?

@Ma27
Copy link
Member

Ma27 commented Nov 28, 2018

@GrahamcOfBorg build pythonPackages.thumbor pythonPackages.piexif python3Packages.piexif

@Ma27
Copy link
Member

Ma27 commented Nov 28, 2018

Let's wait for ofBorg, after that the change should be fine :)

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: pythonPackages.thumbor, pythonPackages.piexif, python3Packages.piexif

Partial log (click to expand)

test_logger_should_not_be_null (tests.test_utils.UtilsTestCase) ... ok

----------------------------------------------------------------------
Ran 492 tests in 33.385s

OK (SKIP=1)
Joining threads....
/nix/store/yybv9iy8q83qjnddxmh5njlmvfyr986h-python2.7-thumbor-6.5.2
/nix/store/rldf72y0rrn5j51pldlmwn3liyv4rh67-python2.7-piexif-1.1.2
/nix/store/w6xxv2x02b529wghg61qzl7lmn6iqsrn-python3.7-piexif-1.1.2

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: pythonPackages.thumbor, pythonPackages.piexif, python3Packages.piexif

Partial log (click to expand)

test_logger_should_not_be_null (tests.test_utils.UtilsTestCase) ... ok

----------------------------------------------------------------------
Ran 492 tests in 48.339s

OK (SKIP=1)
Joining threads....
/nix/store/n7rn86k9f0gm21sbz1m4vphnvk645agn-python2.7-thumbor-6.5.2
/nix/store/37bb0ylbgzi3vv5kh0q996sbln9sxw6f-python2.7-piexif-1.1.2
/nix/store/ab2qml7ys48l29wbc4xjdgnk8pgllh01-python3.7-piexif-1.1.2

@GrahamcOfBorg
Copy link

Timed out, unknown build status on x86_64-darwin (full log)

Attempted: pythonPackages.thumbor, pythonPackages.piexif, python3Packages.piexif

Partial log (click to expand)

libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I.. -pthread -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall -Wno-sign-compare -O2 -g -std=c++11 -DNDEBUG -c google/protobuf/compiler/java/java_message_builder.cc -o google/protobuf/compiler/java/java_message_builder.o >/dev/null 2>&1
/nix/store/sv35yjk452mggg76bz94nppibj96a66h-bash-4.4-p23/bin/bash ../libtool  --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I. -I..    -pthread -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall -Wno-sign-compare -O2 -g -std=c++11 -DNDEBUG -c -o google/protobuf/compiler/java/java_message_builder_lite.lo google/protobuf/compiler/java/java_message_builder_lite.cc
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I.. -pthread -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall -Wno-sign-compare -O2 -g -std=c++11 -DNDEBUG -c google/protobuf/compiler/java/java_message_builder_lite.cc  -fno-common -DPIC -o google/protobuf/compiler/java/.libs/java_message_builder_lite.o
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I.. -pthread -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall -Wno-sign-compare -O2 -g -std=c++11 -DNDEBUG -c google/protobuf/compiler/java/java_message_builder_lite.cc -o google/protobuf/compiler/java/java_message_builder_lite.o >/dev/null 2>&1
building of '/nix/store/w783xj47dpgvc1gaqj22izfh5cmka8gs-protobuf-3.6.1.drv' timed out after 1800 seconds
cannot build derivation '/nix/store/4jb0vlx0pkqzpbivc90avbssipprza3p-opencv-3.4.3.drv': 3 dependencies couldn't be built
building of '/nix/store/jl77c90fs3jraylwdcafn3g5703rlgvp-python2.7-pyres-1.5.drv' timed out after 1800 seconds
cannot build derivation '/nix/store/ilvjzrj8xswgkc4ipr5zqam32xhs904k-python2.7-remotecv-2.2.2.drv': 3 dependencies couldn't be built
cannot build derivation '/nix/store/cndjzfd5rrrp3z0nnrhbzl3ib8hsfx5k-python2.7-thumbor-6.5.2.drv': 4 dependencies couldn't be built
error: build of '/nix/store/cndjzfd5rrrp3z0nnrhbzl3ib8hsfx5k-python2.7-thumbor-6.5.2.drv' failed

Copy link
Member

@Ma27 Ma27 left a comment

Choose a reason for hiding this comment

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

The change itself seems fine now, thanks a lot! 👍

I've observed several Darwin issues in the last days on Borg, it's possible that the Darwin package set isn't completely built, thus the timeout.

I'll wait with merging until @jluttine had a look at the new diff (after rebasing onto master and resolving the fairly big conflict in pkgs/top-level/python-packages.nix and fixing pyres to build on current master)

@jluttine
Copy link
Member Author

@Ma27 Looks like all my review fixes are gone.

@Ma27
Copy link
Member

Ma27 commented Nov 29, 2018

reapplied review comments and rebuilt packages, thanks! :)

@jluttine
Copy link
Member Author

Looks good. I ran nix-shell -p pythonPackages.thumbor and it successfully opened the shell. So I guess it's ok then. 🙂 I didn't run nox-review now.

@Ma27
Copy link
Member

Ma27 commented Nov 29, 2018

The only failing package when running nix-review pr 49409 is python37Packages.Nikola, but this is failing on master as well: https://hydra.nixos.org/job/nixos/trunk-combined/nixpkgs.python37Packages.Nikola.x86_64-linux/all

I checked it locally and it doesn't seem to be related to your change (it wants piexif>=1.0.3, so your piexif bump won't break the installation)

@Ma27 Ma27 merged commit a9ffe7f into NixOS:master Nov 29, 2018
@Ma27
Copy link
Member

Ma27 commented Nov 29, 2018

@jluttine thanks!

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

5 participants