| 14 Oct 2024 |
Sandro 🐧 | 3.2 GB | 11:46:46 |
mattleon | The chip repo doesn't require a full recursive submodule init - if you use the checkout script in the chip repo, it only downloads the required repos and is only a few hundred MB | 11:49:46 |
mattleon | https://matrix.to/#/!QhvgabMQzwEQeWehhZ:lossy.network/$BvRVqF1pRD5U6HZEZuMXCLnIK-n3t0zAUCLGH8omI1A?via=matrix.org&via=nixos.dev&via=tchncs.de | 12:01:07 |
| 15 Oct 2024 |
@hexa:lossy.network | @mattleon:matrix.org are you up for reviewing this?
| 21:04:17 |
symphorien | I solved the size issue by removing 3 submodules and compressing the result | 21:10:36 |
symphorien | I really don't want to run the "user friendly" shell scripts, they access the internet as much as they can, and have all sorts of assumptions about the system that break in the sandbox | 21:11:30 |
@hexa:lossy.network | thank you very much for digging so deep into this | 21:16:37 |
@hexa:lossy.network | it it unfortunately one of the most involved builds I've seen in nixpkgs thus far | 21:16:49 |
@hexa:lossy.network | such a big vendor consortium mess ::/ | 21:16:56 |
@hexa:lossy.network | * such a big vendor consortium mess 😕 | 21:16:57 |
@hexa:lossy.network | I'm slightly afraid of updatinng it | 21:17:08 |
@hexa:lossy.network | * I'm slightly afraid of updating it going forward | 21:17:14 |
@hexa:lossy.network | already moving the src tarball around takes a lot of time | 21:17:38 |
symphorien | I did one update and I had to change nothing | 21:21:22 |
symphorien | of course it's a single datapoint | 21:21:36 |
mattleon | I'd be up to review it and/or be added as a maintainer for this package | 21:55:52 |
| 16 Oct 2024 |
@hexa:lossy.network | In reply to @mattleon:matrix.org
I feel so silly There's a script in the connectedhomeip repo ./scripts/checkout_submodules.py
It has a flag --platform with the option linux
It only checks out required submodules
The final repo size is ~800 MB
mattleon: not sure if this reference helps, but. | 01:58:21 |
@hexa:lossy.network | oh and you got it even further down and forgot 😄 | 01:58:59 |
@hexa:lossy.network | * oh and you got the result it even further down and forgot 😄 | 01:59:11 |
@hexa:lossy.network | * oh and you got the result it even further down 😄 | 01:59:16 |
@hexa:lossy.network | https://matrix.to/#/!QhvgabMQzwEQeWehhZ:lossy.network/$BvRVqF1pRD5U6HZEZuMXCLnIK-n3t0zAUCLGH8omI1A?via=nixos.org&via=matrix.org&via=tchncs.de | 01:59:51 |
@hexa:lossy.network | mattleon 🙂 | 01:59:57 |
mattleon | Thanks for the reminder! I had forgotten about this | 02:01:39 |
Mackeveli | Is anyone else having issues adding the homekit component to HASS? I get hung up on building python312Packages.chacha20poly1305-reusable when I add homekit to extraComponents:
error: builder for '/nix/store/yh0yj6p8ci80vri781c3f93s54lrw7a2-python3.12-chacha20poly1305-reuseable-0.13.2.drv' failed with exit code 137;
last 10 log lines:
> Running phase: pytestCheckPhase
> Executing pytestCheckPhase
> ============================= test session starts ==============================
> platform linux -- Python 3.12.5, pytest-8.3.2, pluggy-1.5.0 -- /nix/store/6iq3nhgdyp8a5wzwf097zf2mn4zyqxr6-python3-3.12.5/bin/python3.12
> cachedir: .pytest_cache
> rootdir: /build/source
> configfile: pyproject.toml
> collected 10 items
>
> tests/test_init.py::TestChaCha20Poly1305Reusable::test_data_too_large /nix/store/hngiqcmrhfdavs1yr53qg8zjhp5qmzf8-pytest-check-hook/nix-support/set
up-hook: line 53: 152 Killed /nix/store/6iq3nhgdyp8a5wzwf097zf2mn4zyqxr6-python3-3.12.5/bin/python3.12 -m pytest
For full logs, run 'nix log /nix/store/yh0yj6p8ci80vri781c3f93s54lrw7a2-python3.12-chacha20poly1305-reuseable-0.13.2.drv'.
error: 1 dependencies of derivation '/nix/store/f5hgzj0c7309xzacls5x7xriam87v458-unit-home-assistant.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/daw5hls04ih222m5x8gmcwncp6b5fshb-system-units.drv' failed to build
error: 1 dependencies of derivation '/nix/store/rjjai93zqxnnn5z7j7xyc6vg785shlgw-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/rpfvxzipn7d5kw502zfhr1wihn84qfn0-nixos-system-nixos-24.11.20241009.5633bcf.drv' failed to build
| 14:46:06 |
@hexa:lossy.network |
Killed
| 14:46:56 |
@hexa:lossy.network | out of memory? | 14:47:00 |
@hexa:lossy.network | what branch? what system architecture? | 14:47:57 |
@hexa:lossy.network | master on x86_64-linux: | 14:48:06 |
@hexa:lossy.network | chacha20poly1305-reuseable> Executing pytestCheckPhase
chacha20poly1305-reuseable> ============================= test session starts ==============================
chacha20poly1305-reuseable> platform linux -- Python 3.12.6, pytest-8.3.2, pluggy-1.5.0 -- /nix/store/wfbjq35kxs6x83c3ncpfxdyl5gbhdx4h-python3-3.12.6/bin/python3.12
chacha20poly1305-reuseable> cachedir: .pytest_cache
chacha20poly1305-reuseable> rootdir: /build/source
chacha20poly1305-reuseable> configfile: pyproject.toml
chacha20poly1305-reuseable> collected 10 items
chacha20poly1305-reuseable>
chacha20poly1305-reuseable> tests/test_init.py::TestChaCha20Poly1305Reusable::test_data_too_large PASSED [ 10%]
chacha20poly1305-reuseable> tests/test_init.py::TestChaCha20Poly1305Reusable::test_generate_key PASSED [ 20%]
chacha20poly1305-reuseable> tests/test_init.py::TestChaCha20Poly1305Reusable::test_bad_key PASSED [ 30%]
chacha20poly1305-reuseable> tests/test_init.py::TestChaCha20Poly1305Reusable::test_params_not_bytes_encrypt[nonce0-data-] PASSED [ 40%]
chacha20poly1305-reuseable> tests/test_init.py::TestChaCha20Poly1305Reusable::test_params_not_bytes_encrypt[000000000000-data1-] PASSED [ 50%]
chacha20poly1305-reuseable> tests/test_init.py::TestChaCha20Poly1305Reusable::test_params_not_bytes_encrypt[000000000000-data-associated_data2] PASSED [ 60%]
chacha20poly1305-reuseable> tests/test_init.py::TestChaCha20Poly1305Reusable::test_nonce_not_12_bytes PASSED [ 70%]
chacha20poly1305-reuseable> tests/test_init.py::TestChaCha20Poly1305Reusable::test_decrypt_data_too_short PASSED [ 80%]
chacha20poly1305-reuseable> tests/test_init.py::TestChaCha20Poly1305Reusable::test_associated_data_none_equal_to_empty_bytestring PASSED [ 90%]
chacha20poly1305-reuseable> tests/test_init.py::TestChaCha20Poly1305Reusable::test_buffer_protocol PASSED [100%]
chacha20poly1305-reuseable>
chacha20poly1305-reuseable> ============================== 10 passed in 1.50s ==============================
chacha20poly1305-reuseable> Finished executing pytestCheckPhase
chacha20poly1305-reuseable> Running phase: pytestcachePhase
chacha20poly1305-reuseable> Running phase: pytestRemoveBytecodePhase
| 14:48:09 |
Mackeveli | Yeah it's possible that my Raspi 4 is starting to buckle at the weight of all the services it's running. I'll try again and measure the memory usage as it builds.
I'm on the unstable branch, running on the Raspberry Pi 4B using the generic AArch64 SD image noted on the wiki: https://wiki.nixos.org/wiki/NixOS_on_ARM/Raspberry_Pi_4 | 14:51:13 |