cachix / feedback

Feedback about https://cachix.org service
2 stars 2 forks source link

Gitlab CI example #18

Closed o1lo01ol1o closed 2 years ago

o1lo01ol1o commented 3 years ago

The CI example here uses the nixos/nix:latest tag: https://docs.cachix.org/continuous-integration-setup/gitlab.html. This docker image -- and numerous others that I've tried -- cabal2nix mysteriously pulls in pyopenssl and fails to build the test suite:

===Flaky Test Report===
test_gmtime_adj_notBefore passed 1 out of the required 1 times. Success!
test_gmtime_adj_notAfter passed 1 out of the required 1 times. Success!
===End Flaky Test Report===
======= 3 failed, 488 passed, 8 deselected, 17 warnings in 5.68 seconds ========
builder for '/nix/store/2zk2mn864ryfg894h3254s99miry55np-python2.7-pyOpenSSL-19.0.0.drv' failed with exit code 1
cannot build derivation '/nix/store/firc9ghi214xzzzmhzajfy1w7kbbix5i-python2.7-urllib3-1.24.3.drv': 1 dependencies couldn't be built
building '/nix/store/k5i8dpn8zydvkyq3y5596np2knzr9la0-remove-references-to.drv'...
cannot build derivation '/nix/store/1lh5cvkdc6igk5641q8nn2j0vi8bwldd-python2.7-dulwich-0.19.11.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/asbyk79r5jj3gbl5ik44rv1c312b2pmp-mercurial-4.9.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/3bvzbgmsfazvayvzmpxwqyya36jdr9zc-nix-prefetch-hg.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/fmy4pj7i7w7pka3b5i64k2783j333852-nix-prefetch-scripts.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/y6d1l3pymv4q605dv4gk338m2sshhzqp-cabal2nix-2.14.4.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/6zh7rq657z8cmgnxqglymbvs0vs1rgs6-cabal2nix-backend.drv': 1 dependencies couldn't be built
error: build of '/nix/store/6zh7rq657z8cmgnxqglymbvs0vs1rgs6-cabal2nix-backend.drv' failed
(use '--show-trace' to show detailed location information)

This is the same error as : https://github.com/obsidiansystems/obelisk/issues/837

Locally, it seems like any recent nixpkgs commit on 20.09 or unstable builds without issue; I'm not sure why nix:latest does not.

domenkozar commented 3 years ago

I'd suggest setting NIX_PATH= with a nixpkgs commit that makes it work.

domenkozar commented 2 years ago

Gitlab instructions are mostly rewritten, did you manage to get it to work?

o1lo01ol1o commented 2 years ago

Yes, I did thanks. Iirc, there were some upstream issues in the dependencies in question that dragged things out a bit more.

Feel free to close.

On Nov 10, 2021, at 10:25 PM, Domen Kožar @.***> wrote:

 Gitlab instructions are mostly rewritten, did you manage to get it to work?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.