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
<Profpatsch> Please try it out and use it in your projects. I need some feedback on the API of withTests.
<Profpatsch> I might do a PR to nixpkgs, but I wanted to add tests to some packages first, to see how well it works in practice.
<MichaelRaskin> Profpatsch: now you just need to find enough tests that can be created without an RFC on «no NixOS tests are not good enough for testing GUI packages»?
<Profpatsch> MichaelRaskin: The interesting parts are headless anyway ;)
<Profpatsch> One generic tests you can do is binary --version and then parse the output to see whether it contains ${version}
<MichaelRaskin> That was indeed in my rejected PR
<Profpatsch> You also test basic execution that way.
<MichaelRaskin> Basic execution depends on the definition (I did write a few versions of exit code filter there, though)
eadwu has joined #nixos-dev
<Profpatsch> MichaelRaskin: I had one where I tested a beets plugin, using a special version of beets with the plugin enabled in the test.
<Profpatsch> dunno where I put it.
<Profpatsch> I wasn’t sure how to pass the arguments.
<Profpatsch> In a nice way and without too much boilerplate.
init_6 has joined #nixos-dev
eadwu has quit [Ping timeout: 252 seconds]
eadwu has joined #nixos-dev
eadwu has quit [Read error: Connection reset by peer]
<Profpatsch> MichaelRaskin: Here’s some additional examples: https://github.com/Profpatsch/nixperiments/blob/master/nix-json-trans.nix#L100
<Profpatsch> I test the nix json transformers I introduce in the same file.
<Profpatsch> At one point there’s a nix splice inside a shell script inside a nix expression inside a nix expression.
<Profpatsch> It also inits a local store and calls `nix eval` from within a nix build. :P
eadwu has joined #nixos-dev
<MichaelRaskin> Well, sure, streaming data crunchers can be tested easily that way
<Profpatsch> Which is, like, most stuff.
<MichaelRaskin> (of course, one could hope that make test does it)
<MichaelRaskin> Most of the stuff re: number of packages — maybe, although complicated
<MichaelRaskin> Most of the stuff re: number of breakage — I have doubts
<Profpatsch> The bazel build takes around 15–20 minutes.
<Profpatsch> And then a trivial test breaks at the last possible moment.
<Profpatsch> There’s nothing more infuriating.
<Profpatsch> If the test is run in a different derivation (that gets the new bazel package as input), at least the build is cached.
<MichaelRaskin> Oh there is. Two letters: LO
<Profpatsch> LO?
<MichaelRaskin> LibreOffice
<Profpatsch> ah, heh
<Profpatsch> Anyway, need to go to bed.
<Profpatsch> gn8
<MichaelRaskin> Actually me too
<MichaelRaskin> good night
<{^_^}> Night!
<samueldr> sphalerite: if you didn't want to (yet) be on that team, you can remove yourself, I github's UI said "invite to team" and not "add to team" :/
eadwu has quit [Ping timeout: 250 seconds]
eadwu has joined #nixos-dev
eadwu has quit [Quit: WeeChat 2.3]
eadwu has joined #nixos-dev
orivej has quit [Ping timeout: 250 seconds]
worldofpeace has joined #nixos-dev
eadwu has quit [Ping timeout: 272 seconds]
eadwu has joined #nixos-dev
lassulus_ has joined #nixos-dev
lassulus has quit [Ping timeout: 268 seconds]
lassulus_ is now known as lassulus
init_6 has quit [Ping timeout: 268 seconds]
eadwu has quit [Ping timeout: 250 seconds]
init_6 has joined #nixos-dev
worldofpeace has quit [Ping timeout: 240 seconds]
emily has joined #nixos-dev
MichaelRaskin has quit [Quit: MichaelRaskin]
<sphalerite> samueldr: team? I don't seem to have any relevant notifications or emails
<sphalerite> samueldr: ah, I saw from a PR that I'm in the backports team now, I'm guessing that's what you meant
<sphalerite> all good :)
orivej has joined #nixos-dev
pepesza has quit [Ping timeout: 250 seconds]
pepesza has joined #nixos-dev
pepesza has quit [Ping timeout: 244 seconds]
pepesza has joined #nixos-dev
jtojnar has joined #nixos-dev
FRidh has joined #nixos-dev
orivej has quit [Ping timeout: 245 seconds]
eadwu has joined #nixos-dev
obadz has quit [Ping timeout: 250 seconds]
obadz has joined #nixos-dev
aristid has quit [Quit: WeeChat 2.2]
orivej has joined #nixos-dev
niksnut has quit [Quit: Lost terminal]
niksnut has joined #nixos-dev
eadwu has quit [Ping timeout: 250 seconds]
eadwu has joined #nixos-dev
eadwu has quit [Ping timeout: 250 seconds]
eadwu has joined #nixos-dev
eadwu has quit [Read error: Connection reset by peer]
eadwu has joined #nixos-dev
<timokau[m]> Does somebody here have direct access to the hydra builder "packet-epyc-1" and can try to re-run the suitesparse build there? The compiler has now segfaulted twice on that machine and I'd like to know if it is reproducible.
<{^_^}> #52709 (by timokau, 1 week ago, open): suitesparse build failed on hydra (transiently)
<gchristensen> I can if you ping me in about 30min
<timokau[m]> Can do
<infinisil> timokau[m]: I did just merge #52508, not sure if related
<{^_^}> https://github.com/NixOS/nixpkgs/pull/52508 (by tkonolige, 1 week ago, merged): suitesparse: Fix darwin support
tilpner has quit [Quit: WeeChat 2.3]
<timokau[m]> infinisil: Thanks for the pointer. Probably not related since it already segfaults during build and that only touches install.
<timokau[m]> There is a new suitesparse version though. My ideal outcome would be that the failure is deterministically reproducable on that machine *and* the new version already happens to fix it
tilpner has joined #nixos-dev
tilpner has quit [Quit: WeeChat 2.3]
tilpner has joined #nixos-dev
<timokau[m]> gchristensen: ping
<gchristensen> is it 30min already? :')
<gchristensen> send me the command you want me to run?
<timokau[m]> `cntd 30m; notify-send 'Ping graham'` doesn't lie :)
<timokau[m]> Is there a way to build from a specific nixpkgs checkout? Does it need to be fetched or is it available?
<timokau[m]> I'd like to run `nix build suitesparse` with nixpkgs 61e465 (probably doesn't matter, but best to have the same environment)
<gchristensen> it'd need to be fetched, using a builtins.fetchTarball in the expr would be best
<timokau[m]> gchristensen: I'll have to look into that, never used `fetchTarball`
<timokau[m]> But its just a vanilla suitesparse build, nothing fancy
<infinisil> timokau[m]: You should be able to do `nix-build -A suitesparse -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/61e465.tar.gz`
<infinisil> (or the nix build equivalent, probably)
<gchristensen> something like that'd be even better :)
<timokau[m]> gchristensen: nix build -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/61e4654814bf43784b3a04e4570a5716d74c6098.tar.gz nixpkgs.suitesparse
<gchristensen> ok giving it a go :)
<gchristensen> had to restore a few more secrets from backup before I could SSH in.
<timokau[m]> gchristensen: Glad I'm giving you an opportunity to test your backups :)
<thoughtpolice> If I want to author a python module for upstream, what's the correct way to specify "python 3 only"? e.g. exclude it from python2Packages
<timokau[m]> thoughtpolice: `disabled = !isPy3` or `diabled = isPy2`, depending on what you think about pypi
<thoughtpolice> That did it, thanks timokau[m] !
<thoughtpolice> ('isPy3k' actually rather than 'isPy3')
<gchristensen> timokau[m]: worked
<timokau[m]> Mh, I would have preferred it to fail :/
<timokau[m]> How much ram does the machine have? Is it likely the build ran out?
<gchristensen> when did it fail?
<timokau[m]> gchristensen: 2018-12-31 03:51:44
<timokau[m]> I wish I had that much ram
<timokau[m]> But I'm running two suitesparse build at the same time and it only takes 4G, so that really is unlikely
<timokau[m]> Doesn't look like there was anything special going on there
<timokau[m]> But then again I've re-build suitesparse 14 times now without reproducing the error, so its probably at least somewhat machine dependent
<gchristensen> timokau[m]: I wish I had that much ram, too. this and several other servers are extremely graciously provided by Packet.... I haven't calculated how much the monthly bill would be, but... it'd be a lot.
<timokau[m]> Looks like we couldn't wish for a better sponsor :)
<timokau[m]> Regarding the suitesparse issue I don't know how to proceed. Probably will do the 5.4.0 update (#53128) and pray that it resolves the issue somehow
<{^_^}> https://github.com/NixOS/nixpkgs/pull/53128 (by timokau, 30 minutes ago, open): suitesparse: 5.3.0 -> 5.4.0
eadwu has quit [Ping timeout: 250 seconds]
<dtz> !!
<dtz> i thought they just liked you, or us ;) :D
<gchristensen> well, they *do* like us, and me, a lot
<dtz> :D
<dtz> \o/
orivej has quit [Ping timeout: 272 seconds]
boredom101 has joined #nixos-dev
eadwu has joined #nixos-dev
boredom101 has quit [Quit: Page closed]
eadwu has quit [Ping timeout: 250 seconds]
FRidh has quit [Quit: Konversation terminated!]
eadwu has joined #nixos-dev
eadwu has quit [Quit: WeeChat 2.3]
eadwu has joined #nixos-dev
orivej has joined #nixos-dev
init_6 has quit []
infinisil is now known as https
https is now known as infinisil
nDuff has joined #nixos-dev
orivej has quit [Ping timeout: 250 seconds]
orivej has joined #nixos-dev
pie_ has joined #nixos-dev
drakonis has joined #nixos-dev
eadwu has quit [Ping timeout: 252 seconds]
eadwu has joined #nixos-dev
orivej has quit [Ping timeout: 245 seconds]
nDuff has quit [Quit: zzz]
eadwu has quit [Ping timeout: 252 seconds]
drakonis has quit [Read error: Connection reset by peer]
eadwu has joined #nixos-dev
worldofpeace has joined #nixos-dev
pie_ has quit [Ping timeout: 250 seconds]
eadwu has quit [Ping timeout: 244 seconds]
sir_guy_carleton has joined #nixos-dev
pie_ has joined #nixos-dev
eadwu has joined #nixos-dev
eadwu has quit [Ping timeout: 245 seconds]
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos-dev
eadwu has joined #nixos-dev
eadwu has quit [Ping timeout: 246 seconds]
avn has quit [Remote host closed the connection]
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos-dev
orivej has joined #nixos-dev
orivej has quit [Ping timeout: 250 seconds]
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos-dev
eadwu has joined #nixos-dev
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos-dev