Skip to content
Snippets Groups Projects
  1. Nov 17, 2020
  2. Nov 16, 2020
    • Georges Racinet's avatar
      PreReceive GitLab hook: pass over HEPTAPOD_ACCEPT_MR_IID · bdec902e9e18
      Georges Racinet authored
      Part of heptapod#368: the Rails app will be able to set
      this environment variable and we're now sending it back
      as the `accept_mr_iid` key to the listener for the pre-receive
      hook, so that the Rails app may apply merge permissions instead
      of (direct) push permissions.
      
      Using the (project-local) iid is better than the id, because
      the receiving end won't have to check that someone is trying
      to cheat with a MR on another project and is anyway fast
      compared to the overall amount of process on its side.
      bdec902e9e18
  3. Nov 15, 2020
    • Georges Racinet's avatar
      Mercurial native mode: configuring through WSGI environment · 018805dc73db
      Georges Racinet authored
      This is part of heptapod#364.
      
      Heptapod Workhorse will pass the `X-HEPTAPOD-HG-NATIVE` header
      with the appropriate value, and we use it to set configuration
      on the wished repository accordingly.
      
      We could have made the `env` argument of the `load_repo()` method
      optional (and hence hadn't needed to adapt existing tests), but
      nothing would then prove that it wasn't forgotten, even with coverage
      proving that `load_repo()` is indeed called (which it does).
      018805dc73db
    • Georges Racinet's avatar
      native mode: configuring through process environment variables · edbb23858466
      Georges Racinet authored
      This is part of heptapod#364.
      
      Heptapod Shell cannot pass `--config` command-line arguments,
      because that is rightfully considered a potential security
      breach (it would allow to register a hook, hence for arbitrary
      code execution).
      
      So we resort to an environment variable. It will actually
      also be more practical for the Rails app (only one method,
      the env creator, to patch)
      edbb23858466
  4. Nov 14, 2020
    • Georges Racinet's avatar
      Mercurial native mode: notifying GitLab with Mercurial SHAs · 31d7839fc26b
      Georges Racinet authored
      This is the first part of heptapod#364
      
      If the new `heptapod.native` config flag is set, payloads of
      GitLab hooks will be made of Mercurial SHAs instead of Git
      SHAs.
      
      This will be used for native Mercurial projects, for which
      obviously GitLab notification hooks must contain Mercurial SHAs,
      since these are the only ones the Rails app is supposed to be
      aware of.
      
      For now, there's no facility to set this flag automatically
      but it can be used for testing in developer setups (by putting
      it in `hdk.hgrc`).
      
      ## Implementation details:
      
      Instead of going over all the places were a SHA is recorded that
      will end up in a hook call, we convert back to Mercurial right
      before we send the hook. This is perhaps good enough, while we are
      in the transitional way of operation of still converting to Git.
      Things will be very different anyway when we don't do that any more.
      31d7839fc26b
    • Georges Racinet's avatar
      Heptapod CI: reallowing failure on hg default dev branch · 8ca8eb0bfc94
      Georges Racinet authored
      This was forgotten in the big refactor of the CI setup.
      (the tests are currently not passing with hg-default, seems to
      be quite normal, an API change)
      8ca8eb0bfc94
  5. Nov 10, 2020
  6. Nov 01, 2020
  7. Oct 26, 2020
  8. Oct 16, 2020
    • Georges Racinet's avatar
      Heptapod CI: triggering HGitaly build · c1603fffa2fb
      Georges Racinet authored
      Since py-heptapod also serves as a common library for HGitaly,
      it makes sense to check the impact of landed changes on HGitaly.
      
      This will also propagate scheduler or trigger builds. For example
      if there's a rebuild of hg-default, it should trigger the rebuild of
      py-heptapod, which will trigger that of HGitaly. We'll have a
      few redundant buils along the way (hg-current didn't change in that
      example), but that's tolerable for the time being and could probably
      be further optimized.
      c1603fffa2fb
    • Georges Racinet's avatar
      Heptapod CI: using DAG to run 'install' job in parallel · d23f2dbb4cfd
      Georges Racinet authored
      The install job is expected now to be slower than the other,
      at least if all Docker images are already downloaded.
      d23f2dbb4cfd
  9. Oct 15, 2020
  10. Oct 14, 2020
  11. Sep 30, 2020
  12. Sep 28, 2020
    • Sushil Khanchi's avatar
      py-heptapod: add a new tag module · 953413fb8aeb
      Sushil Khanchi authored
      This patch initiate a tag module which aims to
      provide utilities and conventions for gitlab/heptapod
      tags.
      
      Also, adds a method `gitlab_tag_ref`.
      953413fb8aeb
  13. Sep 30, 2020
  14. Sep 22, 2020
  15. Sep 21, 2020
  16. Sep 10, 2020
  17. Sep 04, 2020
  18. Aug 24, 2020
  19. Aug 25, 2020
  20. Aug 04, 2020
Loading