Skip to content

Conversation

@phillipj
Copy link
Member

@phillipj phillipj commented Jun 12, 2018

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:

@phillipj phillipj changed the title 🎉 Delete Travis polling code in favor of Travis CI GitHub app 🎉 🎉 Delete Travis polling code in favor of Travis CI GitHub app 🎉 Jun 12, 2018
@phillipj
Copy link
Member Author

phillipj commented Jun 12, 2018

@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 🤷‍♀️

@targos
Copy link
Member

targos commented Jun 12, 2018

@phillipj AFAIK it's something that only org owners can do. I can activate the app for all the repos that you listed above.

@targos
Copy link
Member

targos commented Jun 12, 2018

@phillipj done!

@phillipj
Copy link
Member Author

@targos awesome, much appreciated!

That means this is ready to be merged as soon as someone had a look at the changes.

/cc @nodejs/github-bot

@phillipj phillipj force-pushed the remove-travis-polling branch from 890cd7c to a1278c7 Compare June 12, 2018 10:17
@phillipj
Copy link
Member Author

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

screen shot 2018-06-12 at 12 22 50

@joyeecheung
Copy link
Member

joyeecheung commented Jun 12, 2018

@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

@joyeecheung
Copy link
Member

So, I experimented with the https://github.com/TestOrgPleaseIgnore/test-travis-app repo:

  1. I created the test-travis-app repo
  2. I installed the Travis CI app from the marketplace into the TestOrgPleaseIgnore and only granted access to test-travis-app.
  3. I added .travis.yml to that repo and pushed to master
  4. A few minutes later the CI was triggered successfully: https://travis-ci.com/TestOrgPleaseIgnore/test-travis-app

@joyeecheung
Copy link
Member

screen shot 2018-06-12 at 6 59 44 pm

screen shot 2018-06-12 at 6 59 33 pm

I noticed there is a difference in the repo's app setting page

@targos
Copy link
Member

targos commented Jun 12, 2018

There seems to be an issue with this specific repo. Here is the nodejs dashboard on https://travis-ci.com/nodejs:

image

@joyeecheung
Copy link
Member

Oh, I think this repo has not been added to the list of repo that Travis has access to. I have added it now.

screen shot 2018-06-12 at 7 03 17 pm

@joyeecheung
Copy link
Member

@phillipj Can you try force pushing again?

@targos
Copy link
Member

targos commented Jun 12, 2018

Ah lol, this repo wasn't listed in the OP so I didn't add it :)

@targos
Copy link
Member

targos commented Jun 12, 2018

Can we delete the service now?

@phillipj phillipj force-pushed the remove-travis-polling branch from a1278c7 to 676c5c3 Compare June 12, 2018 11:46
@phillipj
Copy link
Member Author

Ah lol, this repo wasn't listed in the OP so I didn't add it :)

Ohhh 🤦‍♂️ Sorry for the confusion, I haven't practised my telepathy sense in a while!

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 phillipj force-pushed the remove-travis-polling branch from 676c5c3 to 2d4c287 Compare June 12, 2018 11:49
@phillipj
Copy link
Member Author

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?

@targos
Copy link
Member

targos commented Jun 12, 2018

I think this is the problem:

image

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.
See https://docs.travis-ci.com/user/open-source-on-travis-ci-com/#Existing-Open-Source-Repositories-on-travis-ci.org

@joyeecheung
Copy link
Member

The option to migrate to travis-ci.com for active open source repositories that were always open source will come soon.

So I guess we can only wait until then..?

@phillipj
Copy link
Member Author

Found this while clicking through Travis CI docs:

Repositories may also be migrated without their build history or build settings (including environment variables) immediately. Please contact support support@travis-ci.com and include “Repository Migration” somewhere in the subject line, and the name of the repository in your email.

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?

@phillipj
Copy link
Member Author

With three thumbs up on my previous comment, I'm sending Travis an email to hear if they can help us out.

refack

This comment was marked as off-topic.

@phillipj
Copy link
Member Author

Confirmed we wanted the entire list of repos in OP to be migrated.

@phillipj
Copy link
Member Author

That did the trick, Travis CI is now working with the GitHub app in place.

Much appreciated @non-binary!

phillipj added 3 commits June 15, 2018 23:25
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!
Primarily as a test to hopefully trigger the newly added Travis CI
GitHub app.
@phillipj phillipj force-pushed the remove-travis-polling branch from 583a012 to e8d7f8c Compare June 15, 2018 21:27
@phillipj
Copy link
Member Author

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.

@joyeecheung
Copy link
Member

@phillipj We should delete the web hooks first otherwise there will be a bunch of 404's in the hooks

@phillipj
Copy link
Member Author

phillipj commented Jun 17, 2018

@joyeecheung good point 👍

This is where we need to delete the webhook against http://github-bot.nodejs.org:3333:

P.S. I've already deleted a couple of webhook where I had permissions to do so.

@joyeecheung
Copy link
Member

Should we ask the owners first in case there are any special settings in their hooks?

@joyeecheung
Copy link
Member

I deleted the hooks of node-core-utils, llnode and core-validate-commit because I know they are not going to need it

@joyeecheung
Copy link
Member

joyeecheung commented Jun 17, 2018

cc @rvagg @zeke @PeterDaveHello @MylesBorins @mcollina regarding deleting the webhooks of the github bot in favor of github apps, see #183 (comment)

@mcollina
Copy link
Member

mcollina commented Jun 17, 2018

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.

@rvagg
Copy link
Member

rvagg commented Jun 17, 2018

lgtm! make it happen, great news!

@zeke
Copy link
Contributor

zeke commented Jun 18, 2018

screen shot 2018-06-17 at 9 11 05 pm

@LaurentGoderre
Copy link
Member

LaurentGoderre commented Jun 20, 2018

@chorrell I removed the old integration

@joyeecheung
Copy link
Member

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.

@LaurentGoderre
Copy link
Member

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

@LaurentGoderre
Copy link
Member

I woukd change it but I do not have the token for the bot.

@LaurentGoderre
Copy link
Member

@non-binary we are using the Node Bot and if I remember correctly, the same token is used everywhere

@LaurentGoderre
Copy link
Member

Last time @rvagg provided the encrypted token

@LaurentGoderre
Copy link
Member

Can someone who has access to the token add it to the docker-node repo Travis config?

@phillipj
Copy link
Member Author

phillipj commented Jun 21, 2018

@LaurentGoderre could you verify I encrypted this correctly?

  secure: "XjaE72aIC1hojGF8fKJNtePpxIM6s9Tjc69/RQ5WKlblCT67Ca2bePQoLDrmEiZmqf7iw1z0hSZuboS12KQrj2kFMagtace/br8pk55gHYM6v4sND6CNIcQYrtY/PVPOss8TJmnWkfLBu/aACVfht7rK6Jycdmj0XL7mM5pKghs="

@phillipj
Copy link
Member Author

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 phillipj merged commit b617c7b into nodejs:master Jun 21, 2018
@phillipj phillipj deleted the remove-travis-polling branch June 21, 2018 21:19
This was referenced Jun 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants