gchristensen changed the topic of #nixos-borg to: https://www.patreon.com/ofborg https://monitoring.nix.ci/dashboard/db/ofborg?refresh=10s&orgId=1&from=now-1h&to=now "I get to skip reviewing the PHP code and just wait until it is rewritten in something sane, like POSIX shell. || https://logs.nix.samueldr.com/nixos-borg
<infinisil> ,
<infinisil> ,
<{^_^}> All commands:
<infinisil> Finally done compiling, deployed now!
<{^_^}> pills defined
<infinisil> ,stuck = https://howoldis.herokuapp.com/
<{^_^}> stuck defined
<infinisil> ,tofu = To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<{^_^}> tofu defined
<infinisil> ,unfree = You cannot install your unfree software? See https://nixos.wiki/wiki/FAQ/unfree
<{^_^}> unfree defined
<infinisil> ,notfound = nix-env -qaP does not show the package you are looking for but you are sure it should be there? Check out https://nixos.wiki/wiki/FAQ/notfound
<{^_^}> notfound defined
<infinisil> ,library = Don't install libraries through nix-env or systemPackages. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<{^_^}> library defined
<infinisil> ,ask = Don't ask if anyone uses software xyz, just ask your specific question. This helps solve your problem quicker, and allows people who haven't used xyz but may still be able to help you to do so.
<{^_^}> ask defined
<{^_^}> channels defined
<{^_^}> cloudfront defined
<infinisil> ,-A = You'll usually want to use nix-env -i with -A. It's faster and more precise. See https://nixos.wiki/wiki/FAQ/nix-env_-iA for details.
<{^_^}> -A defined
<infinisil> ,help = Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the user somebody
<{^_^}> help defined
<infinisil> ,help = Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<{^_^}> help defined
<infinisil> Alright, I ported all factoids
<infinisil> Some more useful commands would be for stateVersion, callPackage and string escaping
<infinisil> ,stateVersion = Setting stateVersion to the latest release doesn't update anything and can only break your setup at best. If you want to regardless, Ctrl-F for "stateVersion" in https://nixos.org/nixos/manual/release-notes.html to see things that need to be manually upgraded with the new value
<{^_^}> stateVersion defined
<infinisil> ,callPackage = If a Nix file ./foo.nix starts with something like `{ bar, baz }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<{^_^}> callPackage defined
<infinisil> ,"escape" = "\""
<{^_^}> "escape" defined
<infinisil> ,"escape' = "'"
<{^_^}> "escape' defined
<infinisil> ,"escape$ = "\$"
<{^_^}> "escape$ defined
<infinisil> ,"escape' = ' does not need to be escaped in " marks
<{^_^}> "escape' defined
<gchristensen> (this seems like maybe too much)
<infinisil> ,''escape" = " does not need to be escaped in '' marks
<{^_^}> ''escape" defined
<infinisil> I'll go to #bottest to enter them, but they do seem rather useful
<infinisil> Ohh.. but the command listing will include all of them
<gchristensen> I'm not sure, maybe instsead a wiki page which shows all thee various esccaping examples and just a single ,escaping
<infinisil> Oh yeah that would be better
<infinisil> How about
<infinisil> ,escape" = " \" ' \$ "
<{^_^}> escape" defined
<infinisil> ,escape'' = '' " ' $ ''
<{^_^}> escape'' defined
<gchristensen> ehhh
<gchristensen> I think there is just too much to condense in to individual factoids
<infinisil> It's a super short reference
<infinisil> I'll define those two just in case somebody needs a reference, but a wiki page could be added later
<infinisil> ,escape'' = '' double quote: " single quote: ' dollar: $ two single quotes: ''' bash curly bois: ''${} any character x: ''\x ''
<{^_^}> escape'' defined
<infinisil> ,escape" = " double quote: \" dollar: \$ two single quotes: '' bash curly bois: \${} ''
<{^_^}> escape" defined
<infinisil> ,escape'' = '' double quote: " dollar: $ two single quotes: ''' bash curly bois: ''${} any character x: ''\x ''
<{^_^}> escape'' defined
<infinisil> There we go
<infinisil> I think i got everything
<infinisil> ,escape" = " double quote: \" dollar: \$ two single quotes: '' bash curly bois: \${} "
<{^_^}> escape" defined
<gchristensen> man ... you sure/
<infinisil> I am indeed not sure
<gchristensen> do you need to escape a $ in a ".."?
<infinisil> Oh you do not
<infinisil> And \\ is missing
<infinisil> ,escape" = " double quote: \" backslash: \\ bash curly bois: \${} newline: \n tab: \t "
<{^_^}> escape" defined
<gchristensen> I'm pretty sure a redirect to a wiki page would be nicer =)
<infinisil> ,escape'' = '' two single quotes: ''' bash curly bois: ''${} any character x: ''\x ''
<{^_^}> escape'' defined
<infinisil> Eh, I'm too lazy to write a wiki entry right now, but feel free to add it yourself heh
<infinisil> Would fit well under ,escape
<gchristensen> samueldr
<infinisil> ,escape'' = '' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
<{^_^}> escape'' defined
<infinisil> Alright, *now* i think i got everything
<infinisil> The ultimate level of this command bot is for it to train a neural network to detect when it's likely that a user needs a certain command
<samueldr> hi gchristensen
* samueldr reads through the bot noise
<samueldr> adding the explanations to the wiki sure allows to elaborate and explain more than the [debatable irc message size] long messages
<gchristensen> also syntax highlighting and input / output examples :D
<samueldr> (speaking about wiki, FAQ and factoids https://github.com/NixOS/ofborg/pull/163 👀)
<samueldr> (and certainly do not feel obliged to anything there, other PRs may and probably are more important!)
<{^_^}> [ofborg] @grahamc merged pull request #169 → add willibutz to trusted users → https://git.io/vp2Ct
<{^_^}> [ofborg] @grahamc pushed 2 commits to next: https://git.io/vpazX
<{^_^}> → 3e148d91 by @WilliButz: add willibutz to trusted users
<{^_^}> → 697bd19d by @grahamc: Merge pull request #169 from WilliButz/add-willibutz
<{^_^}> [ofborg] @grahamc merged pull request #167 → add woffs to config.extra-known-users → https://git.io/vplAQ
<{^_^}> [ofborg] @grahamc pushed 2 commits to released: https://git.io/vpaz1
<{^_^}> → edc8d0a1 by @woffs: add myself to config.extra-known-users
<{^_^}> → d475d1be by @grahamc: Merge pull request #167 from woffs/addme
<{^_^}> [ofborg] @grahamc merged pull request #166 → Asking for ofborg access → https://git.io/vpl5T
<{^_^}> [ofborg] @grahamc pushed 2 commits to released: https://git.io/vpazD
<{^_^}> → a50f1047 by @jlesquembre: Asking for ofborg access
<{^_^}> → 92039157 by @grahamc: Merge pull request #166 from jlesquembre/patch-1
<{^_^}> [ofborg] @grahamc merged pull request #165 → Add gilligan to trusted users → https://git.io/vpWP0
<{^_^}> [ofborg] @grahamc pushed 2 commits to next: https://git.io/vpazy
<{^_^}> → 483258f1 by @gilligan: Add gilligan to trusted users
<{^_^}> → 87304afc by @grahamc: Merge pull request #165 from gilligan/gilligan-trusted-user
<{^_^}> [ofborg] @grahamc merged pull request #161 → Add timokau to trusted users → https://git.io/vxxkE
<{^_^}> [ofborg] @grahamc pushed 2 commits to released: https://git.io/vpazS
<{^_^}> → 4e97ff87 by Timo Kaufmann: Add timokau to trusted users
<{^_^}> → c98dc63b by @grahamc: Merge pull request #161 from timokau/timokau-trusted
<{^_^}> [ofborg] @grahamc merged pull request #163 → factoids: Adds !stateVersion → https://git.io/vpaz9
<{^_^}> [ofborg] @grahamc pushed 2 commits to released: https://git.io/vpazH
<{^_^}> → 9889a92d by @samueldr: factoids: Adds !stateVersion
<{^_^}> → 42fb9e06 by @grahamc: Merge pull request #163 from samueldr/factoids/stateVersion
<samueldr> thanks!
<samueldr> and that decreased the open PR amount a great deal
<{^_^}> [ofborg] @grahamc pushed 4 commits to next: https://git.io/vpaz5
<{^_^}> → efdd718f by @LnL7: nixpkgs: 2018-02-23 -> 2018-04-11
<{^_^}> → 21751a45 by @LnL7: fix warnings with rust 1.25.0
<{^_^}> → bf8ed053 by @LnL7: run build on travis and make warnings fail
<{^_^}> [ofborg] @grahamc merged pull request #162 → nixpkgs: 2018-02-23 -> 2018-04-11 → https://git.io/vxpMT
<samueldr> if only the same ratio could be done with nixpkgs
<{^_^}> [ofborg] @grahamc pushed 9 commits to next: https://git.io/vpazF
<{^_^}> → 4e97ff87 by Timo Kaufmann: Add timokau to trusted users
<{^_^}> → 9889a92d by @samueldr: factoids: Adds !stateVersion
<{^_^}> → a50f1047 by @jlesquembre: Asking for ofborg access
<gchristensen> I rly should setup something like Jenkins to handle deploying this stufff
<samueldr> CI that deploys on green?
<samueldr> I wonder if gitlab CI works with mirrors on gitlab.com
<gchristensen> yeah, or, say, a weekly job to rebuild and reboot the aarch64 builder
<samueldr> gitlab CI is... not bad, gitlab supports mirroring git repos, gitlab.com provides free CI for public projects, so fewer moving bits to manage
<samueldr> at $client I used nix do create a docker image for use with gitlab CI
<gchristensen> it'd proably need to run as an agent somewhere stateful with backups, so it can retain nixops' state and whatnot
<infinisil> gchristensen++
<{^_^}> gchristensen's karma increased to 1
<infinisil> \o/
<gchristensen> :o
<gchristensen> with that I could also have a every-30-min job to scale up/down based on demand
<gchristensen> / price
<gchristensen> ^ this is something that 50% exists already, but is run on demand
<gchristensen> ekleog: 'round?
<samueldr> IIRC gitlab CI can do state, not entirely sure though, it may be cache and not state...
<gchristensen> [grahamc@ogden:~]$ nixos-version
<gchristensen> 17.09.3031.d09e425aea3 (Hummingbird)
<gchristensen> yikes
<gchristensen> waiting for the machine to finish rebooting...[down]..................................................
<gchristensen> hate this feeling :D
<gchristensen> ok I setup a buildkite thing
<infinisil> ,ping = pong
<{^_^}> ping defined
<infinisil> ,areyoualive = I'm still here, thanks for asking!
<{^_^}> areyoualive defined
orivej has quit [Ping timeout: 256 seconds]
zimbatm has quit [*.net *.split]
zimbatm has joined #nixos-borg
LnL has quit [Ping timeout: 260 seconds]
LnL has joined #nixos-borg
<ekleog> <gchristensen> ekleog: 'round? <-- now I am :)
MichaelRaskin has quit [Quit: MichaelRaskin]
orivej has joined #nixos-borg
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos-borg
<gchristensen> hi ekleog
<LnL> ECONNRESET
<gchristensen> hah
<gchristensen> sharing nixops networks is super hard
<LnL> how useful is that without some way to simulate the interaction with github?
<LnL> gchristensen: btw, did I mention with my nixpkgs bump that the carnix patch doesn't apply anymore?
<LnL> or did I forget
<ekleog> hi gchristensen :)
<ekleog> (someday we'll manage to be real-time!)
orivej has quit [Ping timeout: 268 seconds]
orivej has joined #nixos-borg
<gchristensen> LnL: how useeful is what?
<gchristensen> LnL: hmm I don't remember
<gchristensen> so the interesting thing, ekleog, about your failing tests, is they pass on my machine and on Travis
<gchristensen> I think I'm going to ditch the `next` branch
<ekleog> that's weird. using nix2 or nix1.11?
<ekleog> (from what I remember on last investigation it was likely due to the switch to nix2)
<gchristensen> nix-shell --packages git -I nixpkgs=./nix/default.nix
<gchristensen> error: stack overflow (possible infinite recursion)
<gchristensen> hmm
<LnL> failing tests?
<LnL> they should all work with both 1.11 and 2.0
* ekleog testing in a nix-shell --pure just to be sure
<ekleog> no, still 10 failures, nix::tests::instantiation nix::tests::partition_instantiable_attributes nix::tests::safely_build_attrs_failure nix::tests::safely_build_attrs_success nix::tests::safely_instantiate_attrs_failure nix::tests::safely_instantiate_attrs_success nix::tests::strict_sandboxing tasks::build::tests::test_all_jobs_skipped tasks::build::tests::test_simple_build
<ekleog> tasks::massrebuilder::tests::stdenv_checking
<LnL> and that's on next right?
<LnL> don't think my fixed are in the released branch yet
<ekleog> yup, on ee6fb695667cc38834bd95b9e809a3df363fed4c
<ekleog> oh I'm a few commits late, missing your nixpkgs update
<LnL> ah wait, a pure shell won't work if you don't enable one of the nix version flags
<LnL> I removed the explicit dependency to avoid problems with client/daemon version mismatched
<ekleog> nix version flags? when I ran it in a non-pure shell it also failed, though
<{^_^}> [ofborg] @xeji opened pull request #170 → add xeji to trusted users → https://git.io/vpVGA
<ekleog> ^ hmm, aren't all committers automatically trusted users? I'm pretty sure xeji already merged some of my PRs
<gchristensen> no, commiters are automatically added as known users
<LnL> it's known vs trusted, committers can't test darwin because there's no sandboxing there
<ekleog> oh, didn't know :)
<WilliButz> for some reason borg does not seem to run at all right now oO
<WilliButz> for almost 12h according to grafana
<gchristensen> oh really
<gchristensen> that ... is not good .......
<LnL> urgh
<gchristensen> ofborg-0.1.5-deps-stripped/bin/github_comment_filter: No such file or directory cool, cool...
<LnL> hrm, did my update break something?
<gchristensen> :o
<LnL> it includes a rustc/cargo update IIRC
<gchristensen> the binaries used to be called 'foo_bar' and now they're called foo-bar
<gchristensen> we'll have to fix that with symlinkns
<ekleog> LnL: can now confirm that even on 2318765308d9018a5ef006726e38bc8f4a3b8158 the same 10 tests fail, both in a nix-shell --pure and a nix-shell (both started from the root of the `ofborg` repo)
<gchristensen> thank you WilliButz :$
<gchristensen> embarrassing
<WilliButz> gchristensen: no problem %)
<LnL> ekleog: testing, have you tried the command that travis runs?
<ekleog> even nix-shell --run checkPhase fails :/
<ekleog> ISTR it was something linked with <nix/config.nix> and I stopped investigating there last time because I had no idea what this file was about
<LnL> oh, it uses that?
<LnL> compare readlink -f $(command -v nix-store) with ps aux | grep nix-daemon
<LnL> are those the same store paths?
<gchristensen> ok so the good news WilliButz is we didn't lose any work
<WilliButz> gchristensen: a nice :)
<ekleog> ps aux doesn't give me the path, but readlink -f $(command -v nix-store) and sudo readlink /proc/$(pidof nix-daemon)/exe do return the same store path
<LnL> hmm, <nix/config.nix> should work then
<LnL> unless you're using distributed builds
<ekleog> (not sure that's the same issue as last time, though, last time was much closer to the time I had switched to nix2)
<ekleog> no distributed builds, just bare nixos
<LnL> uh oh, I'm thinking of something now
<LnL> nixos doesn't set NIX_REMOTE anymore
<LnL> I changed some stuff around that to make it work on travis
<LnL> nah, also looks fine
<ekleog> still fails with nix-shell then NIX_REMOTE=daemon checkPhase, but it only fails 3 tests now :D
<ekleog> only nix::tests::safely_build_attrs_failure nix::tests::safely_build_attrs_success tasks::build::tests::test_simple_build remaining
<LnL> that's weird, I used "" if it's not set so that should be the same as auto
<{^_^}> [ofborg] @Ekleog opened pull request #171 → Export NIX_REMOTE in the shell so that building on recent NixOS doesn't fail → https://git.io/vpVcc
<LnL> test result: ok. 68 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
<ekleog> not sure that's useful, but I've got to go now, so… :)
<LnL> that pr will break travis
<ekleog> oh.
<ekleog> also, what? just tried with `NIX_REMOTE=auto` in the export statement, and now it fails 6 tests
<ekleog> so nothing → 10 failures, NIX_REMOTE=auto → 6 failures, NIX_REMOTE=daemon → 3 failures
<LnL> wait...
<LnL> that should be false
<LnL> so what I mentioned about <nix/config.nix> earlier is probably the issue
<ekleog> so with false it fails 3 checks, just like with NIX_REMOTE=daemon \o/
<{^_^}> [ofborg] @Ekleog opened pull request #172 → Default to building with nix2 → https://git.io/vpVCL
<{^_^}> [ofborg] @Ekleog closed pull request #171 → Export NIX_REMOTE in the shell so that building on recent NixOS doesn't fail → https://git.io/vpVcc
<LnL> I'll fix that and add some comments to the flags
orivej has quit [Ping timeout: 256 seconds]
<ekleog> will try to investigate the remaining failures later, really got to go now :)
<ekleog> thanks!
orivej has joined #nixos-borg
orivej has quit [Ping timeout: 264 seconds]
<gchristensen> I should setup a binary cache ...
<gchristensen> uploading releases to a dozen servers gets old extremely fast ;P
<{^_^}> [ofborg] @grahamc merged pull request #170 → add xeji to trusted users → https://git.io/vpVGA
<{^_^}> [ofborg] @grahamc pushed 2 commits to released: https://git.io/vpV2q
<{^_^}> → 4905d7f7 by @xeji: add xeji to trusted users
<{^_^}> → 59217d29 by @grahamc: Merge pull request #170 from xeji/add-xeji
<{^_^}> [ofborg] @grahamc pushed 4 commits to next: https://git.io/vpV2l
<{^_^}> → 4905d7f7 by @xeji: add xeji to trusted users
<{^_^}> → 59217d29 by @grahamc: Merge pull request #170 from xeji/add-xeji
<{^_^}> → bfeecc38 by @grahamc: Merge origin/released
<{^_^}> [ofborg] @grahamc merged pull request #172 → Default to building with nix2 → https://git.io/vpVCL
<{^_^}> [ofborg] @grahamc pushed 2 commits to next: https://git.io/vpV2a
<{^_^}> → aeaf93b9 by @Ekleog: Default to building with nix2
<{^_^}> → 38b26e65 by @grahamc: Merge pull request #172 from Ekleog/default-nix-2
orivej has joined #nixos-borg
MichaelRaskin has joined #nixos-borg
globin has quit [Ping timeout: 260 seconds]
globin has joined #nixos-borg
globin has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 260 seconds]