# HG changeset patch # User Pierre-Yves David # Date 2020-11-28 13:15:55 # Node ID c7f40562389f0a3fec8097567a1f259239f61e74 # Parent 5de27798d2afb35852c9a05b9a805ff748c16a38 heptapod-ci: automatically refresh existing phabricator Diff on push If a changeset have been submitted to Phabricator and a new version is pushed to heptapod, we should refresh the state on Phabricator. If we do not do this, they are a risk of an older version being applied from Phabricator. In this situation content-divergence will be (rightfully) detected by evolution. We only refresh the Diff if the test pass, to avoid updating Phabricator with broken content. Differential Revision: https://phab.mercurial-scm.org/D9451 diff --git a/contrib/heptapod-ci.yml b/contrib/heptapod-ci.yml --- a/contrib/heptapod-ci.yml +++ b/contrib/heptapod-ci.yml @@ -1,5 +1,6 @@ stages: - tests + - phabricator image: registry.heptapod.net/mercurial/ci-images/mercurial-core @@ -47,6 +48,11 @@ rust-cargo-test-py3: variables: PYTHON: python3 +phabricator-refresh: + stage: phabricator + script: + - ./contrib/phab-refresh-stack.sh + rust-cargo-test-py3-dirstate-tree: <<: *rust_cargo_test variables: