verm__ changed the topic of #buildbot to: A Software Freedom Conservancy Project | Buildbot-3.5.0 | docs: http://docs.buildbot.net/current/ | tutorial: http://docs.buildbot.net/current/tutorial | irclogs: https://libera.irclog.whitequark.org/buildbot
koobs has quit [Quit: koobs]
mjw has quit [Read error: Connection reset by peer]
felixfontein has quit [Quit: reboot]
felixfontein has joined #buildbot
manx has quit [Quit: manx]
manx has joined #buildbot
Guest40 has joined #buildbot
Guest40 has quit [Quit: Ping timeout (120 seconds)]
manx has quit [Quit: manx]
manx has joined #buildbot
mjw has joined #buildbot
Guest40 has joined #buildbot
<Guest40> hi everyone. I have trouble adding a hook from bitbucket to my buildbot installation. managed to get it working with github but i need to hook it to bitbucket. the error I get can be seen at https://pastebin.com/1cz9JCAQ - any ideas on how I should debug this? i'm at a loss and been banging my head for 2 days on it.
<cmouse> " builtins.KeyError: b'payload'"
<cmouse> it's not sending 'payload' in the request
<Guest40> cmouse  but that's a bitbucket issue, I guess, right?
<cmouse> or the api has changed
<cmouse> or you've misconfigured it
<Guest40> I'd rather it's a misconfiguration and I catch it. but the hook is really basic, no auth, nothing.
<cmouse> maybe the api has changed?
<Guest40> ```c['www']['change_hook_dialects'] = {
<Guest40>   'github': {
<Guest40>     'secret': 'p4nterar0z',
<Guest40>     'strict': True,
<Guest40>   },
<Guest40>   'bitbucket': {}
<Guest40> }```
<cmouse> i ment on bitbucket side.
<Guest40> sorry
<Guest40> yeah, I get it.
<Guest40> this still doesn't solve my problem. should I file a bug, maybe?
<cmouse> maybe, yes.
<Guest40> any guidance on trying to solve this on my own. not sure I have what it takes to get it done but I already have the JSON that bitbucket sent, from their web console. this should match something on the buildbot side that parses it. not sure where to look - any help appreciated.
mjw has quit [Ping timeout: 252 seconds]
Guest40 has quit [Quit: Ping timeout (120 seconds)]
Guest40 has joined #buildbot
Guest40 has quit [Quit: Ping timeout (120 seconds)]
Guest40 has joined #buildbot
Guest40 has quit [Quit: Ping timeout (120 seconds)]
neoclust has left #buildbot [WeeChat 2.3]
<cmouse> it also has a useful looking URL as comment
vmeson has quit [Quit: Konversation terminated!]
Guest40 has joined #buildbot
<Guest40> I mananged to update the code and get it working. I would need some 'adult supervision' to make sure it's all OK. https://pastebin.com/GyztHkyR
vmeson has joined #buildbot
<cmouse> you could maybe simplify a bit =)
<cmouse> payload = json.loads(content)
<cmouse> if you are using python 3.6+ you can feed bytes to loads
<cmouse> also now your code pushes each individual commit as change, did you want this?
<cmouse> although, well, so did the old one, so never mind
<cmouse> othar than that, it looks good.
<cmouse> possibly would be less diff if you don't rename changes => chf
<Guest40> I have no history as to how this worked before. Only the code. And the only way to extract that kind of data that it *seems* to want, is pushing each individual commit.
<cmouse> chg
<cmouse> ah =)
<cmouse> you have a bug =)
<cmouse> log.msg(f'Received {len(chg)} changes from bitbucket') should use 'changes' not 'chg'
<Guest40> there's also the issue of populating revlink and the files, which no longer are present in the json sent by bitbucket.
<cmouse> as the array which you append stuff into is 'changes'
<Guest40> ok
<Guest40> fair enough, updated to reflect that
<Guest40> so maybe I should just create an issue and a pull request that contains the fix
<cmouse> that would be nice, yes.
<Guest40> here comes the actual hard work. :)
<Guest40> documenting the issue and the fix
<Guest40> thanks for the help cmouse
<cmouse> np, thanks for fixing this!
Guest40 has quit [Quit: Ping timeout (120 seconds)]
mjw has joined #buildbot
mjw has quit [Remote host closed the connection]
mjw has joined #buildbot
mark_ has joined #buildbot
mjw has quit [Read error: Connection reset by peer]
mark_ has quit [Ping timeout: 268 seconds]
mjw has joined #buildbot
mark_ has joined #buildbot
mjw has quit [Ping timeout: 256 seconds]
mark_ has quit [Read error: Connection reset by peer]
mjw has joined #buildbot
mark_ has joined #buildbot
mjw has quit [Ping timeout: 256 seconds]