##// END OF EJS Templates
ci: shard the test run on mac os X...
marmoute -
r53109:fa58f4f9 stable
parent child Browse files
Show More
@@ -109,6 +109,7 build-c-wheel:
109 - PORT_ARG="--port $PORT_START"
109 - PORT_ARG="--port $PORT_START"
110 - echo $PORT_ARG
110 - echo $PORT_ARG
111 - WHEEL_ARG=""
111 - WHEEL_ARG=""
112 - SHARDING_ARGS=""
112 - if test -n "$WHEEL_TYPE"; then
113 - if test -n "$WHEEL_TYPE"; then
113 PY_TAG=`$PYTHON -c 'import sys; v=sys.version_info; t=f"cp{v.major}{v.minor}"; print(f"{t}-{t}")'`;
114 PY_TAG=`$PYTHON -c 'import sys; v=sys.version_info; t=f"cp{v.major}{v.minor}"; print(f"{t}-{t}")'`;
114 echo "$PY_TAG";
115 echo "$PY_TAG";
@@ -122,12 +123,18 build-c-wheel:
122 else
123 else
123 echo installing from source;
124 echo installing from source;
124 fi;
125 fi;
126 - if [ -n "$CI_NODE_INDEX" ]; then
127 echo "Running the test in multiple shard - [$CI_NODE_INDEX/$CI_NODE_TOTAL]";
128 SHARDING_ARGS="--shard-index $CI_NODE_INDEX --shard-total $CI_NODE_TOTAL";
129 echo "sharding... $SHARDING_ARGS";
130 fi
125 - HGTESTS_ALLOW_NETIO="$TEST_HGTESTS_ALLOW_NETIO"
131 - HGTESTS_ALLOW_NETIO="$TEST_HGTESTS_ALLOW_NETIO"
126 "$PYTHON" tests/run-tests.py
132 "$PYTHON" tests/run-tests.py
127 --color=always
133 --color=always
128 $PORT_ARG
134 $PORT_ARG
129 $WHEEL_ARG
135 $WHEEL_ARG
130 $FLAVOR
136 $FLAVOR
137 $SHARDING_ARGS
131 $FILTER
138 $FILTER
132 $RUNTEST_ARGS;
139 $RUNTEST_ARGS;
133
140
@@ -309,6 +316,10 windows-pyox:
309 macos:
316 macos:
310 extends: .test-c
317 extends: .test-c
311 stage: platform-compat
318 stage: platform-compat
319 # run the test in multiple shard to help spread the load between concurrent
320 # MR as the macos runner is a shell runner there is not startup overhead
321 # for tests.
322 parallel: 10
312 tags:
323 tags:
313 - macos
324 - macos
314 variables:
325 variables:
General Comments 0
You need to be logged in to leave comments. Login now