m-labs / artiq

A leading-edge control system for quantum information experiments
https://m-labs.hk/artiq
GNU Lesser General Public License v3.0
439 stars 202 forks source link

Kick off buildbot on github push #216

Closed whitequark closed 8 years ago

whitequark commented 8 years ago

@sbourdeauducq I can't do this, since I don't have admin access to m-labs repositories. Hypothetically it should be enough to point a custom hook to http://101.78.236.68/buildbot/change_hook/github?project=PROJECT where PROJECT is artiq, misoc, migen.

sbourdeauducq commented 8 years ago

The server seems to return HTTP 500 to github.

whitequark commented 8 years ago

Hm:

2016-01-08 11:25:26+0800 [HTTPChannel,13,] Attempting to load module buildbot.status.web.hooks.github
2016-01-08 11:25:26+0800 [HTTPChannel,13,] processing changes from web hook
        Traceback (most recent call last):
        Failure: exceptions.KeyError: 'payload'
sbourdeauducq commented 8 years ago

Hmm maybe it works for actual pushes...

whitequark commented 8 years ago

Yeah, I recall something like that. Try it.

sbourdeauducq commented 8 years ago

Didn't work, still 500.

sbourdeauducq commented 8 years ago

Should I use json content type or x-www-form-urlencoded?

whitequark commented 8 years ago

application/x-www-form-urlencoded.

sbourdeauducq commented 8 years ago

OK that works now, can you disable auto build for non-master branches?

whitequark commented 8 years ago

Done