<div dir="ltr">You're right, that was the problem. And the build statuses show under the "Activity" tab on the pull request page. Thanks.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 16, 2017 at 12:03 PM, Pierre Tardy <span dir="ltr"><<a href="mailto:tardyp@gmail.com" target="_blank">tardyp@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Chris,<div><br></div><div>I am not sure there are many bitbucket users right there. There is a possibility of a bug, or a change of api by bitbucket.</div><div>Actually buildbot is expecting code 201 from bitbucket:</div><div><a href="https://github.com/buildbot/buildbot/blob/master/master/buildbot/reporters/bitbucket.py#L96" target="_blank">https://github.com/buildbot/<wbr>buildbot/blob/master/master/<wbr>buildbot/reporters/bitbucket.<wbr>py#L96</a><br></div><div><br></div><div>You may want to try to change this line to</div><div><br></div><div>if response.code not in (200, 201):<br></div><div><br></div></div><br><div class="gmail_quote"><div><div class="h5"><div dir="ltr">Le jeu. 16 févr. 2017 à 17:16, Chris Spencer <<a href="mailto:chrisspen@gmail.com" target="_blank">chrisspen@gmail.com</a>> a écrit :<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr" class="m_-6615403330519421667gmail_msg"><div class="m_-6615403330519421667gmail_msg"><div class="m_-6615403330519421667gmail_msg"><div class="m_-6615403330519421667gmail_msg">I've tried enabling the BitbucketStatusPush with:<br class="m_-6615403330519421667gmail_msg"><br class="m_-6615403330519421667gmail_msg">    from buildbot.reporters.bitbucket import BitbucketStatusPush<br class="m_-6615403330519421667gmail_msg">    bs = BitbucketStatusPush(BITBUCKET_<wbr>OATH_KEY, BITBUCKET_OATH_SECRET)<br class="m_-6615403330519421667gmail_msg">    c['services'].append(bs)<br class="m_-6615403330519421667gmail_msg"><br class="m_-6615403330519421667gmail_msg"></div>and even though I enabled an Oauth consumer in my Bitbucket account, as explained in the docs, nothing shows up in Bitbucket.<br class="m_-6615403330519421667gmail_msg"><br class="m_-6615403330519421667gmail_msg"></div>Twistd.log shows the confusing error:<br class="m_-6615403330519421667gmail_msg"><br class="m_-6615403330519421667gmail_msg">    2017-02-16 16:03:02+0000 [-] 200: unable to upload Bitbucket status {"key": "myproject_runtests", "name": "myproject_runtests", "repository": {"links": {"self": {"href": "<a href="https://api.bitbucket.org/2.0/repositories/myproject/myproject" class="m_-6615403330519421667gmail_msg" target="_blank">https://api.bitbucket.org/2.<wbr>0/repositories/myproject/<wbr>myproject</a>"}, "html": {"href": "<a href="https://bitbucket.org/myproject/myproject" class="m_-6615403330519421667gmail_msg" target="_blank">https://bitbucket.org/<wbr>myproject/myproject</a>"}, "avatar": {"href": "<a href="https://bitbucket.org/myproject/myproject/avatar/32/" class="m_-6615403330519421667gmail_msg" target="_blank">https://bitbucket.org/<wbr>myproject/myproject/avatar/32/</a><wbr>"}}, "type": "repository", "name": "myproject", "full_name": "myproject/myproject", "uuid": "{1e98c979-a6d6-48d5-9b59-<wbr>8b6ffc130a60}"}, "url": "<a href="http://buildbot.myproject.com/#builders/1/builds/7" class="m_-6615403330519421667gmail_msg" target="_blank">http://buildbot.myproject.<wbr>com/#builders/1/builds/7</a>", "links": {"commit": {"href": "<a href="https://api.bitbucket.org/2.0/repositories/myproject/myproject/commit/6d0012a30f6a5d4b3f1b4a64853cd4181cceee88" class="m_-6615403330519421667gmail_msg" target="_blank">https://api.bitbucket.org/2.<wbr>0/repositories/myproject/<wbr>myproject/commit/<wbr>6d0012a30f6a5d4b3f1b4a64853cd4<wbr>181cceee88</a>"}, "self": {"href": "<a href="https://api.bitbucket.org/2.0/repositories/myproject/myproject/commit/7d0139a20f5a5d4b3f1b4c64853cd4181cceee88/statuses/build/myproject_runtests" class="m_-6615403330519421667gmail_msg" target="_blank">https://api.bitbucket.org/2.<wbr>0/repositories/myproject/<wbr>myproject/commit/<wbr>7d0139a20f5a5d4b3f1b4c64853cd4<wbr>181cceee88/statuses/build/<wbr>myproject_runtests</a>"}}, "refname": null, "state": "SUCCESSFUL", "created_on": "2017-02-16T16:02:02.432495+<wbr>00:00", "updated_on": "2017-02-16T16:03:02.232617+<wbr>00:00", "type": "build", "description": ""}<br class="m_-6615403330519421667gmail_msg"><br class="m_-6615403330519421667gmail_msg"></div>What's going on here? Why is it "unable to upload status", but the JSON doesn't mention any error? How do I get an explanation for the upload error? Is there anyway to test this from the command line to confirm the settings are correct?<br class="m_-6615403330519421667gmail_msg"></div><div class="gmail_extra m_-6615403330519421667gmail_msg"><br class="m_-6615403330519421667gmail_msg"><div class="gmail_quote m_-6615403330519421667gmail_msg">On Wed, Feb 15, 2017 at 5:51 PM, Chris Spencer <span dir="ltr" class="m_-6615403330519421667gmail_msg"><<a href="mailto:chrisspen@gmail.com" class="m_-6615403330519421667gmail_msg" target="_blank">chrisspen@gmail.com</a>></span> wrote:<br class="m_-6615403330519421667gmail_msg"><blockquote class="gmail_quote m_-6615403330519421667gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="m_-6615403330519421667gmail_msg"><div class="m_-6615403330519421667gmail_msg"><div class="m_-6615403330519421667gmail_msg">I had written a custom status reporter for publishing the build results to any open pull requests linked to the build's branch.<br class="m_-6615403330519421667gmail_msg"><br class="m_-6615403330519421667gmail_msg"></div>After I upgraded to 0.9, this naturally stopped working, but I noticed that 0.9 now has a BitbucketStatusPush class (<a href="http://docs.buildbot.net/latest/manual/cfg-reporters.html#bitbucketstatuspush" class="m_-6615403330519421667gmail_msg" target="_blank">http://docs.buildbot.net/<wbr>latest/manual/cfg-reporters.<wbr>html#bitbucketstatuspush</a>).<br class="m_-6615403330519421667gmail_msg"><br class="m_-6615403330519421667gmail_msg"></div>However, it's unclear what this does. It says status is "published to a specific commit SHA". What does that mean in terms of the Bitbucket UI? Does that status show up in any outstanding pull requests, or does it show somewhere else?<br class="m_-6615403330519421667gmail_msg"></div>
</blockquote></div><br class="m_-6615403330519421667gmail_msg"></div></div></div>
______________________________<wbr>_________________<br class="m_-6615403330519421667gmail_msg">
users mailing list<br class="m_-6615403330519421667gmail_msg">
<a href="mailto:users@buildbot.net" class="m_-6615403330519421667gmail_msg" target="_blank">users@buildbot.net</a><br class="m_-6615403330519421667gmail_msg">
<a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" class="m_-6615403330519421667gmail_msg" target="_blank">https://lists.buildbot.net/<wbr>mailman/listinfo/users</a></blockquote></div>
</blockquote></div><br></div>