| 28 Nov 2025 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | Hi, I was wondering if we could use a script to upload all the logs of Hydra's failing jobs to one location, or do we have such a service now? | 06:28:31 |
K900 | The location is cache.nixos.org | 06:33:20 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | In reply to @k900:0upti.me The location is cache.nixos.org But how do I only fetch failed logs? | 06:35:37 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | I guess I have to write a script myself | 06:35:45 |
K900 | You'd have to pull the drv paths from an eval | 06:35:49 |
K900 | It's not quite trivial | 06:35:57 |
K900 | What are you actually trying to do? | 06:36:03 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | In reply to @k900:0upti.me What are you actually trying to do? See if it's possible to fix common build issues treewide | 06:36:50 |
K900 | I think Grimmauld was working on something like that | 06:38:09 |
Vladimír Čunát | Getting list of .drv shouldn't be that hard. If this way didn't work out, I'd recommend trying to start from nixpkgs' maintainers/scripts/rebuild-amount.sh | 07:16:03 |
Vladimír Čunát | (there are other places for sure which try to do something with all packages) | 07:16:46 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | Okay I'm writing it | 07:43:53 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | But how do I get the password of my hydra account if I've logged in with GitHub | 07:44:16 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | Seems like https://hydra.nixos.org/eval/1820524/builds doesn't respond unless I log in | 07:44:40 |
Vladimír Čunát | Why do you need that? | 08:32:46 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | In reply to @vcunat:matrix.org Why do you need that? I want to query builds -> get drv paths of failed builds -> download log from cache.nixos.org | 08:47:10 |
Vladimír Čunát | You can view the logs e.g. via nix-store -l /nix/store/foo.drv | 08:47:42 |
Vladimír Čunát | Or construct the URL manually. It's trivial. | 08:47:58 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | Yeah, the last part is trivial, and I have implemented it | 08:48:14 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | Now the problem is hydra API doesn't respond so I can't get the list of failed derivations | 08:48:38 |
Vladimír Čunát | Ah, failed derivations? 🤔 | 08:49:00 |
Vladimír Čunát | Via non-presence of substitutes? | 08:49:44 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | In reply to @vcunat:matrix.org Via non-presence of substitutes? That requires evaluating Nixpkgs | 08:50:30 |
Vladimír Čunát | If you have .drv, you have it anyway, I think. | 08:50:52 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | So I want to use /eval/{eval-id}/builds
https://editor.swagger.io/?url=https://raw.githubusercontent.com/NixOS/hydra/master/hydra-api.yaml | 08:51:57 |
Vladimír Čunát | That seems way more difficult than checking presence of binary in the cache. | 08:54:18 |
Vladimír Čunát | But it's your call. | 08:54:23 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | So how can I register a hydra account with password | 08:55:23 |
Vladimír Čunát | https://github.com/nix-community/nix-review-tools can be an inspiration for crawling this. | 08:55:26 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | In reply to @vcunat:matrix.org https://github.com/nix-community/nix-review-tools can be an inspiration for crawling this. But we have hydra API | 08:57:07 |