Travis hangs waiting for github username

I have 2 private Julia packages A and B, where A depends on B, both hosted on a GitHub organization. However, when I am trying to build A, Travis is always waiting for my GitHub username when it installs B. Like below:

Worker information
system_info
Build system information
docker_mtu
resolvconf
ssh_key
Installing SSH key from: repository settings
git.checkout
0.77s$ git clone --depth=50 --branch=feature/xxx git@github.com:MyGitHubOrganization/A.jl.git MyGitHubOrganization/A.jl
$ export JULIA_PROJECT=@.
Julia for Travis-CI is not officially supported, but is community maintained.
Please file any issues using the following link
  https://travis-ci.community/c/languages/julia
and mention `@ararslan`, `@staticfloat` and `@StefanKarpinski` in the issue
Julia-install
Installing Julia
$ julia --color=yes -e "VERSION >= v\"0.7.0-DEV.3630\" && using InteractiveUtils; versioninfo()"
Julia Version 1.0.4
Commit 38e9fb7f80 (2019-05-16 03:38 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Xeon(R) CPU @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.0 (ORCJIT, haswell)
Environment:
  TRAVIS_JULIA_VERSION = 1.0
  JULIA_PROJECT = @.
Executing the default test script
$ export JL_PKG=A
Package name determined from repository url to be A
$ julia --color=yes -e "if VERSION < v\"0.7.0-DEV.5183\"; Pkg.clone(pwd()); Pkg.build(\"${JL_PKG}\"); else using Pkg; if VERSION >= v\"1.1.0-rc1\"; Pkg.build(verbose=true); else Pkg.build(); end; end"
   Cloning default registries into /home/travis/.julia/registries
   Cloning registry General from "https://github.com/JuliaRegistries/General.git"
   Cloning git-repo `https://github.com/MyGitHubOrganization/B.jl.git`
Username for 'https://github.com': 
No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#build-times-out-because-no-output-was-received
The build has been terminated

Here is my .travis.yml:

# Documentation: http://docs.travis-ci.com/user/languages/julia/
language: julia
os:
  - linux
  - osx
julia:
  - 1.0
  - 1.1
  - nightly
matrix:
  allow_failures:
    - julia: nightly
  fast_finish: true
notifications:
  email: false
after_success:
  - julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'
  - julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder())'
jobs:
  include:
    - stage: Documentation
      julia: 1.0
      script: julia --project=docs -e '
          using Pkg;
          Pkg.develop(PackageSpec(path=pwd()));
          Pkg.instantiate();
          include("docs/make.jl");'
      after_success: skip

What is going on? My other public repos work well. Both of my and my GitHub organization accounts are educational accounts.

Most likely the problem is that Travis isn’t able to access package B (since it doesn’t have the correct permissions).

I was able to solve this problem in an earlier version of Julia by creating another user, giving it read access to both repositories, creating a new ssh key for the account and using that with Travis: https://docs.travis-ci.com/user/private-dependencies/#user-key

1 Like

Thank you for your help. I finally found that the reason is all my dependencies repo-url in A's Manifest.toml start with "https://...". Changing them into "git@github.com/..." and provide a user key solves the problem.