1. 25 Mar, 2024 2 commits
    • Kirill Smelkov's avatar
      software/ors-amarisoft: Workaround SlapOS Master inability to handle shared... · aecb7f3f
      Kirill Smelkov authored
      software/ors-amarisoft: Workaround SlapOS Master inability to handle shared instances of multiple types
      
      While upcoming SlapOS Master should be able to handle multiple types of
      shared instances attached to the same main instance, current SlapOS
      Master UI does not handle it well, and explicitly rejected to do so with
      nexedi/slapos@dae3ad01 , which turned
      json-schemas check failing for ors-amarisoft as
      
          FAIL: test_ors-amarisoft_software_cfg_json (slapos.test.test_json_schema.TestJSONSchemaValidation)
          ----------------------------------------------------------------------
          Traceback (most recent call last):
            File ".../slapos/slapos/test/test_json_schema.py", line 81, in run
              assert _software_type_tuple not in _viewed_software_type, \
          AssertionError: Duplicated software release on enb, shared: True
      
      -> Work it around by adjusting software.cfg.json to use only one type of
      shared instance for each main instance, and inside schema of that type
      dispatch to all needed subtypes with oneOf.
      
      This patch should be reverted when/if SlapOS Master starts to handle
      shared instances of multiple types well.
      
      /cc @tomo, @jhuge, @lu.xu, @xavier_thompson, @Daetalus, @romain, @rafael, @jerome
      aecb7f3f
    • Lu Xu's avatar
  2. 22 Mar, 2024 1 commit
  3. 21 Mar, 2024 4 commits
  4. 20 Mar, 2024 3 commits
  5. 19 Mar, 2024 3 commits
  6. 18 Mar, 2024 6 commits
  7. 15 Mar, 2024 2 commits
  8. 13 Mar, 2024 1 commit
    • Léo-Paul Géneau's avatar
      component/qjs-wrapper: v↑ qjs-wrapper (1.3 -> 2.0) · 649249ca
      Léo-Paul Géneau authored
      component/mavsdk: v↑ mavsdk (0.39.0 -> 1.4.13)
      component/gwsocket: add gwsocket websocket server
      software/js-drone: add frontend for subscriber
      software/js-drone: use WebSocket for subscriber
      slapos/software: run quickjs as a service
      649249ca
  9. 12 Mar, 2024 2 commits
    • Łukasz Nowak's avatar
      rapid-cdn: Fix re6st-verification-url testing · be75d825
      Łukasz Nowak authored
       * the default is already tested so drop TestRe6stVerificationUrlDefaultSlave
       * use locally provided URL to check re6st-verification-url, to not depend
         on external resources
      
      !1501 did a good job with making default disabled, but during the code
      review tests changes were not well checked.
      be75d825
    • Titouan Soulard's avatar
      rapid-cdn: fix failing test · 00586554
      Titouan Soulard authored
      logrotate test for the rapid-cdn SR have been failing for quite some
      time because of a squid.log file created (and henceforth rotated) on
      any slave instance of the CDN:
      
      ```
      Traceback (most recent call last):
          self.assertEqual(
      AssertionError: Items in the second set but not the first:
      'squid.log_10.0.160.212.20240306.23h57m09s-20240307.00h00m02s.old.xz'
      ```
      
      Since we do not want to test this file in that specific test, this
      commit instead loosely check the content of the rotated files
      directory.
      In other words, the test now checks for the presence of the two
      files to be tested, but avoid failing if other files exist.
      
      This goes in line with the two following lines of that same test,
      loosely checking for file absence instead of an empty directory.
      
      /cc @tomo @luke
      /approved-by @luke
      /reviewed-on !1541
      00586554
  10. 08 Mar, 2024 3 commits
  11. 05 Mar, 2024 1 commit
  12. 01 Mar, 2024 1 commit
    • Jérome Perrin's avatar
      stack/erp5: patch RestrictedPython to compile with print_function · ccbe9a26
      Jérome Perrin authored
      Every restricted python code on python2 will be compiled as if it had
      `from __future__ import print_function`, to ease transition away from
      python2.
      
      To update project code, 2to3 from python2.7 seems to do a good job.
      Invoking like from the root of a repository rewrite all scripts:
      
          2to3  --write --nobackups --no-diffs --fix=print .
      ccbe9a26
  13. 29 Feb, 2024 3 commits
  14. 27 Feb, 2024 2 commits
  15. 26 Feb, 2024 2 commits
  16. 22 Feb, 2024 2 commits
    • Jérome Perrin's avatar
      stack/erp5,software/slapos-master: remove unused traces of wsgi parameter · 31c5f124
      Jérome Perrin authored
      This parameter no longer exists, this was not removed correctly
      31c5f124
    • Nicolas Wavrant's avatar
      erp5: restore ZODB using the --with-verify option of "repozo --recover" · a21d8d03
      Nicolas Wavrant authored
      "repozo --verify" is not working as this code expects it to: it simply
      prints errors in stdout, and doesn't return an error code in case of
      error. Thus, running it had absolutely no effect, except wasting IO
      and CPU time.
      
      This commit introduces the use of "repozo --recover --with-verify",
      which runs the verify and the recover in a same step, and has the
      advantage to raise (it doesn't exit with 0) in case of error. Also, as
      it does the verification and the recovery at the same time, it uses
      half the IO for the read. On a production server using SSDs, with a
      ZODB of 1Tb, runner-import-restore now takes 14h instead of 26h, iow a
      performance increase of 46%.
      a21d8d03
  17. 21 Feb, 2024 1 commit
  18. 20 Feb, 2024 1 commit