When debugging some job (usually windows one) it is handy to have a way to pass
all other jobs to manual execution.
We add a "root" template to control just that.
( )
hg-reviewers |
When debugging some job (usually windows one) it is handy to have a way to pass
all other jobs to manual execution.
We add a "root" template to control just that.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
✅ refresh by Heptapod after a successful CI run (🐙 💚)
⚠ This patch is intended for stable ⚠
Path | Packages | |||
---|---|---|---|---|
M | contrib/heptapod-ci.yml (7 lines) |
stages: | stages: | ||||
- tests | - tests | ||||
- phabricator | - phabricator | ||||
image: registry.heptapod.net/mercurial/ci-images/mercurial-core:$HG_CI_IMAGE_TAG | image: registry.heptapod.net/mercurial/ci-images/mercurial-core:$HG_CI_IMAGE_TAG | ||||
variables: | variables: | ||||
PYTHON: python | PYTHON: python | ||||
TEST_HGMODULEPOLICY: "allow" | TEST_HGMODULEPOLICY: "allow" | ||||
HG_CI_IMAGE_TAG: "latest" | HG_CI_IMAGE_TAG: "latest" | ||||
TEST_HGTESTS_ALLOW_NETIO: "0" | TEST_HGTESTS_ALLOW_NETIO: "0" | ||||
.all_template: &all | |||||
when: always | |||||
.runtests_template: &runtests | .runtests_template: &runtests | ||||
<<: *all | |||||
stage: tests | stage: tests | ||||
# The runner made a clone as root. | # The runner made a clone as root. | ||||
# We make a new clone owned by user used to run the step. | # We make a new clone owned by user used to run the step. | ||||
before_script: | before_script: | ||||
- hg clone . /tmp/mercurial-ci/ --noupdate --config phases.publish=no | - hg clone . /tmp/mercurial-ci/ --noupdate --config phases.publish=no | ||||
- hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'` | - hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'` | ||||
- cd /tmp/mercurial-ci/ | - cd /tmp/mercurial-ci/ | ||||
- ls -1 tests/test-check-*.* > /tmp/check-tests.txt | - ls -1 tests/test-check-*.* > /tmp/check-tests.txt | ||||
checks-py3: | checks-py3: | ||||
<<: *runtests | <<: *runtests | ||||
variables: | variables: | ||||
RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt" | RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt" | ||||
PYTHON: python3 | PYTHON: python3 | ||||
rust-cargo-test-py2: &rust_cargo_test | rust-cargo-test-py2: &rust_cargo_test | ||||
<<: *all | |||||
stage: tests | stage: tests | ||||
script: | script: | ||||
- echo "python used, $PYTHON" | - echo "python used, $PYTHON" | ||||
- make rust-tests | - make rust-tests | ||||
rust-cargo-test-py3: | rust-cargo-test-py3: | ||||
stage: tests | stage: tests | ||||
<<: *rust_cargo_test | <<: *rust_cargo_test | ||||
variables: | variables: | ||||
PYTHON: python3 | PYTHON: python3 | ||||
phabricator-refresh: | phabricator-refresh: | ||||
<<: *all | |||||
stage: phabricator | stage: phabricator | ||||
variables: | variables: | ||||
DEFAULT_COMMENT: ":white_check_mark: refresh by Heptapod after a successful CI run (:octopus: :green_heart:)" | DEFAULT_COMMENT: ":white_check_mark: refresh by Heptapod after a successful CI run (:octopus: :green_heart:)" | ||||
STABLE_COMMENT: ":white_check_mark: refresh by Heptapod after a successful CI run (:octopus: :green_heart:)\n⚠ This patch is intended for stable ⚠\n{image https://media.giphy.com/media/nYI8SmmChYXK0/source.gif}" | STABLE_COMMENT: ":white_check_mark: refresh by Heptapod after a successful CI run (:octopus: :green_heart:)\n⚠ This patch is intended for stable ⚠\n{image https://media.giphy.com/media/nYI8SmmChYXK0/source.gif}" | ||||
script: | script: | ||||
- | | - | | ||||
if [ `hg branch` == "stable" ]; then | if [ `hg branch` == "stable" ]; then | ||||
./contrib/phab-refresh-stack.sh --comment "$STABLE_COMMENT"; | ./contrib/phab-refresh-stack.sh --comment "$STABLE_COMMENT"; | ||||
TEST_HGMODULEPOLICY: "c" | TEST_HGMODULEPOLICY: "c" | ||||
# `sh.exe --login` sets a couple of extra environment variables that are defined | # `sh.exe --login` sets a couple of extra environment variables that are defined | ||||
# in the MinGW shell, but switches CWD to /home/$username. The previous value | # in the MinGW shell, but switches CWD to /home/$username. The previous value | ||||
# is stored in OLDPWD. Of the added variables, MSYSTEM is crucial to running | # is stored in OLDPWD. Of the added variables, MSYSTEM is crucial to running | ||||
# run-tests.py- it is needed to make run-tests.py generate a `python3` script | # run-tests.py- it is needed to make run-tests.py generate a `python3` script | ||||
# that satisfies the various shebang lines and delegates to `py -3`. | # that satisfies the various shebang lines and delegates to `py -3`. | ||||
.window_runtests_template: &windows_runtests | .window_runtests_template: &windows_runtests | ||||
<<: *all | |||||
stage: tests | stage: tests | ||||
before_script: | before_script: | ||||
- C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && ls -1 tests/test-check-*.* > C:/Temp/check-tests.txt' | - C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && ls -1 tests/test-check-*.* > C:/Temp/check-tests.txt' | ||||
# TODO: find/install cvs, bzr, perforce, gpg, sqlite3 | # TODO: find/install cvs, bzr, perforce, gpg, sqlite3 | ||||
script: | script: | ||||
- echo "Entering script section" | - echo "Entering script section" | ||||
- echo "python used, $Env:PYTHON" | - echo "python used, $Env:PYTHON" |