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
orivej has joined #nixos-borg
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #nixos-borg
orivej has quit [Ping timeout: 268 seconds]
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nixos-borg
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nixos-borg
orivej has joined #nixos-borg
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nixos-borg
{^_^} has quit [Changing host]
{^_^} has joined #nixos-borg
orivej has quit [Ping timeout: 264 seconds]
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nixos-borg
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nixos-borg
{^_^} has quit [Changing host]
{^_^} has joined #nixos-borg
<infinisil> !factoids
<gchristensen> I didn't start factoids heh
orivej has joined #nixos-borg
<infinisil> I guess I'll take this as motivation for building multiple backends for my bot, I can't rely on always having {^_^} serve as a backend :)
<infinisil> Um frontend i mean
<gchristensen> well
<gchristensen> up to you
<gchristensen> but ideally it'd stay under {^_^} for #nix*
<gchristensen> {^_^} will be back to fully functional shortly
<gchristensen> but it is true that {^_^} isn't my full-time job and there is no SLA
<infinisil> Well, if you get {^_^} to not fail every so often I'm all for it
<infinisil> It also has hiccups occasionally where it disconnects my backend randomly, comes back right after that though
<gchristensen> those hiccups are normal / should be tolerated
<gchristensen> the random failures should be fixed, I'll give it som elove :)
<infinisil> What's the reason for the hiccups?
<gchristensen> infrastructure maintenance and shifting rabbitmq upstreams
<infinisil> Can't you make it not drop messages at least?
<gchristensen> you'll need to turn on publish confirms
<infinisil> Oh yeah in that case it might by my problem :P
<infinisil> I'll try that
<gchristensen> ok
<LnL> btw, do you have any ideas on how to fix/improve the tests for the fetchGit fix?
<infinisil> gchristensen: Hmm, I think I am using confirms already? I put the channel into confirm mode (method confirmSelect) with no-wait=False, and then I send basic acks for each message that has been processed on that channel
<LnL> I should really read up a bit on rabbitmq
<LnL> but that doesn't sound like a ping/keepalive
<infinisil> Maybe
<infinisil> Maybe it sends pings in the background by default
<LnL> so if something happens to the connection but it doesn't close it could get stuck
* infinisil has no clue
<LnL> I vaguely remember reading something about pings in ofborg
<gchristensen> heartbeats
<infinisil> Hmm.. Maybe it's my fault after all: When my bot disconnects, it exits, then systemd restarts it, and the messages inbetween that time get lost, not sure how that's supposed to work
<infinisil> I think I'm supposed to keep something alive to make it work
<LnL> ah yeah, ping is irc :p
<gchristensen> you don't want to queue up messages when your bot is down
<gchristensen> if you''re down for more than a minute you're only going to be spamming
<infinisil> Yeah, I should fix it so it doesn't exit when rabbitmq disconnects for whatever reason
<infinisil> And reuse a queue/channel/exchange/connection/whatever
<infinisil> There's too many words for stuff
<gchristensen> at least they have specific, well documented meanings
<infinisil> Which I still haven't looked up heh
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nixos-borg
{^_^} has quit [Changing host]
{^_^} has joined #nixos-borg
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nixos-borg
{^_^} has quit [Changing host]
{^_^} has joined #nixos-borg
jtojnar has quit [Quit: jtojnar]
<gchristensen> infinisil: can you shut down your bot for now
<gchristensen> while I debug
{^_^} has quit [Remote host closed the connection]
<infinisil> Yup, shut it down
<gchristensen> thanks
{^_^} has joined #nixos-borg
{^_^} has quit [Changing host]
{^_^} has joined #nixos-borg
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nixos-borg
{^_^} has joined #nixos-borg
{^_^} has quit [Changing host]
<gchristensen> you know that comic String -> String -> String
<gchristensen> and the kid sticks a stick in his bike tire
<gchristensen> and then blaims types
<gchristensen> blames types
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nixos-borg
<gchristensen> b/c ...
<gchristensen> !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.
<gchristensen> ok infinisil start your bot again
<samueldr> gchristensen: any changes for the github bridge?
<gchristensen> no
<samueldr> :)
<gchristensen> just reverting a stupid diff where I thought I knew what I was doing
<samueldr> don't we all?
* samueldr is hacking on kernel code, so definitely is
<gchristensen> haha :D
<samueldr> it's going much better than I thought
<gchristensen> what're you up to?
<samueldr> "fixing" a framebuffer issue on my cellphone
<samueldr> though, what I first did was taking OEM 1 repo and porting the generic changes to Asus' fork
<samueldr> (changes nothing, but will make easier to later merge full changes)
<samueldr> (the issue I'm having is that the kernel code works as designed)
<gchristensen> back in a bit
<gchristensen> haha gotcha
<infinisil> ,
<gchristensen> ,tofu
<infinisil> ,
<{^_^}> All commands: -A IFD NUR ask bootfull callPackage channels cloudfront context error escape" escape'' escape-special github hardware help home-manager karma library locate logs magic nix-env-r nix-info nix-repl nixGL nixcon nixeval not-os notfound outPath overlay paste pills ping pinning pr profiling pure-eval replaceModule runtimeDeps stateVersion stuck timer tofu unfree unstable whomademe
<gchristensen> ,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.
<gchristensen> ,whomademe
<{^_^}> The PR linking on #<number>, the "," prefix commands and the "> " nix eval have been implemented by infinisil, my source code can be found at https://github.com/infinisil/nixbot, the other functions of me have been implemented by other people
<gchristensen> should probably at least link to the ofborg repo & mention me, infinisil
<gchristensen> seeing as its me on the line if it does the wrong thing
<infinisil> Ah yeah sorry
<infinisil> gchristensen: Is https://github.com/NixOS/ofborg the repo where all irc stuff lives?
<infinisil> (currently rewording ,whomademe)
<infinisil> ,whomademe = #<prnumber>, ',command' and '> nix' are implemented in infinisil's backend https://github.com/infinisil/nixbot utilizing gchristensen {^_^} frontend https://github.com/NixOS/ofborg/tree/released/ircbot . The rest of the features are done by other people's backends
<{^_^}> whomademe defined
<infinisil> gchristensen: Feel free to sensibly adjust it :)
<gchristensen> lgtm
<gchristensen> I'm going to delete !factoids
<infinisil> RIP
<gchristensen> tbh
<gchristensen> I created the factoid code as a PoC of the whole thing, with the intention someone would be nerd-sniped in to making a good one :D
<gchristensen> s/intention/hope/ :D
<infinisil> Hehe, ya got me
<infinisil> I just have too much time tbh
<gchristensen> well ...
<gchristensen> I think it is really really fun to have a small well defined problem and a framework to execute it in, without too much work
<samueldr> ooh neat, after reading the kernel code I realised I could just leave a dummy process with a handle on the framebuffer instead of neutering kernel code :)
<gchristensen> nice!
<gchristensen> infinisil: calling it nerd-sniping is a bit more malicious than it really was ...
<gchristensen> I was hoping someone else would make a better one, and I'm glad you did
<infinisil> I'm glad I was able to :)