1. 27 Oct, 2020 7 commits
    • Julien Muchembled's avatar
      Remove unused cuneiform component · b26cf811
      Julien Muchembled authored
      It does not build with GCC 8.2
      b26cf811
    • Kirill Smelkov's avatar
      golang: v↑ go1.14 (1.14.9 -> 1.14.10) · 34f4058d
      Kirill Smelkov authored
      Going Go1.14.9 -> Go1.14.10 brings in compiler and runtime fixes
      including fix for crash in garbage-collector due to race condition:
      
      https://github.com/golang/go/issues/40642
      https://github.com/golang/go/issues/40641
      
      Tested on helloworld SR.
      34f4058d
    • Łukasz Nowak's avatar
      Fix Caddy Frontend Scalability 202010 · d75a24be
      Łukasz Nowak authored
      See merge request !844
      d75a24be
    • Łukasz Nowak's avatar
      caddy-frontend: Drop external executable for URL checks · c8dcff3c
      Łukasz Nowak authored
      validators.url is enough, even for Caddy, to check that URL is correct, and
      caddy_backend_url_validator was introduced before validators.
      
      Also calling an external command for each slave takes a lot of time.
      c8dcff3c
    • Łukasz Nowak's avatar
      caddy-frontend: Create slave log directories one-by-one · 5e72304f
      Łukasz Nowak authored
      Thanks to this other sections can directly reference them, and so they are
      correctly created as needed, so linking section does not need update-command
      5e72304f
    • Łukasz Nowak's avatar
      caddy-frontend: Drop update-command on htpasswd sections · 2ac946e2
      Łukasz Nowak authored
      The password is anyway present in the section itself, so it's eventual change
      will result with reinstalling the section.
      2ac946e2
    • Jérome Perrin's avatar
      switch_softwaretype: run software type buildout in same process · b04a4fdf
      Jérome Perrin authored
      This way buildout can reuse egg caches and it's a bit faster:
      
      To run a simple instance buildout, from 2.837s it goes down to 1.875s.
      To run slapos node instance 10 times just after requesting an ERP5 instance, it goes from ~112s to 98s
      
      before:
      
          hyperfine "/srv/slapgrid/slappart4/srv/slapos/inst/slappart0/tmp/shared/python2.7/60364a13cc977dd5a894e0239ac889b9/bin/python2.7 /srv/slapgrid/slappart4/srv/slapos/inst/slappart0/tmp/soft/c63ba7265399450b28f9ea6d5667a5e7/bin/buildout -U"
          Benchmark #1: /srv/slapgrid/slappart4/srv/slapos/inst/slappart0/tmp/shared/python2.7/60364a13cc977dd5a894e0239ac889b9/bin/python2.7 /srv/slapgrid/slappart4/srv/slapos/inst/slappart0/tmp/soft/c63ba7265399450b28f9ea6d5667a5e7/bin/buildout -U
            Time (mean ± σ):      2.837 s ±  0.275 s    [User: 2.481 s, System: 0.285 s]
            Range (min … max):    2.482 s …  3.222 s    10 runs
      
      after:
      
          hyperfine "/srv/slapgrid/slappart4/srv/slapos/inst/slappart0/tmp/shared/python2.7/60364a13cc977dd5a894e0239ac889b9/bin/python2.7 /srv/slapgrid/slappart4/srv/slapos/inst/slappart0/tmp/soft/c63ba7265399450b28f9ea6d5667a5e7/bin/buildout -U"
          Benchmark #1: /srv/slapgrid/slappart4/srv/slapos/inst/slappart0/tmp/shared/python2.7/60364a13cc977dd5a894e0239ac889b9/bin/python2.7 /srv/slapgrid/slappart4/srv/slapos/inst/slappart0/tmp/soft/c63ba7265399450b28f9ea6d5667a5e7/bin/buildout -U
            Time (mean ± σ):      1.875 s ±  0.067 s    [User: 1.660 s, System: 0.148 s]
            Range (min … max):    1.816 s …  2.038 s    10 runs
      b04a4fdf
  2. 26 Oct, 2020 4 commits
  3. 23 Oct, 2020 1 commit
  4. 22 Oct, 2020 1 commit
    • Léo-Paul Géneau's avatar
      fix/proftpd: socket created in software · 5a5e0168
      Léo-Paul Géneau authored
      When proftpd software release is tested locally, the socket named /srv/slapgrid/slappart76/srv/runner/instance/slappart1/tmp/soft/91d420e3970a2088e648d2eb86e155ea/parts/prof is created but never removed.
      First it is not an appropriated directory to create a socket and then not removing this socket leads to an error if tests are run a second time :
      
      subprocess.CalledProcessError: Command '('ldd', '/srv/slapgrid/slappart76/srv/runner/instance/sla
      ppart1/tmp/soft/91d420e3970a2088e648d2eb86e155ea/parts/prof')' returned non-zero exit status 1.
      
      ----------------------------------------------------------------------
      Ran 0 tests in 9.914s
      
      FAILED (errors=1)
      
      This is due to code in https://github.com/proftpd/proftpd/blob/master/src/ctrls.c :
      
      const char *socket_path = PR_RUN_DIR "/test.sock"; // socket_path="/srv/slapgrid/slappart76/srv/runner/instance/slappart1/tmp/soft/91d420e3970a2088e648d2eb86e155ea/parts/proftp/var/test.sock"
      sstrncpy(sockun.sun_path, socket_path, sizeof(sockun.sun_path)); // sockun.sun_path="/srv/slapgrid/slappart76/srv/runner/instance/slappart1/tmp/soft/91d420e3970a2088e648d2eb86e155ea/parts/prof"
      
      where `sun_path` is limited to UNIX_PATH_MAX (108 characters): char sun_path[UNIX_PATH_MAX]; https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/un.h#L9
      5a5e0168
  5. 21 Oct, 2020 3 commits
  6. 20 Oct, 2020 24 commits