-
Notifications
You must be signed in to change notification settings - Fork 119
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
scripts: new attempt-backport script for PRs #90
scripts: new attempt-backport script for PRs #90
Conversation
663b410
to
1b3c8c3
Compare
/cc @nodejs/build |
A little more use of the bunyan logger, really valuable for doing post-mortem on PRs in production. See ./lib/node-repo.js for inspiration. Other than that it looks good enough to test live IMO 👍 Couple of notes for future improvements:
The latter is already an issue, and might be subject to a bigger discussion. E.g. for the Travis build poller (./lib/pollTravis.js) where a redeploy could easily make inline status on a PR stall for eternity. |
Definitely a bug, but pushing anything to the PR branch will unblock that. |
Definitely, tho I assume not many contributors would know that. |
Updated and I tried to get it working at TestOrgPleaseIgnore/node#31 but I wasn't able to get the new label removal working? I have no idea how to test this, there are so many (necessary) moving parts. 😓 |
Yeah I've noticed that as well, it's generally quite painful to test much On Friday, 4 November 2016, Jeremiah Senkpiel [email protected]
|
Should |
@phillipj it will need to be a github clone of the node repo. I thought of adding cloning logic into this but decided against it. |
Looping @mscdex's comment (#77 (comment)) from the original thread which I somehow missed:
Thoughts everyone? |
I think we should stick with edit: just to clarify... what I think we should be optimizing for is ensuring that commits are properly labelled for backporting, the fact that it "lands cleanly or doesn't" is simply a heuristic we can use for this |
@Fishrock123 sounds good. I'll be able to fix what's needed in the bot's ansible playbook, so we're sure the server running the bot, has the repo checked out and gets |
@phillipj what's your thoughts on moving this forward? Should I just try to test it more? |
These changes clones the nodejs/node repository required for the bot to automatically attempt backport of new PRs. Refs nodejs/github-bot#90
@Fishrock123 mainly getting some feedback on nodejs/build#531, otherwise it LGTM. After that, if you feel confident enough to test it on the actual node repo, I'm totally fine with that. Just got auto deploy upon merge to master working here, so you'll be able to deploy this yourself when you feel like it. |
These changes clones the nodejs/node repository required for the bot to automatically attempt backport of new PRs. Refs nodejs/github-bot#90 PR-URL: #531 Reviewed-By: Johan Bergström <[email protected]>
@Fishrock123 it's ready -- the bot server now has the nodejs/node repo cloned and |
47201a3
to
5ed1046
Compare
Awesome, really looking forward to seeing this in action! 😃 |
nodejs/node#9648 appeared to be a case where the script failed prematurely because I was pointing to the wrong git remote ( 187cbd8 should fix that by running git commands against |
I think having the bot applying the I think a different set of labels should be used by the bot, but the problem with that is that we're already hitting the 100 label ceiling (this is a separate issue that needs discussion too, because not everyone is aware of it). |
We directly check |
something's still not right: nodejs/node#9472 |
Another: nodejs/node#9637 015096f - disabling for now, I clearly don't have something right still, although to dig further I'll need more debug output from here on than the default logger provides. 😞 |
Ping me if you need some help debugging on the bot server, e.g. do a clean checkout of the node repo again. |
This is a script to automatically check if PRs can cleanly land on staging branches in the node repo.
I've been using TestOrgPleaseIgnore/node#29 and TestOrgPleaseIgnore/node#30 to test it and it seems to be working fine now.
This is however a first iteration and I'm sure it can be improved lots.
cc @nodejs/github-bot & @thealphanerd
Edit: some unresolved questions/issues: