1. 12 Aug, 2021 4 commits
    • Jérome Perrin's avatar
      test/test_collect: fix some timezone dependent tests · 72c1088b
      Jérome Perrin authored
      This test was using time.strftime which uses the current machine timezone,
      but collection is done in UTC timezone, so the test was sometimes failing
      because the strftime('%Y-%m-%d') was another day than the same time in
      UTC time zone.
      
      This test https://erp5js.nexedi.net/#/test_result_module/20210811-96D6B55F/8
      for example had the problem. By using faketime and TZ=Europe/Paris
      environment variable, the same problems reproduced locally 100% of times.
      
      The fix is to always use datetime.utcnow().strftime('%Y-%m-%d'), to not
      depend on the timezone.
      72c1088b
    • Jérome Perrin's avatar
      grid: log buildout output in realtime · 86ce8b8e
      Jérome Perrin authored
      Don't buffer output and use a separate thread to read subprocess process output
      and send it line by line to logging, instead of reading from the main thread
      which output lines with a delay.
      
      fixes https://erp5js.nexedi.net/#/bug_module/20210311-90BA30
      86ce8b8e
    • Jérome Perrin's avatar
      cli/prune: fix a case where parts where not detected as used from a recursive instance · a8eeb651
      Jérome Perrin authored
      To consider if a shared part is used, we consider all files named `slapos.cfg`
      in the instance and try to parse them as a slapos config file.
      The problem was that as soon as a file can not be parsed as a slapos config
      file, we did not continue to evaluate other `slapos.cfg` files. It was a
      `return` where it should have been a `continue`.
      
      This was especially incorrect, because when we have recursive slapos, we
      usually have a working copy of slapos repository, which contain
      `stack/slapos.cfg`, which is not a valid slapos config file.
      
      As a result, when a top level shared part was used in a software installed
      in the recursive slapos from a theia or slaprunner instance, this shared
      part was not detected as used and could have been deleted.
      
      The fix consist in checking all `slapos.cfg` files. This will make slapos
      node prune command probably much slower, because it will really iterate on
      all files now. Anyway this was fast because it was wrong.
      a8eeb651
    • Jérome Perrin's avatar
      cli/prune: fix some typos · 102f0ff3
      Jérome Perrin authored
      102f0ff3
  2. 11 Aug, 2021 4 commits
  3. 09 Aug, 2021 4 commits
  4. 05 Aug, 2021 2 commits
  5. 02 Aug, 2021 5 commits
  6. 30 Jul, 2021 6 commits
  7. 29 Jul, 2021 2 commits
  8. 28 Jul, 2021 3 commits
  9. 26 Jul, 2021 1 commit
  10. 23 Jul, 2021 3 commits
  11. 14 Jul, 2021 6 commits