1. 12 Aug, 2021 2 commits
    • 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
  12. 12 Jul, 2021 1 commit
    • Jérome Perrin's avatar
      standalone: don't use --all in waitForSoftware / waitForInstance · f906e42e
      Jérome Perrin authored
      Until now, standalone was running slapos node software/instance with --all flag
      which force installing software or processing software, unlike "normal" slapos
      node which no longer install on software once they are completed and only process
      instances when they are requested with different parameters or when they have
      failing promises.
      
      We stop using the --all flag, to behave like a normal slapos node.
      
      This reveal missing promises in some softwares, after this change, waitForInstance
      can return faster. This reveal test failures with some softwares where the
      instanciation step request other instances, but without having a promise to wait
      for their requests to have been sucessfully processed; in this case waitForInstance
      return too early.
      
      We keep an "slapos node software --all" API to force reinstalling software, this
      can be useful for scenarios like erp5testnode, or software release development.
      
      We also keep an hidden "slapos node instance --all" API, so that we can keep
      running tests for software releases with missing promises.
      f906e42e
  13. 07 Jul, 2021 1 commit