1. 11 May, 2020 2 commits
    • Jérome Perrin's avatar
      slapos/proxy: support forwarding requests as a partition · c755cba8
      Jérome Perrin authored
      In SlapOS, both users or partitions can requests partitions. With the
      multimaster support of slapos proxy, all requests where made as a user,
      but in the case of recursive slapos - where a partition from the "outer"
      slapos includes an "inner" slapos, it makes sense to forward partitions
      requests as the partition in the "outer" slapos - this way when this
      partition is destroyed all partitions that might have been requested are
      also destroyed.
      
      To request as partition, the multi-master entry must define two extra
      keys:
       - computer, that can be optained by $${slap-configuration:computer}
      from instance buildout
       - partition, that can be optained by $${slap-configuration:partition}
      
      When these are not set, the request will be made as a user, like it was
      the case before.
      
      We also change the test to unset SLAPGRID_INSTANCE_ROOT because this
      implementation has side effect - the environment variable is set and
      never unset. Without this, test fail when running the full test suite
      because a previous test was leaking SLAPGRID_INSTANCE_ROOT. This is
      definitely something we'll have to improve later.
      c755cba8
    • Jérome Perrin's avatar
      slapos/proxy: use slapos API when forwarding request · 8f3a7989
      Jérome Perrin authored
      Eventhough implementation might be a bit more efficient is we use the
      low level API, we probably don't need performance here and it's easier
      to use the request API
      8f3a7989
  2. 08 May, 2020 6 commits
  3. 07 May, 2020 2 commits
  4. 06 May, 2020 2 commits
  5. 05 May, 2020 4 commits
  6. 04 May, 2020 2 commits
  7. 01 May, 2020 1 commit
  8. 30 Apr, 2020 4 commits
  9. 29 Apr, 2020 6 commits
  10. 28 Apr, 2020 3 commits
  11. 27 Apr, 2020 2 commits
    • Jérome Perrin's avatar
      testing/testcase: ignore gfortran.so in ldd check · 8a3c8aa3
      Jérome Perrin authored
      the rpath we set in LDFLAGS is not honored here, but we can ignore this
      as rpath is needed on executables and not important on shared objects.
      
      libgfortran.so is a shared object that happens to be executable, so it
      appears in our ldd check, but we are not executing it directly so it
      should be OK.
      8a3c8aa3
    • Jérome Perrin's avatar
      prune: prune dependencies recursively · 9ee14cb4
      Jérome Perrin authored
      prune was not recursive when checking dependencies, for example when we
      have for example a shared part for openssl that is used only by a shared
      part for curl that is not used, we had to run prune twice, the first
      iteration would remove curl and only the second iteration would see that
      openssl is not used.
      
      This prune in a loop until nothing is pruned by the last iteration. To
      support dry-run, we added a ignored_shared_parts parameter to ignore the
      parts that are supposed to be deleted.
      
      See merge request !205
      9ee14cb4
  12. 24 Apr, 2020 2 commits
    • Jérome Perrin's avatar
      testing/utils: ImageComparisonTestCase · 596d5c5c
      Jérome Perrin authored
      This was in plantuml test, but can be used in other cases where we want
      to snapshot test screenshots or images produced by softwares.
      
      See merge request !203
      596d5c5c
    • Jérome Perrin's avatar
      prune: prune dependencies recursively · 4a2b7e08
      Jérome Perrin authored
      prune was not recursive when checking dependencies, for example when we
      have for example a shared part for openssl that is used only by a shared
      part for curl that is not used, we had to run prune twice, the first
      iteration would remove curl and only the second iteration would see that
      openssl is not used.
      
      This prune in a loop until nothing is pruned by the last iteration. To
      support dry-run, we added a ignored_shared_parts parameter to ignore the
      parts that are supposed to be deleted.
      4a2b7e08
  13. 23 Apr, 2020 3 commits
  14. 22 Apr, 2020 1 commit