Patchwork D9451: heptapod-ci: automatically refresh existing phabricator Diff on push

login
register
mail settings
Submitter phabricator
Date Nov. 29, 2020, 2:15 a.m.
Message ID <differential-rev-PHID-DREV-f55uez55siqnjbesyzog-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47729/
State Superseded
Headers show

Comments

phabricator - Nov. 29, 2020, 2:15 a.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  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.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D9451

AFFECTED FILES
  contrib/heptapod-ci.yml

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

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
 
@@ -108,3 +109,8 @@ 
     variables:
         RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt --chg"
         TEST_HGMODULEPOLICY: "c"
+
+phabricator-refresh:
+    stage: phabricator
+    script:
+      - ./contrib/phab-refresh-stack.sh