gchristensen changed the topic of #nixos-dev to: NixOS Development (#nixos for questions) | https://hydra.nixos.org/jobset/nixos/trunk-combined https://channels.nix.gsc.io/graph.html | 18.09 release managers: vcunat and samueldr | https://logs.nix.samueldr.com/nixos-dev
<gchristensen> ok I feel pretty good about this report: http://gsc.io/report-d.html
pie_ has quit [Ping timeout: 240 seconds]
drakonis__ has joined #nixos-dev
<aanderse> gchristensen: hate to bug you, but just wanted to know if you had a chance to think about my last comment on incron. i only ask because freeze is coming up... https://github.com/NixOS/nixpkgs/pull/45638#discussion_r213718339
drakonis__ is now known as drakonis
dtz[m] has joined #nixos-dev
<dtz[m]> eep, matrix forgot my password for freenode lol
<dtz[m]> meant to send this previously, but didn't have a chance to fix that until now:
<dtz[m]> https://github.com/dtzWill/nix/commit/83f28ef4fa5bcbaea9cc4a8d53e34a2935abd06b <--- consider that patch for latest Nix to fix progress reporting and such, was seeing 0's reported otherwise (and progress bar 'restarts' after each)
<dtz[m]> sorry for not putting into a PR right now
lassulus_ has joined #nixos-dev
lassulus_ is now known as Random_int
lassulus has quit [Ping timeout: 260 seconds]
Random_int is now known as lassulus
<aanderse> aszlig: thanks for comments. happy to learn more.
<aszlig> aanderse: thanks for your contribution
<aanderse> i'm not super familiar with writing systemd units, but when you said "No need to use a shell here, ExecStartPost might be a better idea." did you mean ExecStartPre?
<aszlig> hm, when seeing "with lib;" at the beginning... we have that and similar things accross a lot of nix expressions...
<aszlig> aanderse: oh, whoops, yep
<aanderse> ok, thanks
<aszlig> so if checking the file with nix-instantiate --parse, something like with foo; for the whole file will not show errors for invalid identifiers
<aszlig> if i would have a blog, i'd probably write an article about "with ...; considered harmful"
<aanderse> guest post on nixos.org? :)
<aanderse> hmm... changed to execstartpre and now get this: incron.service:12: Executable "mkdir" not found in path "/usr/local/sbin:/usr/local/
<aanderse> /bin:/usr/sbin:/usr/bin"
<aszlig> or maybe even: with "..."; considered harmful
<aszlig> aanderse: ${pkgs.coreutils/bin/mkdir
<aszlig> nix-instantiate --parse -E 'with "attr"; considered harmful'
<aszlig> result: (with "attr"; (considered harmful))
<aszlig> s/"attr"/"..."/g
<aanderse> ah yeah... every single binary needs a path in there right
<aszlig> aanderse: yep, but IIRC there was a recent systemd change so that relative paths are allowed as well
<aszlig> but i'd recommend against that =)
<aanderse> ok
<aszlig> infinisil: does your bot have support for --parse?
<infinisil> Nope
<aszlig> infinisil: ah, but it is in EvalMode, so it could be added easily
<infinisil> Indeed
<aszlig> although i doubt it will be very widely used =)
<infinisil> Have seen it occasionally where it could have been
<infinisil> Oh and regarding `with ...;`, i reall don't like this:
<infinisil> > let valll = "outer"; in with { valll = "inner"; }; valll
<{^_^}> "outer"
<aanderse> aszlig: ok everything you mentioned has been fixed up, except the forking
<aszlig> aanderse: there is -f for running in foreground
<aszlig> err
<aszlig> -n
<aanderse> aszlig: hmm yeah i could try type simple with the -f flag
<aszlig> aanderse: yeah, in that case you can remove Type completely as "simple" is the default
<aszlig> infinisil: yeah, that one is well known since quite a while... another reason ;-)
<aszlig> infinisil: although there is a reason why it's implemented that way:
<aanderse> erm -n flag i mean
<aanderse> -n, --foreground
<aanderse> would i still need the pid file?
<aszlig> infinisil: if doing something like "with pkgs; [ a b c ]" and b comes from a let, you don't want to have a new package "b" suddenly override your binding
* aanderse reads more about systemd
<aszlig> aanderse: not necessarily
<aanderse> ok, it builds, runs, and the tests i had still work the same
<aszlig> aanderse: lemme check whether the pidfile might be used for startup status determination if type is simple
<aszlig> aanderse: ah, you have NixOS tests?
<aanderse> aszlig: no :( not yet
<aanderse> my manual tests
<aanderse> i started reading about tests the other day
<aanderse> because the person who merged my redmine change asked for some tests
<aanderse> still have a bit more work to do on that
<aanderse> and reading
<aszlig> aanderse: okay, the pidfile does set the state of the service to SERVICE_SUCCESS
<aanderse> oh, ok
* aanderse adds pidfile back
<aszlig> aanderse: ah, wait...
<aanderse> mhm?
<aszlig> aanderse: okay, just wanted to check the point where the pidfile is created
<aanderse> ok, so good without?
<aanderse> and aside from starting to bribe people with beer... is there anything i changes i can make or things i can do to possibly get this merged in so it will make it in for 18.09?
<aszlig> aanderse: i went looking because some services do create the pidfile right at the start of main(), so it's kinda pointless
<aanderse> ah i see
<clever> man sd_notify
<clever> that will probably solve everything, if your willing to rely on systemd
<aszlig> aanderse: i'd wait for jtojnar to approve, then it's fine
<aszlig> clever: that's not supported by incron
<aszlig> clever: but if you're relying on systemd you don't need incron
<clever> ah
<aanderse> aszlig: awesome! thank you for all your review and help. i really appreciate it. can you possibly ping jtojnar and mention you're good to merge as long as they approve?
<aanderse> jtojnar had mentioned they wanted someone else to give a definitive approval before they would approve
<aszlig> clever: there's systemd.path(5) which can do the same
<aanderse> ok, way past my bedtime. thanks again. good night.
<aszlig> aanderse: well, for my part i'm a bit gruesome, because i usually don't merge something without a test
<clever> aszlig: sd_notify seems more flexible, given that i can set a full status msg, and do watchdog stuff
<aszlig> clever: more flexible than path units?
<clever> in terms of stating when a service is started, stopping, and its status
<aszlig> clever: yeah, that for sure
<aszlig> clever: it's better than the pidfile approach, as you can also set status messages
<clever> yep
<clever> and you can have the process running, but not yet started
<aszlig> but for services which do not support it the pidfile approach would be "okay"ish
<clever> toxvpn doesnt claim to be started until its online, and systemd has a start-timeout and will restart it upon timeout
<aszlig> although patching stuff to use sd_notify is usually not that hard...
<aszlig> and i usually prefer that, because i hate those pidfiles (or really any files that could be avoided) laying around everywhere
drakonis has quit [Remote host closed the connection]
orivej has joined #nixos-dev
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos-dev
LnL has quit [Read error: Connection reset by peer]
adisbladis has quit [Quit: WeeChat 2.1]
LnL has joined #nixos-dev
orivej has quit [Ping timeout: 252 seconds]
__Sander__ has joined #nixos-dev
symphorien has left #nixos-dev ["WeeChat 2.1"]
orivej has joined #nixos-dev
aanderse has quit [Remote host closed the connection]
<layus> firefox I cannot build firefox on unstable: firefox-61.0.2' is not allowed to refer to the following paths: ...-gcc-wrapper
<layus> Is there a bug already open for that ?
<srhb> layus: Already fixed about a week ago iirc?
<layus> srhb, ok thanks. Moving from unstable to master then :-)
<srhb> layus: Both the current interpretations of nixos-unstable have the fix. Anyway, this probably belongs in #nixos :)
<layus> my bad... I just understood my mistake. Thanks!
Sigyn has quit [Read error: Connection reset by peer]
Sigyn has joined #nixos-dev
lassulus has quit [Quit: WeeChat 2.0]
orivej has quit [Ping timeout: 245 seconds]
disasm has quit [Ping timeout: 240 seconds]
pie_ has joined #nixos-dev
orivej has joined #nixos-dev
<gchristensen> dtz[m]: send a PR?
florianjacob has quit [Remote host closed the connection]
dtz[m] has quit [Write error: Connection reset by peer]
aanderse has joined #nixos-dev
init_6 has joined #nixos-dev
chaker has joined #nixos-dev
<chaker> Hey, is there an way to get the stack trace in nix in case of a stackoverflow?
pie__ has joined #nixos-dev
<chaker> I get the SOF when I try to deploy using nixops https://gist.github.com/Chakerbh/65cfe2b8113033019aafa730d1db98e4 . I made some changes to nixops, so the error is definitely from my side. But I want to understand what causing it.
pie_ has quit [Ping timeout: 252 seconds]
ma27_ has joined #nixos-dev
ma27_ has quit [Client Quit]
ma27_ has joined #nixos-dev
ma27_ has quit [Quit: WeeChat 2.1]
ma27_ has joined #nixos-dev
ma27_ has quit [Client Quit]
ma27_ has joined #nixos-dev
phreedom has quit [Ping timeout: 250 seconds]
phreedom has joined #nixos-dev
<gchristensen> niksnut: any chance you will reconsider https://github.com/NixOS/nix/pull/2358 for 2.1?
<{^_^}> nix#2358 (by graham-at-target, 1 week ago, open): fetchGit: use a better caching scheme
ma27 has quit [Quit: WeeChat 2.1]
ma27_ has quit [Quit: WeeChat 2.1]
ma27 has joined #nixos-dev
orivej has quit [Ping timeout: 245 seconds]
ma27 has quit [Quit: WeeChat 2.1]
ma27 has joined #nixos-dev
ma27 has quit [Quit: WeeChat 2.1]
ma27 has joined #nixos-dev
drakonis has joined #nixos-dev
florianjacob has joined #nixos-dev
<ekleog> (triage) think this is ready for merge, has been waiting 12d :) https://github.com/NixOS/nixpkgs/pull/43437
<{^_^}> #43437 (by MostAwesomeDude, 7 weeks ago, open): Cozy
<ekleog> (at least it was pinged-for-build for ofborg without any negative comment, and the build passed)
thefloweringash has joined #nixos-dev
ma27 has quit [Quit: WeeChat 2.1]
ma27 has joined #nixos-dev
<gchristensen> anyone have a working example of using builtins.fetchGit to fetch a tag?
<gchristensen> I get:
<gchristensen> grahamc@Morbo> nix-build projects/test.nix
<gchristensen> error: cannot update ref 'refs/heads/17vvz8iywqnx5hk7y9ccjy5m489g57305lgj6q4rj0r4aqk3nyp5': trying to write non-commit object c00182e90a5c5a4d271758fabc1dd8337c5eea4a to branch 'refs/heads/17vvz8iywqnx5hk7y9ccjy5m489g57305lgj6q4rj0r4aqk3nyp5'
<infinisil> ekleog: Yeah, thanks :)
ma27 has quit [Quit: WeeChat 2.1]
ma27 has joined #nixos-dev
ma27 has quit [Client Quit]
ma27 has joined #nixos-dev
<gchristensen> I think I've found a bug in Nix, can anyone verify, or tell me I'm a dummy? https://github.com/nixos/nix/pull/2384
<{^_^}> nixos/nix#2384 (by graham-at-target, 27 seconds ago, open): docs: Add some examples to fetchGit
ekleog has quit [Quit: back soon]
chaker has quit [Remote host closed the connection]
<LnL> gchristensen: hmm, I've used ref before
<gchristensen> ref-for-branches works fine for me
ekleog has joined #nixos-dev
<srhb> gchristensen: Odd indeed, breaks for me. ref = "tags/1.9" is fine though.
<gchristensen> hmmm
<gchristensen> oh weird
<gchristensen> oooohohhhhhhh I bet it breaks on annotated tags
<srhb> Ah, that would make sense indeed.
<srhb> How do you specify them? tags/+2.0?
orivej has joined #nixos-dev
<{^_^}> nixos/nix#2385 (by graham-at-target, 3 minutes ago, open): fetchGit only works on non-annotated tags
<srhb> gchristensen: I like how you disguised that as a pull request. ++ :-)
<gchristensen> oh man that was a mistake from me editing a URL I had in my copy buffer :)
orivej has quit [Ping timeout: 252 seconds]
fpletz has joined #nixos-dev
lassulus has joined #nixos-dev
<niksnut> bleh, maybe we should move to gitter
<niksnut> too much irc spam
<gchristensen> :o
<gchristensen> where are you seeing spam?
<aminechikhaoui> hurray for gitter :D
* aminechikhaoui continues his trolling
<samueldr> niksnut: if it is private message-based spam, setting yourself as +R should fix this; this is the new default, but if your connection is from before the new default, you wouldn't have it
<samueldr> (you would use /mode niksnut +R )
<samueldr> august 21st [14:47:48] [freenode-connect] Due to the persistent ongoing spam, all new connections are being set +R (block messages from unidentified users) and will be scanned for vulnerabilities. This will not harm your computer, and vulnerable hosts will be notified.
<niksnut> samueldr: ah, cool
__Sander__ has quit [Quit: Konversation terminated!]
* gchristensen is a docs-writing machine
rsa has quit [Ping timeout: 252 seconds]
<niksnut> gchristensen: +1
<niksnut> see, we need gitter for proper emotes like :thumbsup:
<gchristensen> haha
<Dezgeg> does it support the parrots?
<gchristensen> niksnut: ok, I think I'm done with doc PRs for the day ;)
<gchristensen> niksnut: unless you have edits, of course! let me know! I can also send a PR backporting the docs to the 2.1 maintenance branch if you'd ilke.
<niksnut> no, I can just cherry-pick that
<niksnut> Dezgeg: I see that Unicode just added a parrot
<Dezgeg> :)
<gchristensen> niksnut: ok, here are docs PRs I'm hoping to land: https://github.com/NixOS/nix/pull/2384, https://github.com/NixOS/nix/pull/2388 and I'm still hoping you'll change your mind on https://github.com/NixOS/nix/pull/2358
<{^_^}> nix#2384 (by graham-at-target, 2 hours ago, open): docs: Add some examples to fetchGit
<{^_^}> nix#2388 (by grahamc, 3 minutes ago, open): Document multi-user installation, and add release notes about it being the default on 2.1
<{^_^}> nix#2358 (by graham-at-target, 2 weeks ago, open): fetchGit: use a better caching scheme
<manveru> samueldr: you got a new list of what's failing with the ruby upgrade?
<samueldr> not yet
<samueldr> I'll check this evening (tz: EST) after work
<gchristensen> (EST, eh?)
<samueldr> maybe EDT, DST is hard
<gchristensen> even worse, Germany is in CEST now
<manveru> ok :)
<makefu> maybe the eu decides against it sometime soon. there was a poll in the last months
<makefu> 4.5 million answers, 3 million from germany. 80% to drop summer/winter time
<manveru> wonder why so many germans though... spain is way more affected
<makefu> we have a very strong oppinion about time
<andi-> whatever they decide I am predicting ancient technology to fail if we do no longer have that still daylight saving attempts...
<andi-> s/still/silly/
<makefu> sure old stuff will crash. but this happens all the time though. i read about japan where the era changes and that a lot of old software was never built with this in mind ( https://blogs.msdn.microsoft.com/shawnste/2018/04/12/the-japanese-calendars-y2k-moment/ cannot find the article i read though)
<gchristensen> -> #nixos-chat
<makefu> sorry, sure
<gchristensen> no worries :)
ckauhaus has joined #nixos-dev
ckauhaus is now known as ckauhaus|away
<domenkozar> niksnut: what to do when they spam gitter :P
<domenkozar> is branch-off today?
<simpson> aaaa
<simpson> SSH fun, sorry.
<domenkozar> :)
<Dezgeg> last timestamp I've seen is 20:00 UTC on september 2
<domenkozar> for branch off?
<andi-> yes
<andi-> thats what samueldr said yesterday IIRC
<samueldr> I first checked-in with vcunat for the game plan and we agreed it was probably for the best
<samueldr> gives a little wiggle room for those last PRs, solid date, also gives saturday for those that are burdened by non-nix-related work :)
<domenkozar> sounds good :)
<domenkozar> can't wait
<domenkozar> elm without 3GB closure
<domenkozar> only took 2 years!
<gchristensen> :O :D
<domenkozar> things that excite me, shrimp ready
<domenkozar> eh, shrink*
<domenkozar> :D
<gchristensen> ready shrimp excites me too
<domenkozar> yeah, just had the best octopus in portugal
<domenkozar> so it's hard to not think about sea food :D
<domenkozar> oh jellyfish!
<domenkozar> damn
<domenkozar> I lost you
<gchristensen> hm?
<domenkozar> nvm :)
timokau[m] has joined #nixos-dev
ckauhaus|away is now known as ckauhaus
drakonis has quit [Remote host closed the connection]
<ckauhaus> hi, has anyone an idea why Hydra blocks nixpkgs-unstable jobs for more than a week now?
<gchristensen> looking, ckauhaus
<gchristensen> we've been stuck at 55-remaining-jobs "forever" now
<LnL> yeah, there's something with those jobs
<srhb> Glad someone's looking at them now. :)
<ckauhaus> gchristensen: yes please :)
orivej has joined #nixos-dev
phreedom has quit [Ping timeout: 250 seconds]
<gchristensen> love debugging hydra stuff
<domenkozar> love?
<gchristensen> "love"
<LnL> :p
<gchristensen> hrm. packet-t2-4 keeled over
phreedom has joined #nixos-dev
disasm has joined #nixos-dev
<gchristensen> ok I think I sorted it
<srhb> gchristensen: Hooray! Thank you!
<srhb> gchristensen: And that unstuck latest-finished from the confusing dual nixos-unstable situation as well, looks like. Great!
phreedom has quit [Ping timeout: 250 seconds]
<samueldr> srhb: AFAIUI the `latest-finished` can still point to an older build, but at least the fix should keep nixpkgs-channels and nixos.org/channels in sync
<srhb> samueldr: That's what I meant. :) The pointer got bumped, so *presumably* the next update will fix both of the targets :)
ckauhaus is now known as ckauhaus|away
drakonis_ has joined #nixos-dev
<gchristensen> NixOS's ofborg infrastructure is undergoing a bit of a risky update. Hopefully nothing goes wrong. I'll keep you posted. See #nixos-borg for finer grained updates. Things _will_ be broken for at least a few minutes, but hopefully _only_ a few minutes.
phreedom has joined #nixos-dev
orivej has quit [Ping timeout: 245 seconds]
<gchristensen> OfBorg is back! Thank you for your patience!
drakonis_ has quit [Remote host closed the connection]
orivej has joined #nixos-dev
drakonis has joined #nixos-dev
orivej has quit [Ping timeout: 240 seconds]