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

Problems updating CI status for jobs that git rebase #983

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

Problems updating CI status for jobs that git rebase #983

maclover7 opened this issue Nov 7, 2017 · 3 comments

Comments

@maclover7
Copy link
Contributor

Take a look at this node-test-commit-arm-fanned build and its corresponding post-build-status-update build. If you pull up the parameters for the post-build-status-update, you can see that COMMIT is ${GIT_COMMIT}, due to the git-rebase job that was run with arm-fanned, clearing the environment variable automatically set by Jenkins.

Biggest problem is that this is causing the wrong CI status to be sent to be GitHub. Related problem (I myself don't have context on this, part of why I'm opening the issue) is why we would need to run git-rebase on certain node-test-commit sub jobs, but not on others :(

cc @MylesBorins, I think this may have been part of what was causing the issue for you in nodejs/node#16848
cc @refack @gibfahn

@joaocgreis
Copy link
Member

According to https://wiki.jenkins.io/display/JENKINS/Git+Plugin , it's the git plugin that sets GIT_COMMIT. The *-fanned jobs don't use the git plugin because they don't need to (running it would make them slower). This is why that variable does not exist, not because git-rebase clears it.

The git-rebase job is needed to rabase (which is done by a build step in other jobs) and push the commit to test to the temp repo. This rebase step could be part of the compile jobs, but it would make them more complex than they already are, so I'd prefer not to go that way. What we can do to make this work is add a git checkout in the fanned jobs and accept the delay.

@gibfahn
Copy link
Member

gibfahn commented Nov 9, 2017

Couldn't the node-test-commit job just pass GIT_COMMIT down to the subjobs?

@joaocgreis
Copy link
Member

I've added the parameter GIT_COMMIT to both fanned jobs, and logic in node-test-commit to pass it down. Seems to be working as expected, please reopen if not.

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