GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com β€” πŸŽ‰ Delete Travis polling code in favor of Travis CI GitHub app πŸŽ‰ by phillipj Β· Pull Request #183 Β· nodejs/github-bot

Conversation

@phillipj

@phillipj phillipj commented Jun 12, 2018 β€’
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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:

  • citgm
  • core-validate-commit
  • docker-node
  • github-bot
  • i18n
  • llnode
  • nan
  • node-core-utils
  • nodejs.org
  • readable-stream
  • string_decoder

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

zeke reacted with heart emoji
All reactions
  • ❀️ 1 reaction
@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 phillipj mentioned this pull request Jun 12, 2018
Enable Travis CI webhook org-wide? nodejs/admin#148
Closed
@phillipj

phillipj commented Jun 12, 2018 β€’
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

@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 πŸ€·β€β™€οΈ

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@targos

targos commented Jun 12, 2018

Copy link
Copy Markdown
Member

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@targos

targos commented Jun 12, 2018

Copy link
Copy Markdown
Member

@phillipj done!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@phillipj

phillipj commented Jun 12, 2018

Copy link
Copy Markdown
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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

phillipj commented Jun 12, 2018

Copy link
Copy Markdown
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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joyeecheung

joyeecheung commented Jun 12, 2018 β€’
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

@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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joyeecheung

joyeecheung commented Jun 12, 2018

Copy link
Copy Markdown
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
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joyeecheung

joyeecheung commented Jun 12, 2018

Copy link
Copy Markdown
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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@targos

targos commented Jun 12, 2018

Copy link
Copy Markdown
Member

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

image

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joyeecheung

joyeecheung commented Jun 12, 2018

Copy link
Copy Markdown
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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joyeecheung

joyeecheung commented Jun 12, 2018

Copy link
Copy Markdown
Member

@phillipj Can you try force pushing again?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@targos

targos commented Jun 12, 2018

Copy link
Copy Markdown
Member

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

joyeecheung reacted with laugh emoji
All reactions
  • πŸ˜„ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@targos

targos commented Jun 12, 2018

Copy link
Copy Markdown
Member

Can we delete the service now?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

phillipj commented Jun 12, 2018

Copy link
Copy Markdown
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@phillipj
phillipj force-pushed the remove-travis-polling branch from 676c5c3 to 2d4c287 Compare June 12, 2018 11:49
@phillipj

phillipj commented Jun 12, 2018

Copy link
Copy Markdown
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?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@targos

targos commented Jun 12, 2018

Copy link
Copy Markdown
Member

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joyeecheung

joyeecheung commented Jun 12, 2018

Copy link
Copy Markdown
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..?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@phillipj

phillipj commented Jun 12, 2018

Copy link
Copy Markdown
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 [email protected] 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?

joyeecheung, mmarchini, refack, and targos reacted with thumbs up emoji
All reactions
  • πŸ‘ 4 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@phillipj

phillipj commented Jun 13, 2018

Copy link
Copy Markdown
Member Author

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

refack

This comment was marked as off-topic.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@phillipj

phillipj commented Jun 14, 2018

Copy link
Copy Markdown
Member Author

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

lunagraysen reacted with thumbs up emoji
All reactions
  • πŸ‘ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@phillipj

phillipj commented Jun 15, 2018

Copy link
Copy Markdown
Member Author

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

Much appreciated @non-binary!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

phillipj added 3 commits June 15, 2018 23:25
@phillipj
travis: delete Travis polling code in favor of Travis CI GitHub app
c705ab6
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!
@phillipj
chore: update years in LICENSE.md
6b3de21
Primarily as a test to hopefully trigger the newly added Travis CI
GitHub app.
@phillipj
jenkins: fix linting issue
e8d7f8c
@phillipj
phillipj force-pushed the remove-travis-polling branch from 583a012 to e8d7f8c Compare June 15, 2018 21:27
@phillipj

phillipj commented Jun 15, 2018

Copy link
Copy Markdown
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joyeecheung

joyeecheung commented Jun 16, 2018

Copy link
Copy Markdown
Member

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@phillipj

phillipj commented Jun 17, 2018 β€’
edited by joyeecheung
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

@joyeecheung good point πŸ‘

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

  • citgm
  • core-validate-commit
  • docker-node
  • github-bot
  • i18n
  • llnode
  • nan
  • node-core-utils
  • nodejs.org
  • readable-stream
  • string_decoder

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joyeecheung

joyeecheung commented Jun 17, 2018

Copy link
Copy Markdown
Member

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joyeecheung

joyeecheung commented Jun 17, 2018

Copy link
Copy Markdown
Member

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joyeecheung

joyeecheung commented Jun 17, 2018 β€’
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mcollina

mcollina commented Jun 17, 2018 β€’
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rvagg

rvagg commented Jun 17, 2018

Copy link
Copy Markdown
Member

lgtm! make it happen, great news!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joyeecheung joyeecheung mentioned this pull request Jun 17, 2018
Granting access to github-bot server to github bot admins nodejs/build#1353
Closed
@zeke

zeke commented Jun 18, 2018

Copy link
Copy Markdown
Contributor

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

phillipj and mmarchini reacted with thumbs up emoji
All reactions
  • πŸ‘ 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mmarchini mmarchini mentioned this pull request Jun 18, 2018
Periodic test against master and canary nodejs/llnode#187
Closed
@LaurentGoderre

LaurentGoderre commented Jun 20, 2018 β€’
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

@chorrell I removed the old integration

chorrell reacted with thumbs up emoji
All reactions
  • πŸ‘ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joyeecheung

joyeecheung commented Jun 20, 2018

Copy link
Copy Markdown
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.

zeke reacted with hooray emoji
All reactions
  • πŸŽ‰ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@LaurentGoderre

LaurentGoderre commented Jun 20, 2018

Copy link
Copy Markdown
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?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@LaurentGoderre

LaurentGoderre commented Jun 20, 2018

Copy link
Copy Markdown
Member

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@LaurentGoderre

LaurentGoderre commented Jun 21, 2018

Copy link
Copy Markdown
Member

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@LaurentGoderre

LaurentGoderre commented Jun 21, 2018

Copy link
Copy Markdown
Member

Last time @rvagg provided the encrypted token

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@LaurentGoderre

LaurentGoderre commented Jun 21, 2018

Copy link
Copy Markdown
Member

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@phillipj

phillipj commented Jun 21, 2018 β€’
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

@LaurentGoderre could you verify I encrypted this correctly?

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@phillipj

phillipj commented Jun 21, 2018

Copy link
Copy Markdown
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@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
Setup Travis CI #57
Closed
Automatic redeploy on merge is broken #185
Closed
@LaurentGoderre LaurentGoderre mentioned this pull request Jun 22, 2018
Replaced the new Travis token nodejs/docker-node#795
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@refack refack refack approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

8 participants

@phillipj @targos @joyeecheung @mcollina @rvagg @zeke @LaurentGoderre @refack
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 β€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Γ—600. No cookies required.