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

home-assistant: add multiple dependencies #36108

Merged
merged 9 commits into from Mar 4, 2018
Merged

Conversation

peterhoeg
Copy link
Member

Motivation for this change

Bits missing for home-assistant.

Cc: @dotlambda @FRidh

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.

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Partial log (click to expand)

running=/nix/store/p1bp0kpmxi7nzrla7n7c4waqic0a2myk-python3-3.6.4/bin/python3.6m -m subunit.run discover requests_mock  --load-list /tmp/nix-build-python3.6-requests-mock-1.3.0.drv-0/tmpawoywbg6
running=/nix/store/p1bp0kpmxi7nzrla7n7c4waqic0a2myk-python3-3.6.4/bin/python3.6m -m subunit.run discover requests_mock  --load-list /tmp/nix-build-python3.6-requests-mock-1.3.0.drv-0/tmps2hthg8_
running=/nix/store/p1bp0kpmxi7nzrla7n7c4waqic0a2myk-python3-3.6.4/bin/python3.6m -m subunit.run discover requests_mock  --load-list /tmp/nix-build-python3.6-requests-mock-1.3.0.drv-0/tmpb1ljuxpa
running=/nix/store/p1bp0kpmxi7nzrla7n7c4waqic0a2myk-python3-3.6.4/bin/python3.6m -m subunit.run discover requests_mock  --load-list /tmp/nix-build-python3.6-requests-mock-1.3.0.drv-0/tmpx8fwzn7l
running=/nix/store/p1bp0kpmxi7nzrla7n7c4waqic0a2myk-python3-3.6.4/bin/python3.6m -m subunit.run discover requests_mock  --load-list /tmp/nix-build-python3.6-requests-mock-1.3.0.drv-0/tmpttk2e7jb
running=/nix/store/p1bp0kpmxi7nzrla7n7c4waqic0a2myk-python3-3.6.4/bin/python3.6m -m subunit.run discover requests_mock  --load-list /tmp/nix-build-python3.6-requests-mock-1.3.0.drv-0/tmpzbbaf9yk
Ran 114 tests in 0.099s
PASSED (id=0)
cannot build derivation ‘/nix/store/anh04rfpb4brp9hc2bn5gkxln64m3csj-homeassistant-0.63.3.drv’: 3 dependencies couldn't be built
error: build of ‘/nix/store/anh04rfpb4brp9hc2bn5gkxln64m3csj-homeassistant-0.63.3.drv’ failed

@peterhoeg
Copy link
Member Author

@grahamc - is this failure the same as #35659?

@dotlambda
Copy link
Member

@peterhoeg Do you have an idea for a simple test involving AppDaemon that could be added to https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/home-assistant.nix?

@@ -629,16 +629,15 @@ in {
arrow = callPackage ../development/python-modules/arrow { };

async = buildPythonPackage rec {
name = "async-0.6.1";
disabled = isPy3k;
name = "async-0.6.2";
meta.maintainers = with maintainers; [ ];

buildInputs = with self; [ pkgs.zlib ];
doCheck = false;

src = pkgs.fetchurl {
Copy link
Member

Choose a reason for hiding this comment

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

fetchPypi

@@ -629,16 +629,15 @@ in {
arrow = callPackage ../development/python-modules/arrow { };

async = buildPythonPackage rec {
name = "async-0.6.1";
disabled = isPy3k;
name = "async-0.6.2";
Copy link
Member

Choose a reason for hiding this comment

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

pname, version

@@ -629,16 +629,15 @@ in {
arrow = callPackage ../development/python-modules/arrow { };

async = buildPythonPackage rec {
Copy link
Member

Choose a reason for hiding this comment

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

If that's okay, I'd ask you to move the package to development/python-modules.

Copy link
Member

@dotlambda dotlambda left a comment

Choose a reason for hiding this comment

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

You should prefix all but the last commit messages with pythonPackages.

propagatedBuildInputs = [ requests six ];

# it doesn't find any tests to run and then errors out
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.

We should probably fetch from GitHub in that case. I've opened an upstream PR: btubbs/sseclient#12

Copy link
Member Author

Choose a reason for hiding this comment

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

OK with things this way?

Copy link
Member

Choose a reason for hiding this comment

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

Update is already available :)

Copy link
Member

Choose a reason for hiding this comment

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

I have updated it to 0.0.19 and enabled the tests.

description = "Provide an interface to the Yahoo! Weather RSS feed";
homepage = https://github.com/pvizeli/yahooweather;
license = licenses.bsd2;
maintainers = with lib.maintainers; [ peterhoeg ];
Copy link
Member

Choose a reason for hiding this comment

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

no lib


buildPythonPackage rec {
pname = "appdaemon";
version = "3.0.0b3";
Copy link
Member

Choose a reason for hiding this comment

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

Do you intentionally use a beta version?

Copy link
Member Author

Choose a reason for hiding this comment

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

I started with the latest release version but there were dependency version conflicts.

Copy link
Member

Choose a reason for hiding this comment

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

That will probably be a problem in the future as well. However, I think AppDaemon is never used as a library even though the import statements on http://appdaemon.readthedocs.io/en/stable/APPGUIDE.html suggest otherwise. These apps that import the homeassistant.appdaemon module are not executables on their own but imported by AppDaemon.

This means we can move appdaemon oy of pythonPackages without a problem. You might want to create an appdaemon.nix file in the servers/home-assistant directory.
Then, we can pin the versions of AppDaemon's dependencies to whatever is needed, just like in https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/home-assistant/default.nix.

I leave choosing the beta or the stable version up to you :)

@dotlambda
Copy link
Member

@peterhoeg Thanks for packaging AppDaemon! We should probably add an AppDaemon option to the home-assistant module, something like appdaemon.enable, appdaemon.configDir, appdaemon.config and possibly appdaemon.apps (for the last one I have no idea how it could work). Do you want me to do that? I have however no experience with using AppDaemon.

@peterhoeg
Copy link
Member Author

Do you have an idea for a simple test involving AppDaemon that could be added to

and

We should probably add an AppDaemon option to the home-assistant module

I don't have it running yet as I haven't had the time to look at it but I will be using it for "HADashboard". I think we can always add those later (tests and nixos module).

@peterhoeg
Copy link
Member Author

As for all the other comments, I'll get those cleaned up later tonight.

@dotlambda
Copy link
Member

dotlambda commented Feb 28, 2018

Okay, then whoever first has a running AppDaemon config and the necessary time can add the module options and an appropriate test.

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Partial log (click to expand)

============ 28501 passed, 2 skipped, 1 xfailed in 3087.67 seconds =============
........................................................................ [ 56%]
building of '/nix/store/r40bj6qx2n33a1qpmg89fdcs029798ql-python3.6-cffi-1.11.4.drv' timed out after 3600 seconds
cannot build derivation '/nix/store/8gq1ksc446has6kygi2zxs5xjdh7s8jd-python3.6-cryptography-2.1.4.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/ys9h122aiq7s4v2x09d1ziis81fyr875-python3.6-pyOpenSSL-17.5.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/khsii21ichk0x1d87471j9rq49wzwpki-python3.6-urllib3-1.22.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/7wycz7909sjchj1575sssdaqisfqy9rd-python3.6-requests-2.18.4.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/3rs8hp0fyfprjhf3q6q8s05k32pnq0jp-python3.6-requests-mock-1.3.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/a87w0pdk553sj3xq3lfs893adcn1gm9i-homeassistant-0.63.3.drv': 6 dependencies couldn't be built
�[31;1merror:�[0m build of '/nix/store/a87w0pdk553sj3xq3lfs893adcn1gm9i-homeassistant-0.63.3.drv' failed

@grahamc
Copy link
Member

grahamc commented Feb 28, 2018

I don't know, @peterhoeg. Is there something I should dig in to?

@dotlambda
Copy link
Member

Nothing to dig into, it's pytest-mock:

UnicodeDecodeError: 'ascii' codec can't decode byte 0xf0 in position 1820: ordinal not in range(128)
builder for '/nix/store/6pa8n016811wiml5b0d91sm3b5ka0g0x-python3.6-pytest-mock-1.7.0.drv' failed with exit code 1

@peterhoeg peterhoeg force-pushed the p/ha-deps branch 2 times, most recently from 8979fee to 9eef65b Compare March 1, 2018 03:17
@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Partial log (click to expand)

checking for references to /tmp/nix-build-python3.6-requests-mock-1.3.0.drv-0 in /nix/store/hhadzkk09im45hqvks9bx0nlxdx52q1f-python3.6-requests-mock-1.3.0...
running install tests
running test
running=/nix/store/p1bp0kpmxi7nzrla7n7c4waqic0a2myk-python3-3.6.4/bin/python3.6m -m subunit.run discover requests_mock --list 
running=/nix/store/p1bp0kpmxi7nzrla7n7c4waqic0a2myk-python3-3.6.4/bin/python3.6m -m subunit.run discover requests_mock  --load-list /tmp/nix-build-python3.6-requests-mock-1.3.0.drv-0/tmp5seucc26
running=/nix/store/p1bp0kpmxi7nzrla7n7c4waqic0a2myk-python3-3.6.4/bin/python3.6m -m subunit.run discover requests_mock  --load-list /tmp/nix-build-python3.6-requests-mock-1.3.0.drv-0/tmpjrdxdkcm
Ran 114 tests in 0.298s
PASSED (id=0)
cannot build derivation ‘/nix/store/anh04rfpb4brp9hc2bn5gkxln64m3csj-homeassistant-0.63.3.drv’: 3 dependencies couldn't be built
error: build of ‘/nix/store/anh04rfpb4brp9hc2bn5gkxln64m3csj-homeassistant-0.63.3.drv’ failed

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Partial log (click to expand)

running=/nix/store/9yr86q335k2k5ccznfcxsw0dq11zrwsw-python3-3.6.4/bin/python3.6m -m subunit.run discover requests_mock  --load-list /build/tmpd8sgywcc
running=/nix/store/9yr86q335k2k5ccznfcxsw0dq11zrwsw-python3-3.6.4/bin/python3.6m -m subunit.run discover requests_mock  --load-list /build/tmp5v625eze
running=/nix/store/9yr86q335k2k5ccznfcxsw0dq11zrwsw-python3-3.6.4/bin/python3.6m -m subunit.run discover requests_mock  --load-list /build/tmp3f0m3ufb
running=/nix/store/9yr86q335k2k5ccznfcxsw0dq11zrwsw-python3-3.6.4/bin/python3.6m -m subunit.run discover requests_mock  --load-list /build/tmpj5owp_p1
running=/nix/store/9yr86q335k2k5ccznfcxsw0dq11zrwsw-python3-3.6.4/bin/python3.6m -m subunit.run discover requests_mock  --load-list /build/tmpypg12idc
running=/nix/store/9yr86q335k2k5ccznfcxsw0dq11zrwsw-python3-3.6.4/bin/python3.6m -m subunit.run discover requests_mock  --load-list /build/tmpg685z_hy
Ran 114 tests in 7.960s
PASSED (id=0)
cannot build derivation '/nix/store/a87w0pdk553sj3xq3lfs893adcn1gm9i-homeassistant-0.63.3.drv': 3 dependencies couldn't be built
�[31;1merror:�[0m build of '/nix/store/a87w0pdk553sj3xq3lfs893adcn1gm9i-homeassistant-0.63.3.drv' failed

@dotlambda
Copy link
Member

@peterhoeg Please see my comment regarding the AppDaemon expression.

@GrahamcOfBorg build pythonPackages.websocket-client python3Packages.websocket-client pythonPackages.aiohttp-jinja2 python3Packages.aiohttp-jinja2 pythonPackages.deluge-client python3Packages.deluge-client pythonPackages.sseclient python3Packages.sseclient pythonPackages.async python3Packages.async pythonPackages.yahooweather python3Packages.yahooweather pythonPackages.ha-ffmpeg python3Packages.ha-ffmpeg

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Partial log (click to expand)

while evaluating ‘getOutput’ at /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/ogden/lib/attrsets.nix:450:23, called from undefined position:
while evaluating anonymous function at /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/ogden/pkgs/stdenv/generic/make-derivation.nix:111:17, called from undefined position:
while evaluating ‘callPackageWith’ at /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/ogden/lib/customisation.nix:113:35, called from /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/ogden/pkgs/top-level/python-packages.nix:431:13:
while evaluating ‘makeOverridable’ at /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/ogden/lib/customisation.nix:72:24, called from /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/ogden/lib/customisation.nix:117:8:
while evaluating anonymous function at /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/ogden/pkgs/development/python-modules/aiohttp/default.nix:1:1, called from /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/ogden/lib/customisation.nix:74:12:
while evaluating ‘makeOverridablePythonPackage’ at /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/ogden/pkgs/top-level/python-packages.nix:40:37, called from /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/ogden/pkgs/development/python-modules/aiohttp/default.nix:16:1:
while evaluating ‘makeOverridable’ at /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/ogden/lib/customisation.nix:72:24, called from /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/ogden/pkgs/top-level/python-packages.nix:42:12:
while evaluating anonymous function at /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/ogden/pkgs/development/interpreters/python/build-python-package.nix:26:1, called from /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/ogden/lib/customisation.nix:74:12:
while evaluating anonymous function at /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/ogden/pkgs/development/interpreters/python/mk-python-derivation.nix:14:1, called from /var/lib/gc-of-borg/.nix-test-rs/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/ogden/pkgs/development/interpreters/python/build-python-package.nix:43:4:
aiohttp-3.0.1 not supported for interpreter python2.7

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Partial log (click to expand)

while evaluating 'getOutput' at �[1m/var/lib/gc-of-borg/nix-test-rs-14/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-14/lib/attrsets.nix�[0m:450:23, called from undefined position:
while evaluating anonymous function at �[1m/var/lib/gc-of-borg/nix-test-rs-14/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-14/pkgs/stdenv/generic/make-derivation.nix�[0m:111:17, called from undefined position:
while evaluating 'callPackageWith' at �[1m/var/lib/gc-of-borg/nix-test-rs-14/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-14/lib/customisation.nix�[0m:113:35, called from �[1m/var/lib/gc-of-borg/nix-test-rs-14/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-14/pkgs/top-level/python-packages.nix�[0m:431:13:
while evaluating 'makeOverridable' at �[1m/var/lib/gc-of-borg/nix-test-rs-14/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-14/lib/customisation.nix�[0m:72:24, called from �[1m/var/lib/gc-of-borg/nix-test-rs-14/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-14/lib/customisation.nix�[0m:117:8:
while evaluating anonymous function at �[1m/var/lib/gc-of-borg/nix-test-rs-14/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-14/pkgs/development/python-modules/aiohttp/default.nix�[0m:1:1, called from �[1m/var/lib/gc-of-borg/nix-test-rs-14/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-14/lib/customisation.nix�[0m:74:12:
while evaluating 'makeOverridablePythonPackage' at �[1m/var/lib/gc-of-borg/nix-test-rs-14/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-14/pkgs/top-level/python-packages.nix�[0m:40:37, called from �[1m/var/lib/gc-of-borg/nix-test-rs-14/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-14/pkgs/development/python-modules/aiohttp/default.nix�[0m:16:1:
while evaluating 'makeOverridable' at �[1m/var/lib/gc-of-borg/nix-test-rs-14/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-14/lib/customisation.nix�[0m:72:24, called from �[1m/var/lib/gc-of-borg/nix-test-rs-14/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-14/pkgs/top-level/python-packages.nix�[0m:42:12:
while evaluating anonymous function at �[1m/var/lib/gc-of-borg/nix-test-rs-14/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-14/pkgs/development/interpreters/python/build-python-package.nix�[0m:26:1, called from �[1m/var/lib/gc-of-borg/nix-test-rs-14/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-14/lib/customisation.nix�[0m:74:12:
while evaluating anonymous function at �[1m/var/lib/gc-of-borg/nix-test-rs-14/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-14/pkgs/development/interpreters/python/mk-python-derivation.nix�[0m:14:1, called from �[1m/var/lib/gc-of-borg/nix-test-rs-14/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-14/pkgs/development/interpreters/python/build-python-package.nix�[0m:43:4:
aiohttp-3.0.1 not supported for interpreter python2.7

Copy link
Member

@dotlambda dotlambda left a comment

Choose a reason for hiding this comment

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

I think it's best to rebase on staging so we can test aiohttp-jinja2, which requires pytest-mock

sha256 = "048zfidv08sr4hivdd3xxf1pywhqbnszj5qcn51h2f4y1588fhpf";
};

# it will try to connect to a running instance
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we could start one in preCheck?

buildPythonPackage rec {
pname = "ha-ffmpeg";
version = "1.9";

Copy link
Member

Choose a reason for hiding this comment

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

propagatedBuildInputs = [ requests six ];

# it doesn't find any tests to run and then errors out
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.

Update is already available :)

buildPythonPackage rec {
pname = "yahooweather";
version = "0.10";

Copy link
Member

Choose a reason for hiding this comment

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

This probably needs to be disabled for Python 2 as well: https://github.com/pvizeli/yahooweather/blob/master/setup.py#L27

inherit pname version;
sha256 = "0bsxmngkpzvqm50i2cnxjzhpbdhb8s10ly8h5q08696cjihqdkpa";
};

Copy link
Member

Choose a reason for hiding this comment

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

# Tests require network access
doCheck = false;

See https://github.com/pvizeli/yahooweather/blob/master/test.py

@@ -21394,6 +21393,8 @@ EOF
pysigset = callPackage ../development/python-modules/pysigset { };

us = callPackage ../development/python-modules/us { };

websocket-client = callPackage ../development/python-modules/websocket-client { };
Copy link
Member

Choose a reason for hiding this comment

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

This is already packaged. It is called websocket_client.

buildInputs = [ ffmpeg ];

propagatedBuildInputs = [ async-timeout ];

Copy link
Member

Choose a reason for hiding this comment

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

# only manual tests
doCheck = false;

, zlib }:

# The only user of this is "appdaemon" and we should drop it when appdaemon moves away from it:
# https://github.com/home-assistant/appdaemon/issues/246
Copy link
Member

Choose a reason for hiding this comment

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

I'm wondering why ofborg labeled 11-100 rebuilds, then. However, I cannot find any other users of async as well

@dotlambda
Copy link
Member

@peterhoeg Do you want me to do the changes?

@peterhoeg
Copy link
Member Author

@peterhoeg Do you want me to do the changes?

If you have the time, of course!!

@dotlambda
Copy link
Member

dotlambda commented Mar 4, 2018

I know it has disadvantages, but that's the way @FRidh taught to me :D

@dotlambda
Copy link
Member

I have now removed async from the package set because AppDaemon/appdaemon#252 was merged.

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

shrinking RPATHs of ELF executables and libraries in /nix/store/7xdkq554pzdcl1gf02gzwirfcig2zr06-appdaemon-3.0.0b4
strip is /nix/store/ki5nz16mh8h8qngsxi6wfr38ifzi064i-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/7xdkq554pzdcl1gf02gzwirfcig2zr06-appdaemon-3.0.0b4/lib  /nix/store/7xdkq554pzdcl1gf02gzwirfcig2zr06-appdaemon-3.0.0b4/bin 
patching script interpreter paths in /nix/store/7xdkq554pzdcl1gf02gzwirfcig2zr06-appdaemon-3.0.0b4
/nix/store/gpy3r9ss5ngfkib8ylx7jzgahq7m0x5b-patch-shebangs.sh: line 22: warning: command substitution: ignored null byte in input
/nix/store/gpy3r9ss5ngfkib8ylx7jzgahq7m0x5b-patch-shebangs.sh: line 22: warning: command substitution: ignored null byte in input
/nix/store/gpy3r9ss5ngfkib8ylx7jzgahq7m0x5b-patch-shebangs.sh: line 22: warning: command substitution: ignored null byte in input
/nix/store/gpy3r9ss5ngfkib8ylx7jzgahq7m0x5b-patch-shebangs.sh: line 22: warning: command substitution: ignored null byte in input
checking for references to /tmp/nix-build-appdaemon-3.0.0b4.drv-0 in /nix/store/7xdkq554pzdcl1gf02gzwirfcig2zr06-appdaemon-3.0.0b4...
wrapping `/nix/store/7xdkq554pzdcl1gf02gzwirfcig2zr06-appdaemon-3.0.0b4/bin/appdaemon'...

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

patching script interpreter paths in /nix/store/1f08p6qifm56d2b1g26j293y78rj5p1q-appdaemon-3.0.0b4
head: error writing 'standard output': Broken pipe
/nix/store/gpy3r9ss5ngfkib8ylx7jzgahq7m0x5b-patch-shebangs.sh: line 22: warning: command substitution: ignored null byte in input
/nix/store/gpy3r9ss5ngfkib8ylx7jzgahq7m0x5b-patch-shebangs.sh: line 22: warning: command substitution: ignored null byte in input
/nix/store/gpy3r9ss5ngfkib8ylx7jzgahq7m0x5b-patch-shebangs.sh: line 22: warning: command substitution: ignored null byte in input
/nix/store/gpy3r9ss5ngfkib8ylx7jzgahq7m0x5b-patch-shebangs.sh: line 22: warning: command substitution: ignored null byte in input
checking for references to /build in /nix/store/1f08p6qifm56d2b1g26j293y78rj5p1q-appdaemon-3.0.0b4...
wrapping `/nix/store/1f08p6qifm56d2b1g26j293y78rj5p1q-appdaemon-3.0.0b4/bin/appdaemon'...
/nix/store/1f08p6qifm56d2b1g26j293y78rj5p1q-appdaemon-3.0.0b4
/nix/store/8q7xpj7iy4504fvdgfj04gycdxv5dq8x-homeassistant-0.63.3

Copy link
Member

@dotlambda dotlambda left a comment

Choose a reason for hiding this comment

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

@peterhoeg Feel free to merge.

@peterhoeg peterhoeg merged commit 0b8401c into NixOS:staging Mar 4, 2018
@peterhoeg
Copy link
Member Author

Thanks for your help!

@peterhoeg peterhoeg deleted the p/ha-deps branch March 4, 2018 23:22
@peterhoeg peterhoeg restored the p/ha-deps branch March 5, 2018 00:36
@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Partial log (click to expand)

stripping (with command strip and flags -S) in /nix/store/f9l9yl6rsa8064ywjskm67ri6khxvgm4-appdaemon-3.0.0b4/lib  /nix/store/f9l9yl6rsa8064ywjskm67ri6khxvgm4-appdaemon-3.0.0b4/bin
patching script interpreter paths in /nix/store/f9l9yl6rsa8064ywjskm67ri6khxvgm4-appdaemon-3.0.0b4
head: error writing 'standard output': Broken pipe
/nix/store/gpy3r9ss5ngfkib8ylx7jzgahq7m0x5b-patch-shebangs.sh: line 22: warning: command substitution: ignored null byte in input
/nix/store/gpy3r9ss5ngfkib8ylx7jzgahq7m0x5b-patch-shebangs.sh: line 22: warning: command substitution: ignored null byte in input
/nix/store/gpy3r9ss5ngfkib8ylx7jzgahq7m0x5b-patch-shebangs.sh: line 22: warning: command substitution: ignored null byte in input
/nix/store/gpy3r9ss5ngfkib8ylx7jzgahq7m0x5b-patch-shebangs.sh: line 22: warning: command substitution: ignored null byte in input
checking for references to /build in /nix/store/f9l9yl6rsa8064ywjskm67ri6khxvgm4-appdaemon-3.0.0b4...
wrapping `/nix/store/f9l9yl6rsa8064ywjskm67ri6khxvgm4-appdaemon-3.0.0b4/bin/appdaemon'...
�[31;1merror:�[0m build of '/nix/store/vvrgjyj7n7za0gh09k4c8842jy2dk0id-homeassistant-0.63.3.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

tests/components/test_introduction.py .                                  [ 72%]
tests/components/test_logger.py ....                                     [ 75%]
tests/components/test_script.py .....                                    [ 78%]
tests/components/test_shell_command.py ......                            [ 81%]
tests/components/test_system_log.py ...............                      [ 91%]
tests/components/test_websocket_api.py ..............                    [100%]

========================= 160 passed in 16.36 seconds ==========================
/nix/store/pifgw2i5jnh9a7nb7sjdlm5jamdjl5l5-appdaemon-3.0.0b4
/nix/store/65qwzpqzscv8ddhkxpmshy3j0ckbqihh-homeassistant-0.63.3

@peterhoeg
Copy link
Member Author

I merged this into staging as the base was changed a few days ago. Does anybody know what the best way is to get this into master? Does somebody regularly merge staging back in? Do I need to ask someone to do it manually or is it simply a matter of cherrypicking the commits back into master (via a temp branch obviously).

@dotlambda
Copy link
Member

dotlambda commented Mar 5, 2018

Afaik it is merged regularly, i.e. when about as many jobs fail in the staging jobset as there are failing jobs in the trunk jobset. You'd have to cherry-pick some more commits if you want to use this btw, e.g. the one concerning pytest-mock.

@peterhoeg
Copy link
Member Author

I have a bunch of local patches here anyway (including reverting pytest-mock) so I'll continue carrying what is needed locally until it hits master (and subsequently unstable).

@peterhoeg peterhoeg deleted the p/ha-deps branch March 18, 2018 15:44
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