github-bot icon indicating copy to clipboard operation
github-bot copied to clipboard

Jenkins CI status: Bot should not look for latest commit in PR

Open addaleax opened this issue 8 years ago • 4 comments

Right now the bot looks for the latest commit in a PR, but it should refer to the commit that the build was kicked off for.

It seems like there’s a commit field in the Jenkins push event body, so that should be pretty simple to do, I just don’t really know how to test this?

addaleax avatar Nov 16 '17 11:11 addaleax

As far as I remember, we tried to base the Jenkins <-> GitHub PR status logic on the commit provided by Jenkins, but that SHA was unknown by GitHub. We therefore made the bot resolve the latest commit SHA of the PR branch instead.

For all I know, this has changed meaning the SHA that Jenkins provides is actually valid SHA on github.com?

phillipj avatar Nov 16 '17 12:11 phillipj

Oh, I see. I assume that is/was because we do the rebasing before actually running test?

I don’t know, but if I look at things like https://ci.nodejs.org/job/node-test-commit/14072/ then the (commit: 683c07f) link is actually clickable and leads to commit from the Node PR… does that work?

addaleax avatar Nov 16 '17 12:11 addaleax

We might give the commit SHA from Jenkins a new shot. What's provided to the bot by Jenkins post build has just gotten a significant refactor; https://github.com/nodejs/build/pull/973/files

Maybe @maclover7 has some input on this? Are there more than one commit SHA available that we can investigate is the one github.com knows?

phillipj avatar Nov 16 '17 12:11 phillipj

Hmm, yeah, I believe the original reason is due to the rebasing done on certain platforms. If we want to try and change the settings during an off-hour-ish time, works for me, but an issue should probably be opened in nodejs/build too :)

maclover7 avatar Nov 17 '17 14:11 maclover7