1. 19 Jan, 2022 3 commits
    • Kirill Smelkov's avatar
      Merge branch 'master+ZODB4-wc2' into y/wc2-next · a8f35d7e
      Kirill Smelkov authored
      * master+ZODB4-wc2: (56 commits)
        golang: v↑ go1.17  (1.17.3 -> 1.17.6)
        golang: v↑ go1.16  (1.16.10 -> 1.16.13)
        stack/erp5: Shorten haproxy socket path
        software/erp5/test: fix flaky test_activity_processing
        component/apache: version up 2.4.52, including security fixes.
        component/trafficserver: version up 9.1.1.
        stack/slapos: version up lxml 4.6.5, including security fixes.
        ninja: simplify configure step
        consul, packer, phantomjs: enable shared
        version up: zc.buildout 2.7.1+slapos015, slapos.recipe.build 0.53, slapos.recipe.cmmi 0.19
        version up: CMake 3.22.1
        component/userhosts: use github.com/figiel/hosts for compatibility with recent libc
        software/erp5/upgrade_test: backport new fixes in old software
        software/erp5/upgrade_test: skip software checks
        component/coturn: build with slapos libnsl
        component/apache-php: build with slapos libnsl
        repman: improve parameters used for cluster
        component/theia: version up 1.21.0
        software/theia: update python packages in python-language-server-requirements
        component/theia: update plugins with current versions
        ...
      a8f35d7e
    • Kirill Smelkov's avatar
      Merge branch 'master' into master+ZODB4-wc2 · 7005a464
      Kirill Smelkov authored
      * master: (56 commits)
        golang: v↑ go1.17  (1.17.3 -> 1.17.6)
        golang: v↑ go1.16  (1.16.10 -> 1.16.13)
        stack/erp5: Shorten haproxy socket path
        software/erp5/test: fix flaky test_activity_processing
        component/apache: version up 2.4.52, including security fixes.
        component/trafficserver: version up 9.1.1.
        stack/slapos: version up lxml 4.6.5, including security fixes.
        ninja: simplify configure step
        consul, packer, phantomjs: enable shared
        version up: zc.buildout 2.7.1+slapos015, slapos.recipe.build 0.53, slapos.recipe.cmmi 0.19
        version up: CMake 3.22.1
        component/userhosts: use github.com/figiel/hosts for compatibility with recent libc
        software/erp5/upgrade_test: backport new fixes in old software
        software/erp5/upgrade_test: skip software checks
        component/coturn: build with slapos libnsl
        component/apache-php: build with slapos libnsl
        repman: improve parameters used for cluster
        component/theia: version up 1.21.0
        software/theia: update python packages in python-language-server-requirements
        component/theia: update plugins with current versions
        ...
      7005a464
    • Kirill Smelkov's avatar
      golang: v↑ go1.17 (1.17.3 -> 1.17.6) · 376ab529
      Kirill Smelkov authored
      Going Go1.17.3 -> Go1.17.6 brings in fixes to compiler, runtime and stdlib
      including security fixes to syscall and net/http packages.
      
      https://go.dev/doc/devel/release#go1.17.minor
      
      Tested via:
      
      - SlapOS.SoftwareReleases.IntegrationTest.Python2 (https://nexedijs.erp5.net/#/test_result_module/20220118-7422B39B), and
      - SlapOS.SoftwareReleases.IntegrationTest.Python3 (https://nexedijs.erp5.net/#/test_result_module/20220118-30B9FCE8)
      
      /cc @luke, @jerome, @alain.takoudjou, @xavier_thompson @tomo, @lu.xu
      /reviewed-on nexedi/slapos!1116
      376ab529
  2. 18 Jan, 2022 1 commit
  3. 17 Jan, 2022 2 commits
  4. 14 Jan, 2022 3 commits
  5. 12 Jan, 2022 3 commits
  6. 11 Jan, 2022 2 commits
    • Julien Muchembled's avatar
      version up: CMake 3.22.1 · 35e4d094
      Julien Muchembled authored
      35e4d094
    • Jérome Perrin's avatar
      component/userhosts: use github.com/figiel/hosts for compatibility with recent libc · b1acdb0a
      Jérome Perrin authored
      In ubuntu 21.04 (libc6 2.33-0ubuntu5) or current debian testing
      (libc6 2.32-5) no longer use open to open /etc/hosts, but what appears
      as "openat" in strace output - but can not be replaced by defining an
      openat function.
      
      This uses https://github.com/figiel/hosts which uses another approach
      of replacing getaddrinfo, gethostbyname* and inet_aton.
      
      Users have been updated a bit, because there are some small differences:
       - the /etc/hosts replacement file is defined by HOSTS_FILE environment
         variable, not HOSTS
       - the library name is libuserhosts.so, not userhosts.so
      
      Other notable differences, for which we did not need code change are:
       - the new library also try to load a file when HOSTS_FILE is not set
       - the new library still use original /etc/hosts file
       - the new library supports aliases to hostnames, not only ip addresses
      b1acdb0a
  7. 07 Jan, 2022 4 commits
  8. 06 Jan, 2022 6 commits
  9. 05 Jan, 2022 1 commit
  10. 04 Jan, 2022 4 commits
    • Joanne Hugé's avatar
    • Joanne Hugé's avatar
    • Levin Zimmermann's avatar
      software/fluentd: Fix SR test on Debian 11 · b964b95b
      Levin Zimmermann authored
      On Debian 10 the test was successful because it could use the system
      python (usr/bin/python). In Debian 11 the system python isn't available
      anymore, therefore it fails. To ensure the Fluentd program can successfully
      execute the "python custom_read_bme280.py" command, the script passes
      the same python binary to the Fluentd config file with which the test
      is called (sys.executable).
      b964b95b
    • Kirill Smelkov's avatar
      component/python-2.7: Lib/subprocess: Speedup close_fds=True · ce75e16e
      Kirill Smelkov authored
      @romain reports that Popen(close_fds=True) is slow on py2. Let's semantically
      backport from py3 how to close only actually opened file descriptors instead of
      whole 3..`ulimit -n` range.
      
      Attached test benchmark shows the following results with `ulimit -n`=65K:
      
      Before this patch:
      
          $ ./bin/python2.7 ~/x.py
          close_fds=False:
          0.001251 s/call
          0.001337 s/call
          0.001486 s/call
      
          close_fds=True:
          0.017973 s/call
          0.018152 s/call
          0.018204 s/call
      
      After the patch:
      
          $ ./bin/python2.7 ~/x.py
          close_fds=False:
          0.001391 s/call
          0.001416 s/call
          0.001570 s/call
      
          close_fds=True:
          0.001469 s/call
          0.001479 s/call
          0.001491 s/call
      
      i.e. ~12x speedup.
      
      References on this subject are in the patch itself.
      
      The test benchmark is below:
      
      ---- 8< ----
      import timeit
      from subprocess import check_call
      
      def f():
          check_call(['true'], close_fds=False)
      def g():
          check_call(['true'], close_fds=True)
      
      N=3
      n=100
      print 'close_fds=False:'
      for i in range(N):
          print '%.6f s/call' % (timeit.timeit(f, number=n) / n)
      print
      print 'close_fds=True:'
      for i in range(N):
          print '%.6f s/call' % (timeit.timeit(g, number=n) / n)
      
      /helped-by @jm
      ce75e16e
  11. 30 Dec, 2021 6 commits
  12. 29 Dec, 2021 3 commits
  13. 28 Dec, 2021 2 commits