# HG changeset patch # User Pierre-Yves David # Date 1731097322 -3600 # Node ID 63ad6b0c2b6addfc1259f197341f16188f13f0be # Parent d6ed4da850eac7afe719f311aafd806ae43e6a66 ci: adjust the starting port range to runner concurrency If multiple job runs on the same runner, they should not use the port range. diff -r d6ed4da850ea -r 63ad6b0c2b6a contrib/heptapod-ci.yml --- a/contrib/heptapod-ci.yml Fri Nov 08 17:28:33 2024 +0100 +++ b/contrib/heptapod-ci.yml Fri Nov 08 21:22:02 2024 +0100 @@ -105,6 +105,9 @@ - echo "$FILTER" - echo "$FLAVOR" - echo "$WHEEL_TYPE" + - PORT_START=`expr 19051 + 1009 '*' $CI_CONCURRENT_ID` + - PORT_ARG="--port $PORT_START" + - echo $PORT_ARG - WHEEL_ARG="" - if test -n "$WHEEL_TYPE"; then PY_TAG=`$PYTHON -c 'import sys; v=sys.version_info; t=f"cp{v.major}{v.minor}"; print(f"{t}-{t}")'`; @@ -122,6 +125,7 @@ - HGTESTS_ALLOW_NETIO="$TEST_HGTESTS_ALLOW_NETIO" "$PYTHON" tests/run-tests.py --color=always + $PORT_ARG $WHEEL_ARG $FLAVOR $FILTER