1. 30 Mar, 2022 2 commits
  2. 23 Mar, 2022 1 commit
    • Jérome Perrin's avatar
      standalone: strip ansi codes in logs · 3a62e218
      Jérome Perrin authored
      This fixes a bug when the program output contain some ansi code, like
      the \e[0;31m ansi code to display text in color on the terminal. These
      characters are not allowed in XML so if they end up in the XML-RPC
      messages this cause the underlying expat library to complain that the
      stream is not well-formed (invalid token).
      
      Fortunately, supervisor supports this and has a `strip_ansi` option that
      we can set in the config to prevent these problems.
      3a62e218
  3. 22 Mar, 2022 6 commits
  4. 21 Mar, 2022 2 commits
  5. 18 Mar, 2022 1 commit
  6. 16 Mar, 2022 3 commits
  7. 15 Mar, 2022 2 commits
  8. 14 Mar, 2022 8 commits
  9. 11 Mar, 2022 2 commits
  10. 10 Mar, 2022 5 commits
  11. 02 Mar, 2022 1 commit
  12. 01 Mar, 2022 1 commit
  13. 23 Feb, 2022 2 commits
  14. 21 Feb, 2022 1 commit
  15. 17 Feb, 2022 1 commit
  16. 16 Feb, 2022 2 commits
    • Jérome Perrin's avatar
      runpromises: support software releases older than slapos 1.0.118 · 2a90733c
      Jérome Perrin authored
      Before slapos commit a184cca8b (Try to reuse existing file to avoid
      excessive IO on update + other minor optimisations, 2019-06-17), which
      started to be used in profiles in 65acdca0d (Release slapos.cookbook
      (1.0.118), 2019-08-13), the promise plugins did not contain
      
          import sys
          sys.path[0:0] = (..., )
      
      but there was an extra import statement:
      
          import sys
          import json
          sys.path[0:0] = (..., )
      
      slapos.core >= 1.7 was not able to process such promises, because the
      code introspecting these promises assumed that the second node of the
      AST was the assignment, which is incorrect in the old promises because
      it was another import.
      
      To accomodate both cases, use the value from the first assignment.
      
      We also change to use ast.literal_eval for safety.
      2a90733c
    • Jérome Perrin's avatar
      tests: refactor grid tests to use a getTestComputerClass method · b01cc6cf
      Jérome Perrin authored
      This method returns the class of computer used for the test, then
      it's easier for test subclasses to use a computer with different
      classes for software and instances.
      
      Use this in TestSlapgridPluginPromiseWithInstancePython, using
      subclasses instead of monkey patching should make extending this
      test a bit easier
      b01cc6cf