Opened on 08/21/2018 at 11:24:12 AM
Closed on 08/30/2019 at 11:02:33 AM
#6874 closed defect (rejected)
Cannot configure SSH URL for building from repos
Reported by: | greiner | Assignee: | |
---|---|---|---|
Priority: | Unknown | Milestone: | |
Module: | Automation | Keywords: | |
Cc: | tlucas, wspee, erikvold, sebastian | Blocked By: | |
Blocking: | Platform: | Unknown / Cross platform | |
Ready: | no | Confidential: | no |
Tester: | Unknown | Verified working: | no |
Review URL(s): |
Description
Environment
Ubuntu 18.04
How to reproduce
- Change one of the paths in the _root configuration variable in a "dependencies" file to use SSH instead of HTTPS
- Attempt to resolve dependencies
Observed behaviour
Build fails and error is shown (see below).
Example error uses "REPO" as placeholder for the dependency name and "OUTPUT" for the working directory.
fatal: repository 'REPO.git' does not exist Traceback (most recent call last): File "OUTPUT/ensure_dependencies.py", line 450, in <module> resolve_deps(repo) File "OUTPUT/ensure_dependencies.py", line 389, in resolve_deps _root.get(vcs, ''), source) File "OUTPUT/ensure_dependencies.py", line 329, in ensure_repo repo_types[type].clone(url, target) File "OUTPUT/ensure_dependencies.py", line 105, in clone subprocess.check_call(['git', 'clone', '--quiet', source, target]) File "/usr/lib/python2.7/subprocess.py", line 190, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['git', 'clone', '--quiet', u'REPO.git', u'OUTPUT/REPO']' returned non-zero exit status 128
Expected behaviour
Build succeeds and no error is shown.
Further information
Upon further investigation I found that calling
urlparse.urljoin("ssh://git@gitlab.com/eyeo/adblockplus/", "foo")
will return "foo"
whereas
urlparse.urljoin("https://git@gitlab.com/eyeo/adblockplus/", "foo")
will return "https://git@gitlab.com/eyeo/adblockplus/foo".
Attachments (0)
Change History (3)
comment:1 Changed on 11/15/2018 at 03:24:25 AM by erikvold
- Cc erikvold added
comment:2 Changed on 08/29/2019 at 05:52:53 PM by sebastian
- Cc sebastian added
Is this still relevant? We plan to discontinue buildtools and ensure_dependencies.py. With the move towards GitLab, we will eventually switch to Git Submodules.
comment:3 Changed on 08/30/2019 at 11:02:33 AM by greiner
- Resolution set to rejected
- Status changed from new to closed
I'm fine with closing this in favor of a more established dependency management.
I think we are aiming to remove this dependency right? so perhaps we can close this, since we probably shouldn't work on it.