!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

416 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.140 Servers

Load older messages


SenderMessageTime
2 Aug 2025
@emilazy:matrix.orgemily(well, that and C++ being dumb)16:06:27
@raitobezarius:matrix.orgraitobezariusdon't worry16:06:40
@raitobezarius:matrix.orgraitobezarius
In reply to @emilazy:matrix.org

something like

       For full logs, run:
           nix log /nix/store/r0729886rq9nvzsngj2dnwwdl5q5dcq0-test.drv
       The build directory has been kept in:
           /nix/var/nix/b/3qxda0xkh4wllkxh182kvrza5n
i cooked
16:27:02
@raitobezarius:matrix.orgraitobezariusi should think how i could convey some nice note for remote builder usecases16:27:23
@emilazy:matrix.orgemilywas it that easy to move? I sorta figured it's printed as a separate note because the code paths are disconnected16:27:46
@emilazy:matrix.orgemily(because that's the only way I could understand why it'd be like this)16:27:54
@raitobezarius:matrix.orgraitobezarius i decided to make a buildErrorContents() virtual method 16:27:56
@raitobezarius:matrix.orgraitobezariusderivation goal calls it16:28:01
@raitobezarius:matrix.orgraitobezariusdefault impl is the one of where it was16:28:06
@raitobezarius:matrix.orgraitobezariuslocal derivation goal overrides and tacks more notes16:28:11
@raitobezarius:matrix.orgraitobezariusthe code paths are still slightly disconnected, so I add a boolean "tmpDirKept" to decide whether I should print or not16:28:32
@raitobezarius:matrix.orgraitobezariusif I have settings.keepFailed && !tmpDirKept, I can even print info about why i did not keep the tmp dir16:28:45
@emilazy:matrix.orgemily a weird thing is that when you use a remote builder it prints nix-store for the logs 16:28:49
@emilazy:matrix.orgemily even when using nix(1) 16:28:55
@emilazy:matrix.orgemilybecause I guess that message is from the remote16:28:59
@raitobezarius:matrix.orgraitobezariusyeah because the error comes from derivation goal16:29:02
@raitobezarius:matrix.orgraitobezariusyeah, the whole thing is a bit messy in that circumstance16:29:17
@emilazy:matrix.orgemilyseems like the remote builder should not be handling that kind of thing. but well, layering16:29:24
@raitobezarius:matrix.orgraitobezarius<insert meme with the comedian with jokes on a card and all cards he have 'RPC fixes this'>16:29:52
@raitobezarius:matrix.orgraitobezarius https://gerrit.lix.systems/c/lix/+/3861/1 16:35:47
@raitobezarius:matrix.orgraitobezariussomething like that16:35:48
@raitobezarius:matrix.orgraitobezariushm i changed the message too16:36:11
@raitobezarius:matrix.orgraitobezariusi should have split the commit16:36:14
@emilazy:matrix.orgemilyall my cards are Jujutsu fixes this16:41:10
@raitobezarius:matrix.orgraitobezarius https://www.gerritcodereview.com/2025-05-07-esc-minutes.html so we see you in Paris regarding jujutsu × gerrit ? :> 16:42:20
@raitobezarius:matrix.orgraitobezarius

fwiw this is the code that propagates the remote error

    std::shared_ptr<Error> remoteError;
    if (result.getResult().isBad()) {
        remoteError = std::make_shared<Error>(from(result.getResult().getBad()));
        logger->logEI(remoteError->info());
    }
    co_return HookResult::Accept{TRY_AWAIT(buildDone(remoteError))};
16:45:57
@raitobezarius:matrix.orgraitobezariusacross the RPC boundary16:46:02
@raitobezarius:matrix.orgraitobezariusi think i can easily pass remoteError the buildErrorContents16:46:47
@raitobezarius:matrix.orgraitobezariusand we can even know if we were remote building or not16:46:52
@charles:computer.surgeryCharles

yes:

[root@blue:~]# docker run -it lix:2.94.0-devpre20250801_4efc888 nix --extra-experimental-features 'nix-command flakes' run nixpkgs#hello
warning: error: unable to download 'https://api.github.com/repos/NixOS/nixpkgs/commits/nixpkgs-unstable': Resolving timed out after 5000 milliseconds (curl error code=28); retrying in 302 ms (attempt 1/5)
warning: error: unable to download 'https://github.com/NixOS/nixpkgs/archive/c02d05bcf73fb496c604798c2268ed424a09e73e.tar.gz': Resolving timed out after 5001 milliseconds (curl error code=28); retrying in 250 ms (attempt 1/5)
warning: error: unable to download 'https://github.com/NixOS/nixpkgs/archive/c02d05bcf73fb496c604798c2268ed424a09e73e.tar.gz': Resolving timed out after 5001 milliseconds (curl error code=28); retrying in 646 ms (attempt 2/5)
error:
       … while fetching the input 'github:NixOS/nixpkgs/nixpkgs-unstable'

       error: uri https://github.com/NixOS/nixpkgs/archive/c02d05bcf73fb496c604798c2268ed424a09e73e.tar.gz changed final destination from https://github.com/NixOS/nixpkgs/archive/c02d05bcf73fb496c604798c2268ed424a09e73e.tar.gz to https://codeload.github.com/NixOS/nixpkgs/tar.gz/c02d05bcf73fb496c604798c2268ed424a09e73e during transfer

[root@blue:~]# docker run -it lix:2.94.0-devpre20250801_4efc888 nix --extra-experimental-features 'nix-command flakes' run nixpkgs#hello
warning: error: unable to download 'https://api.github.com/repos/NixOS/nixpkgs/commits/nixpkgs-unstable': Resolving timed out after 5002 milliseconds (curl error code=28); retrying in 322 ms (attempt 1/5)
warning: error: unable to download 'https://api.github.com/repos/NixOS/nixpkgs/commits/nixpkgs-unstable': Resolving timed out after 5000 milliseconds (curl error code=28); retrying in 572 ms (attempt 2/5)
warning: error: unable to download 'https://github.com/NixOS/nixpkgs/archive/c02d05bcf73fb496c604798c2268ed424a09e73e.tar.gz': Resolving timed out after 5003 milliseconds (curl error code=28); retrying in 272 ms (attempt 1/5)
error:
       … while fetching the input 'github:NixOS/nixpkgs/nixpkgs-unstable'

       error: uri https://github.com/NixOS/nixpkgs/archive/c02d05bcf73fb496c604798c2268ed424a09e73e.tar.gz changed final destination from https://github.com/NixOS/nixpkgs/archive/c02d05bcf73fb496c604798c2268ed424a09e73e.tar.gz to https://codeload.github.com/NixOS/nixpkgs/tar.gz/c02d05bcf73fb496c604798c2268ed424a09e73e during transfer

seems like maybe dns worked because the url changed but now it's mad about that for whatever reason?

20:10:49

Show newer messages


Back to Room ListRoom Version: 10