Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.6, 6.6
-
None
Description
After cloning qt/qt5.git and a cd into the new top-level directory:
./init-repository --branch --mirror ~/bare/qt/
has always failed for me, with an error in qtdeclarative, failing to check out the ECMA test suite sub-module.
This has been here for ages and basically always forces me to run init-repository, then manually intervene for this sub-sub-module, then re-run init-repository with --force.
Tail of failing run's output:
Submodule path 'src/3rdparty/assimp/src': checked out '5a38cd0a03015ceabbd5bc6efb0730dde1ef74e5' + git submodule init tests/auto/qml/ecmascripttests/test262 Submodule 'tests/auto/qml/ecmascripttests/test262' (/home/eddy/bare/qt/qtdeclarative-testsuites.git) registered for path 'tests/auto/qml/ecmascripttests/test262' *** /qtdeclarative/tests/auto/qml/ecmascripttests/test262 not found, ignoring alternate for this submodule + git ls-remote /home/eddy/bare/qt/qtdeclarative-testsuites.git test/if/mirror/exists + git clone --no-checkout /home/eddy/bare/qt/qtdeclarative-testsuites.git tests/auto/qml/ecmascripttests/test262 Cloning into 'tests/auto/qml/ecmascripttests/test262'... done. + git config remote.mirror.url /home/eddy/bare/qt/qtdeclarative-testsuites.git + git config remote.mirror.fetch +refs/heads/*:refs/remotes/mirror/* + git config remote.origin.url /home/eddy/bare/qt/qtdeclarative-testsuites.git + git config remote.gerrit.url ssh://codereview.qt-project.org/qt/qtdeclarative-testsuites.git + git config remote.gerrit.fetch +refs/heads/*:refs/remotes/gerrit/* /heads/ + git submodule update --force --no-fetch fatal: Unable to find current revision in submodule path 'tests/auto/qml/ecmascripttests/test262' git submodule update --force --no-fetch exited with status 32768 at ./init-repository line 207. Qt::InitRepository::exe(Qt::InitRepository=HASH(0x55e481bea500), "git", "submodule", "update", "--force", "--no-fetch") called at ./init-repository line 452 Qt::InitRepository::git_clone_all_submodules(Qt::InitRepository=HASH(0x55e481bea500), "qtdeclarative.git", 0, "/qtdeclarative", "all") called at ./init-repository line 458 Qt::InitRepository::git_clone_all_submodules(Qt::InitRepository=HASH(0x55e481bea500), "qt5", 1, "", "essential", "addon", "preview", "deprecated", ...) called at ./init-repository line 677 Qt::InitRepository::run(Qt::InitRepository=HASH(0x55e481bea500)) called at ./init-repository line 688
Exit status is 2.
The qtdeclarative/tests/auto/qml/ecmascripttests/test262 directory then exists and has a .git/ sub-directory; cd-ing to it and running git checkout snapshot-20180312-3c69133-based (as directed by the branch line in qtdeclarative/.gitmodules) succeeds and a subsequent re-run of the command above with --force succeeds.
The first run of that command, above, should simply succeed, without the intervening manual intervention and re-run.
Attachments
Issue Links
- relates to
-
QTQAINFRA-6375 init-repository --branch fails for qtdeclarative's ECMA 262 test-suite submodule
-
- Reported
-