Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up🎉 Delete Travis polling code in favor of Travis CI GitHub app 🎉 #183
Conversation
phillipj
changed the title
:tada: Delete Travis polling code in favor of Travis CI GitHub app :tada:
🎉 Delete Travis polling code in favor of Travis CI GitHub app 🎉
Jun 12, 2018
This comment has been minimized.
This comment has been minimized.
|
@Trott how did you install the GitHub app for i18n? I've tried digging into this repo and nodejs.org's Settings, but haven't found the list of GitHub apps to install |
This comment has been minimized.
This comment has been minimized.
|
@phillipj AFAIK it's something that only org owners can do. I can activate the app for all the repos that you listed above. |
This comment has been minimized.
This comment has been minimized.
|
@phillipj done! |
This comment has been minimized.
This comment has been minimized.
|
@targos awesome, much appreciated! That means this is ready to be merged as soon as someone had a look at the changes. |
phillipj
force-pushed the
phillipj:remove-travis-polling
branch
from
890cd7c
to
a1278c7
Jun 12, 2018
This comment has been minimized.
This comment has been minimized.
|
@targos I tried amending and force pushing to this branch and expected Travis to kick off, but it didn't :/ You got any thoughts? I see Travis CI is listed on services, not GitHub apps or do I interpret that UI wrong? |
This comment has been minimized.
This comment has been minimized.
|
@phillipj The GitHub App is configured through the organization setting instead of the repo setting. I see that @targos has granted access to the repos listed in the OP. I think @Trott tried to see if Travis can be kicked off automatically after the app is installed but we could not find anything in the Travis UI at that time either. Have you managed to find a successful CI run triggered by the app? @Trott |
This comment has been minimized.
This comment has been minimized.
|
So, I experimented with the https://github.com/TestOrgPleaseIgnore/test-travis-app repo:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
There seems to be an issue with this specific repo. Here is the nodejs dashboard on https://travis-ci.com/nodejs: |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@phillipj Can you try force pushing again? |
This comment has been minimized.
This comment has been minimized.
|
Ah lol, this repo wasn't listed in the OP so I didn't add it :) |
This comment has been minimized.
This comment has been minimized.
|
Can we delete the service now? |
phillipj
force-pushed the
phillipj:remove-travis-polling
branch
from
a1278c7
to
676c5c3
Jun 12, 2018
This comment has been minimized.
This comment has been minimized.
Ohhh Still no signs of life after force pushing again. I'll try and delete the service like @targos mention, to see if that has anything to do with it. |
phillipj
force-pushed the
phillipj:remove-travis-polling
branch
from
676c5c3
to
2d4c287
Jun 12, 2018
This comment has been minimized.
This comment has been minimized.
|
Nehhh still nothing I'm afraid :/ Just in case this is an issue on this particular repo, do any of you have other repos you can verify that replacing the service (and therefore the github-bot) with the Travis CI GitHub app works as expected? |
This comment has been minimized.
This comment has been minimized.
|
I think this is the problem: The GitHub app works only on travis-ci.com. Because this repo was already using travis-ci.org and hasn't been migrated yet, it doesn't work. |
This comment has been minimized.
This comment has been minimized.
So I guess we can only wait until then..? |
This comment has been minimized.
This comment has been minimized.
|
Found this while clicking through Travis CI docs:
I'd personally say its more beneficial for us to migrate ASAP rather than waiting in hopes the Travis crew fixes migration of history and settings. If more of you agree, we might consider sending a list of repo names to the email above? |
This comment has been minimized.
This comment has been minimized.
|
With three thumbs up on my previous comment, I'm sending Travis an email to hear if they can help us out. |
This comment has been minimized.
This comment has been minimized.
|
Confirmed we wanted the entire list of repos in OP to be migrated. |
This comment has been minimized.
This comment has been minimized.
|
That did the trick, Travis CI is now working with the GitHub app in place. Much appreciated @non-binary! |
phillipj
added some commits
Jun 12, 2018
phillipj
force-pushed the
phillipj:remove-travis-polling
branch
from
583a012
to
e8d7f8c
Jun 15, 2018
This comment has been minimized.
This comment has been minimized.
|
Seeing that the Travis CI app also works as expected in another repo (nodejs/node-core-utils#255) it looks like we're ready to land this PR to stop the github-bot from posting the same Travis updates to PRs. |
This comment has been minimized.
This comment has been minimized.
|
@phillipj We should delete the web hooks first otherwise there will be a bunch of 404's in the hooks |
This comment has been minimized.
This comment has been minimized.
|
@joyeecheung good point This is where we need to delete the webhook against
P.S. I've already deleted a couple of webhook where I had permissions to do so. |
This comment has been minimized.
This comment has been minimized.
|
Should we ask the owners first in case there are any special settings in their hooks? |
This comment has been minimized.
This comment has been minimized.
|
I deleted the hooks of node-core-utils, llnode and core-validate-commit because I know they are not going to need it |
This comment has been minimized.
This comment has been minimized.
|
cc @rvagg @zeke @PeterDaveHello @MylesBorins @mcollina regarding deleting the webhooks of the github bot in favor of github apps, see #183 (comment) |
This comment has been minimized.
This comment has been minimized.
|
Good for me, I’m on vacation until the 24th. Feel free to do it for readable-stream, or I’ll do it when I get back. |
This comment has been minimized.
This comment has been minimized.
|
lgtm! make it happen, great news! |
joyeecheung
referenced this pull request
Jun 17, 2018
Closed
Granting access to github-bot server to github bot admins #1353
This comment has been minimized.
This comment has been minimized.
mmarchini
referenced this pull request
Jun 18, 2018
Closed
Periodic test against master and canary #187
This comment has been minimized.
This comment has been minimized.
LaurentGoderre
commented
Jun 20, 2018
•
|
@chorrell I removed the old integration |
This comment has been minimized.
This comment has been minimized.
|
I went ahead and deleted all the remaining webhooks and service integrations. If any project comes back needing those we can always revert, but I doubt if that's necessary. This PR should be safe to merge now. |
This comment has been minimized.
This comment has been minimized.
LaurentGoderre
commented
Jun 20, 2018
|
@non-binary this change did mess up our secured var for the github bot access token here: https://github.com/nodejs/docker-node/blob/master/.travis.yml#L79 would it be possible to add that token to Travis.com UI instead of having it here? |
This comment has been minimized.
This comment has been minimized.
LaurentGoderre
commented
Jun 20, 2018
|
I woukd change it but I do not have the token for the bot. |
This comment has been minimized.
This comment has been minimized.
LaurentGoderre
commented
Jun 21, 2018
|
@non-binary we are using the Node Bot and if I remember correctly, the same token is used everywhere |
This comment has been minimized.
This comment has been minimized.
LaurentGoderre
commented
Jun 21, 2018
|
Last time @rvagg provided the encrypted token |
This comment has been minimized.
This comment has been minimized.
LaurentGoderre
commented
Jun 21, 2018
|
Can someone who has access to the token add it to the docker-node repo Travis config? |
This comment has been minimized.
This comment has been minimized.
|
@LaurentGoderre could you verify I encrypted this correctly?
|
This comment has been minimized.
This comment has been minimized.
|
Thanks all for reviews and help changing the repo settings! I'm merging this now, any new issues discovered can should probably get their own issues in this repo or whichever repo it relates to. |







phillipj commentedJun 12, 2018
•
edited
We have recently found that we can enable Travis CI per repo with the Travis CI GitHub app, rather than the old GitHub Service that required organization wide private access, which the nodejs organization didn't want to provide.
Since using the GitHub app per repo instead, there is no need for this bot to do any Travis CI polling anymore -- hoooray!
Before merging this we have to enable install the Travis CI app on these repos: