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

Stuck in Loading Build... #35

Closed
paulirish opened this issue Mar 26, 2017 · 6 comments
Closed

Stuck in Loading Build... #35

paulirish opened this issue Mar 26, 2017 · 6 comments

Comments

@paulirish
Copy link

I was just trying out travis-watch in my project's master branch and it appeared to get "stuck" in loading build. (I hadn't pushed recently, but was curious what happened regardless)

Poked into the code and it looks like it's just in the getBuild callback repeatedly.
Perhaps I'm holding it wrong :)

Excited to use this.. thanks!

@juliangruber
Copy link
Owner

What's happening is most likely since you didn't push recently it kept waiting for your current latest git commit to appear in a travis build.

I see two parts to the solution:

  1. We could add some cli options to for example display the most recent build in the current branch
  2. We should display a warning when fetching the build takes too long

Thanks for submitting this!

@juliangruber
Copy link
Owner

This is the default behavior as it makes it easy to integrate into your tooling, so you can have scripts like this: https://github.com/juliangruber/npm-publish/blob/add/travis-watch/publish.sh

@s3ththompson
Copy link

This is a fun one. I ran into the same thing as @paulirish and I think the bug is actually a bit more subtle.

travis-watch, the travis-ci Node client, and the Travis CI API itself only accept canonical usernames and repo names, not lowercased ones.

screen shot 2017-03-28 at 2 49 22 pm

My git config had the remote origin as git@github.com:webassembly/website. Changing it to git@github.com:WebAssembly/website started working.

Perhaps you could add a step to fetch the canonical repo name with the GitHub API if the Travis CI API doesn't turn up anything.

@juliangruber
Copy link
Owner

Ah, yeah I've seen that before with another repo, but was hoping that was an odd case. I'll add that additional step :)

@juliangruber
Copy link
Owner

juliangruber commented Mar 29, 2017

This is fixed now in 1.16.0 (67263ed), once the local git config has been parsed it will also hit the public github repos api to resolve and override the locally parsed repo info.

Does this solve it for you?

@s3ththompson
Copy link

@juliangruber works for me, thanks!

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