gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
lassulus_ has joined #nixos-chat
lassulus has quit [Ping timeout: 244 seconds]
lassulus_ is now known as lassulus
drakonis has joined #nixos-chat
drakonis_ has quit [Ping timeout: 250 seconds]
drakonis1 has joined #nixos-chat
drakonis1 has quit [Client Quit]
drakonis1 has joined #nixos-chat
<samueldr> hmmmmm the saved replies are available in the PR submission form...
<samueldr> this ought to be useful
lopsided98 has quit [Ping timeout: 250 seconds]
lopsided98 has joined #nixos-chat
jackdk has quit [Ping timeout: 268 seconds]
jackdk has joined #nixos-chat
drakonis1 has quit [Quit: WeeChat 2.2]
Lisanna has joined #nixos-chat
jasongrossman has joined #nixos-chat
sir_guy_carleton has quit [Quit: WeeChat 2.2]
jackdk has quit [Disconnected by services]
jackdk has joined #nixos-chat
rsa has joined #nixos-chat
sir_guy_carleton has joined #nixos-chat
Jackneill has quit [Quit: Leaving]
Jackneill has joined #nixos-chat
siers has joined #nixos-chat
siers has quit [Quit: WeeChat 2.0]
pie___ has joined #nixos-chat
pie__ has quit [Ping timeout: 244 seconds]
<ekleog> (from #nixos-dev) srhb: so the issue with setting up my hydra would be that unless I'm syncing it to be in lockstep with nixos' hydra, I'd end up building a lot of stuff in parallel to it… wouldn't I?
<ekleog> (and syncing it to be in lockstep with nixos' hydra requires in turn that I have access to the information when all packages have finished building on hydra)
<gchristensen> what is it you're looing for exactly?
<srhb> ekleog: Yes, you'd still want some way of the input only when evaluation has completed for some ref
<srhb> of BUMPING the input only...*
<ekleog> gchristensen: basically, a way to have a binary cache that bumps as soon as all packages have been attempted to be built, ignoring tests
<srhb> But I wouldn't care about that if I were you
<srhb> If you have a jobset that only includes your tests, it's not like it will build all of nixpkgs
<srhb> Just every dependency of your tests, in the worst case.
<ekleog> hmmmm
<srhb> So it's only terribad if glibc bumps :-)
<srhb> But that would also be the case with your idea if glibc fails on master.
<gchristensen> ekleog: can you wait until the tests have finished, whether or not they passd?
__monty__ has joined #nixos-chat
<ekleog> srhb: and so I hope the user waits long enough before doing its system rebuild so that hydra has finished building the rest in the meantime?
<ekleog> gchristensen: I can (would guess that's a negligible time difference), but I don't know how to access the information of “when” :/
<srhb> Poll!
<srhb> If you think it's hacky, be soothed by the fact that everything in the channel architecture works like this. :-P
<ekleog> if https://hydra.nixos.org/job/nixos/trunk-combined/tested/all / https://hydra.nixos.org/job/nixos/release-18.09/tested/all only appear when the builds are in the cache then it's likely a good idea indeed :)
<ekleog> (issue is I'm still not sure I understand whether that's the case, sorry if that's what you've been saying all along ^^')
<gchristensen> poll this URL: https://hydra.nixos.org/jobset/nixos/release-18.09/latest-eval it will always link to the latest evalation which has no more building to do.
<andi-> (might go back in time tho..)
<ekleog> huh?
<srhb> If an older eval has jobs restarted.
<srhb> Or theoretically if they race, I guess.
<ekleog> oh
<ekleog> well, I guess I can just test for a is-ancestor when getting updates :)
<ekleog> srhb gchristensen : thanks! :D
<andi-> ekleog: if you finish what you descibed there I would be interested on how it looks in the end.. I have been thinking about similar stuff :)
<ekleog> andi-: tbh it's not something I have a short-term project on, I was trying to push for a nixpkgs-18.09 channel now because I knew I wouldn't get one before at least a few months / years even if everyone agreed… so the news that it's actually not required means this part of the project is now way ahead of the schedule ^^
<srhb> Perhaps we could throw a <runcommand> at our hydra to actually ship off the JSON as soon as tested completes
<srhb> It could be useful to more people, and that's pretty general
<srhb> If it's new enough to have runcommand..
sir_guy_carleton has quit [Remote host closed the connection]
<ekleog> “the JSON”? (sorry, I have literally 0 idea of how hydra works)
<andi-> ekleog: I think we srhb meant was the result JSON that you usually get when querying `latest-eval`.
<srhb> ekleog: Hydra recently got a runcommand plugin which can execute an arbitrary script on completion (not necessarily success) of an arbitrary job. That script will get an env var which points to a json file containing information about the finished build
<srhb> ekleog: Pushing that json file on completion of certain jobs on Hydra would allow you to poll that url for changes.
<ekleog> andi-: wait, a result JSON? I get a redirection to an http page on `latest-eval`
<ekleog> srhb: oh 'k, thanks :)
<andi-> ekleog: that redirect (if requested with c-t application/json) will be what the channel bump scripts use for example.
<ekleog> oh nice, thanks! :)
<ekleog> but then… isn't it already pushed immediately?
<gchristensen> heh
<gchristensen> this is getting in to the weeds a bit
<gchristensen> the channel update scripts poll that URL with Content-Type: application/json to monitor it for advances, it then starts a process of publishing a nixexprs.tar.xz and other metadata
drakonis1 has joined #nixos-chat
drakonis1 has quit [Quit: WeeChat 2.2]
drakonis has quit [Ping timeout: 268 seconds]
drakonis_ has joined #nixos-chat
drakonis has joined #nixos-chat
drakonis_ has quit [Ping timeout: 252 seconds]
drakonis_ has joined #nixos-chat
drakonis has quit [Ping timeout: 246 seconds]
drakonis has joined #nixos-chat
drakonis_ has quit [Ping timeout: 250 seconds]
sir_guy_carleton has joined #nixos-chat
drakonis_ has joined #nixos-chat
drakonis has quit [Ping timeout: 252 seconds]
drakonis_ has quit [Ping timeout: 252 seconds]
drakonis_ has joined #nixos-chat
drakonis_ has quit [Ping timeout: 252 seconds]
drakonis_ has joined #nixos-chat
drakonis has joined #nixos-chat
drakonis_ has quit [Ping timeout: 260 seconds]
<gchristensen> you don't really truly appreciate nixops until you don't have it
__monty__ has quit [Quit: leaving]
drakonis1 has joined #nixos-chat