changeset 6909:701d4bb5d53c mercurial-6.1

test-compat: merge mercurial-6.2 into mercurial-6.1
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 24 Oct 2024 21:41:52 +0400
parents 241c4fec9723 (diff) 2bac0e2340e0 (current diff)
children 038df334d51a
files .gitlab-ci.yml
diffstat 1 files changed, 33 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/.gitlab-ci.yml	Thu Oct 24 21:34:08 2024 +0400
+++ b/.gitlab-ci.yml	Thu Oct 24 21:41:52 2024 +0400
@@ -15,37 +15,61 @@
     when: manual
 
 variables:
+    PY: py3
     PYTHON: python3
     RUNTEST_ARGS: ""
     TEST_HGMODULEPOLICY: "allow"
 
 .runtests_template: &runtests
-    image: registry.heptapod.net/mercurial/ci-images/py3-hgext3rd
+    image: registry.heptapod.net/mercurial/ci-images/$PY-hgext3rd
     before_script:
         - (cd tests; ls -1 test-check-*.t > /tmp/check-tests.txt)
-        - echo test-doctest.py > /tmp/doctest.txt
+        - (cd tests; ls -1 test-check-sdist.t test-doctest.py > /tmp/compat-blacklist.txt)
     script:
         - *prepare_hg
-        - ("$PYTHON" --version)
-        - (cd tests; set -x; HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" /ci/repos/mercurial/tests/run-tests.py --color=always $RUNTEST_ARGS)
+        - ($PYTHON --version)
+        - (cd tests; set -x; HGMODULEPOLICY="$TEST_HGMODULEPOLICY" $PYTHON /ci/repos/mercurial/tests/run-tests.py --color=always $RUNTEST_ARGS)
+
+checks-py2:
+    <<: *runtests
+    variables:
+        PY: py2
+        PYTHON: prlimit --nofile=1024:1024 python2
+        RUNTEST_ARGS: "--test-list /tmp/check-tests.txt --blacklist /tmp/compat-blacklist.txt"
+        CI_CLEVER_CLOUD_FLAVOR: S
 
 checks-py3:
     <<: *runtests
-    image: registry.heptapod.net/mercurial/ci-images/py3-hgext3rd
+    variables:
+        RUNTEST_ARGS: "--test-list /tmp/check-tests.txt --blacklist /tmp/compat-blacklist.txt"
+        CI_CLEVER_CLOUD_FLAVOR: S
+
+tests-py2-cext:
+    <<: *runtests
     variables:
-        RUNTEST_ARGS: "--test-list /tmp/check-tests.txt"
-        CI_CLEVER_CLOUD_FLAVOR: S
+        PY: py2
+        PYTHON: prlimit --nofile=1024:1024 python2
+        RUNTEST_ARGS: "--no-rust --blacklist /tmp/check-tests.txt --blacklist /tmp/compat-blacklist.txt"
+        TEST_HGMODULEPOLICY: "c"
+
+tests-py2-pure:
+    <<: *runtests
+    variables:
+        PY: py2
+        PYTHON: prlimit --nofile=1024:1024 python2
+        RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt --blacklist /tmp/compat-blacklist.txt"
+        TEST_HGMODULEPOLICY: "py"
 
 tests-py3-cext:
     <<: *runtests
     variables:
-        RUNTEST_ARGS: "--no-rust --blacklist /tmp/check-tests.txt --blacklist /tmp/doctest.txt"
+        RUNTEST_ARGS: "--no-rust --blacklist /tmp/check-tests.txt --blacklist /tmp/compat-blacklist.txt"
         TEST_HGMODULEPOLICY: "c"
 
 tests-py3-pure:
     <<: *runtests
     variables:
-        RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt --blacklist /tmp/doctest.txt"
+        RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt --blacklist /tmp/compat-blacklist.txt"
         TEST_HGMODULEPOLICY: "py"
 
 .windows_runtests_template: &windows_runtests