Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http-parser and github-bot #986

Closed
maclover7 opened this issue Nov 7, 2017 · 12 comments
Closed

http-parser and github-bot #986

maclover7 opened this issue Nov 7, 2017 · 12 comments
Assignees

Comments

@maclover7
Copy link
Contributor

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.

@maclover7
Copy link
Contributor Author

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

@phillipj
Copy link
Member

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

@joyeecheung
Copy link
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

@joyeecheung
Copy link
Member

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

@maclover7
Copy link
Contributor Author

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

@joyeecheung
Copy link
Member

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

@joyeecheung
Copy link
Member

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

@maclover7
Copy link
Contributor Author

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 :)

@joyeecheung
Copy link
Member

joyeecheung commented Nov 23, 2017

@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.

@joyeecheung
Copy link
Member

joyeecheung commented Nov 23, 2017

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.

@joyeecheung
Copy link
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?)

@phillipj
Copy link
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
Projects
None yet
Development

No branches or pull requests

3 participants