.gitlab-ci.yml
author Anton Shestakov <av6@dwimlabs.net>
Tue, 24 Dec 2019 23:31:42 +0700
branchmercurial-4.5
changeset 5037 5ea7c807d094
parent 5036 9bae4cf5aa68
permissions -rw-r--r--
heptapod-ci: skip test-evolve.t in tests-py2-pure job It seems pure mode on Mercurial 4.5 was broken in case of this test. The error was: Traceback (most recent call last): File "/tmp/hgtests.YoK65c/install/bin/hg", line 41, in <module> dispatch.run() File "/tmp/hgtests.YoK65c/install/lib/python/mercurial/dispatch.py", line 88, in run status = (dispatch(req) or 0) & 255 File "/tmp/hgtests.YoK65c/install/lib/python/mercurial/dispatch.py", line 183, in dispatch ret = _runcatch(req) File "/tmp/hgtests.YoK65c/install/lib/python/mercurial/dispatch.py", line 324, in _runcatch return _callcatch(ui, _runcatchfunc) File "/tmp/hgtests.YoK65c/install/lib/python/mercurial/dispatch.py", line 332, in _callcatch return scmutil.callcatch(ui, func) File "/tmp/hgtests.YoK65c/install/lib/python/mercurial/scmutil.py", line 154, in callcatch return func() File "/tmp/hgtests.YoK65c/install/lib/python/mercurial/dispatch.py", line 314, in _runcatchfunc return _dispatch(req) File "/tmp/hgtests.YoK65c/install/lib/python/mercurial/dispatch.py", line 918, in _dispatch cmdpats, cmdoptions) File "/tmp/hgtests.YoK65c/install/lib/python/mercurial/dispatch.py", line 673, in runcommand ret = _runcommand(ui, options, cmd, d) File "/tmp/hgtests.YoK65c/install/lib/python/mercurial/dispatch.py", line 926, in _runcommand return cmdfunc() File "/tmp/hgtests.YoK65c/install/lib/python/mercurial/dispatch.py", line 915, in <lambda> d = lambda: util.checksignature(func)(ui, *args, **strcmdopt) File "/tmp/hgtests.YoK65c/install/lib/python/mercurial/util.py", line 1195, in check return func(*args, **kwargs) File "/builds/mercurial/evolve/hgext3rd/evolve/evolvecmd.py", line 1603, in evolve return _performevolve(ui, repo, **opts) File "/builds/mercurial/evolve/hgext3rd/evolve/evolvecmd.py", line 1726, in _performevolve targetcat, lastsolved) File "/builds/mercurial/evolve/hgext3rd/evolve/evolvecmd.py", line 1752, in _solveonerev lastsolved=lastsolved, stacktmplt=stacktmplt) File "/builds/mercurial/evolve/hgext3rd/evolve/evolvecmd.py", line 80, in _solveone lastsolved=lastsolved) File "/builds/mercurial/evolve/hgext3rd/evolve/evolvecmd.py", line 183, in _solveunstable keepbranch, b'orphan') File "/builds/mercurial/evolve/hgext3rd/evolve/evolvecmd.py", line 952, in relocate fullnode = unfi.changelog.index.partialmatch(sha1) AttributeError: 'InlinedIndexObject' object has no attribute 'partialmatch'
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4873
91116cec0a67 gitlab-ci: basic test with flake8
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
     1
flake8:
4923
d18908c5642a heptapod-ci: point to our own docker images
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4874
diff changeset
     2
    image: octobus/ci-py2-hgext3rd
4873
91116cec0a67 gitlab-ci: basic test with flake8
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
     3
    script:
4923
d18908c5642a heptapod-ci: point to our own docker images
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4874
diff changeset
     4
        - hg files -0 'set:(**.py or grep("^#!.*python")) - removed()' -X hgext3rd/evolve/thirdparty | xargs -0 flake8
4926
0fad1d376814 heptapod-ci: test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4925
diff changeset
     5
4925
dbeb04ee6679 heptapod-ci: add a --pure variant for the CI
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4924
diff changeset
     6
tests-py2-cext:
4923
d18908c5642a heptapod-ci: point to our own docker images
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4874
diff changeset
     7
    image: octobus/ci-py2-hgext3rd
4874
ab0d09c93532 gitlab-ci: be bold and try to run the full test in them
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4873
diff changeset
     8
    script:
4959
edc29a909339 heptapod-ci: simpler CI
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4958
diff changeset
     9
        - hg pull -R /ci/repos/mercurial/
4966
4f3c87584a4a heptapod-ci: add a script to map evolve branch to mercurial revision for tests
Anton Shestakov <av6@dwimlabs.net>
parents: 4959
diff changeset
    10
        - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')")
4f3c87584a4a heptapod-ci: add a script to map evolve branch to mercurial revision for tests
Anton Shestakov <av6@dwimlabs.net>
parents: 4959
diff changeset
    11
        - hg -R /ci/repos/mercurial/ update "$hg_rev"
4979
c46f0430a668 test-compat: run tests with -j more than 1
Anton Shestakov <av6@dwimlabs.net>
parents: 4974
diff changeset
    12
        - jobs=$(python -c 'import multiprocessing; print multiprocessing.cpu_count()')
c46f0430a668 test-compat: run tests with -j more than 1
Anton Shestakov <av6@dwimlabs.net>
parents: 4974
diff changeset
    13
        - (cd tests; /ci/repos/mercurial/tests/run-tests.py -j $jobs --color=always)
5036
9bae4cf5aa68 heptapod-ci: test python 4.5 with the pure version of Mercurial
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4987
diff changeset
    14
9bae4cf5aa68 heptapod-ci: test python 4.5 with the pure version of Mercurial
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4987
diff changeset
    15
tests-py2-pure:
9bae4cf5aa68 heptapod-ci: test python 4.5 with the pure version of Mercurial
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4987
diff changeset
    16
    image: octobus/ci-py2-hgext3rd
9bae4cf5aa68 heptapod-ci: test python 4.5 with the pure version of Mercurial
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4987
diff changeset
    17
    script:
9bae4cf5aa68 heptapod-ci: test python 4.5 with the pure version of Mercurial
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4987
diff changeset
    18
        - hg pull -R /ci/repos/mercurial/
9bae4cf5aa68 heptapod-ci: test python 4.5 with the pure version of Mercurial
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4987
diff changeset
    19
        - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')")
9bae4cf5aa68 heptapod-ci: test python 4.5 with the pure version of Mercurial
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4987
diff changeset
    20
        - hg -R /ci/repos/mercurial/ update "$hg_rev"
9bae4cf5aa68 heptapod-ci: test python 4.5 with the pure version of Mercurial
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4987
diff changeset
    21
        - jobs=$(python -c 'import multiprocessing; print multiprocessing.cpu_count()')
5037
5ea7c807d094 heptapod-ci: skip test-evolve.t in tests-py2-pure job
Anton Shestakov <av6@dwimlabs.net>
parents: 5036
diff changeset
    22
        - (cd tests; /ci/repos/mercurial/tests/run-tests.py -j $jobs --color=always --pure --blacklist <(echo test-evolve.t))