Skip to content

http-parser and github-bot #986

Closed
Closed

Description

@maclover7

Having issues when post-build-status-update is POSTing to github-bot:

21:11:00.803Z ERROR bot: Error while updating Jenkins / GitHub PR status (req_id=574bb8af-2745-47e3-b416-9b8d9f7f0371, pr=388, job=test, status=success)
    err: {
      "code": 404,
      "status": "Not Found",
      "message": "{\"message\":\"Not Found\",\"documentation_url\":\"https://developer.github.com/v3/repos/statuses/#create-a-status\"}"

Initial thought was authentication issue, since GitHub's API docs say that 404s can be returned if the user does not have proper permissions level. Discussed briefly, but @phillipj had to run, so logging this issue so this isn't forgotten.

Activity

  1. maclover7 commented on Nov 20, 2017

    @maclover7
    ContributorAuthor

    ping @phillipj, have you had a chance to look into this?

  2. phillipj commented on Nov 21, 2017

    @phillipj
    Member

    @joyeecheung just found that the bot has to be added as collaborator to the repos we want it to push status updates to.

  3. joyeecheung commented on Nov 22, 2017

    @joyeecheung
    Member

    Yes, the setup should be similar to https://github.com/nodejs/automation/blob/master/enable-travis-under-nodejs.md except it's a different CI to poll

  4. joyeecheung commented on Nov 22, 2017

    @joyeecheung
    Member

    @maclover7 Which repo does the bot need to have access to? I can add it.

  5. maclover7 commented on Nov 22, 2017

    @maclover7
    ContributorAuthor

    @joyeecheung ah ok. If you could add nodejs/http-parser, that'd be amazing :)

  6. joyeecheung commented on Nov 23, 2017

    @joyeecheung
    Member

    @maclover7 OK I've added the bots team to http-parser, can you check if it can update the status now?

  7. joyeecheung commented on Nov 23, 2017

    @joyeecheung
    Member

    Also, http-parser does not seem to have setup the github webhook, doesn't it need one?

  8. maclover7 commented on Nov 23, 2017

    @maclover7
    ContributorAuthor

    Perfect, http-parser-test jobs seem to be updating properly now, thank you for your help!

    Also, http-parser does not seem to have setup the github webhook, doesn't it need one?

    This was to allow ci.nodejs.org to sent status updates, not Travis CI :)

  9. joyeecheung commented on Nov 23, 2017

    @joyeecheung
    Member

    @maclover7 I meant the PR & push events of http-parser would not be sent to the bot, since there are no hooks configured. But if the bot can get the events somehow (or it does not need those events) then it's good.

  10. joyeecheung commented on Nov 23, 2017

    @joyeecheung
    Member

    Ah, I see, the events would be manually triggered using the Jenkins UI, instead of being sent from GitHub, like what we do to the node core.

  11. joyeecheung commented on Nov 23, 2017

    @joyeecheung
    Member

    (Which reminds me: can we make the bot smarter? Like if the author is a collaborator and they put a keyword in the PR text then the bot will start the CI automatically and reply in the thread?)

  12. phillipj commented on Nov 23, 2017

    @phillipj
    Member

    For sure.

    I've had a go at triggering Jenkins builds by posting comments in PRs. It worked for a whole week or so in the CITGM repo, before we suddenly started seeing "permission denied" responses from Jenkins IIRC: nodejs/github-bot#146

    Mind mentioning that my impression is there's lots of discussions to be had before we can enable something like that on the nodejs/node repo because of the "certify safe" option: nodejs/github-bot#128 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions