An error occurred fetching the project authors.
  1. 22 Apr, 2021 1 commit
  2. 04 Dec, 2020 3 commits
  3. 10 Nov, 2020 2 commits
  4. 23 Oct, 2020 1 commit
  5. 20 Oct, 2020 1 commit
    • Jérome Perrin's avatar
      slapos/testing: introduce managed resources · 167404e8
      Jérome Perrin authored
      In SlapOS software release tests we often have to start a process or store
      temporary files in a directory for the lifetime of the test. Cleaning up the
      resources is a bit error prone and source of code duplication.
      
      This introduce a registry of resources that are automatically created and freed
      by the test framework, to simplify tests.
      167404e8
  6. 19 Oct, 2020 1 commit
  7. 08 Oct, 2020 1 commit
    • Jérome Perrin's avatar
      testing/testcase: run `slapos node report` at least 3 times · 846a829e
      Jérome Perrin authored
      In a scenario of an instance with child instances which does not properly
      support destruction, a scenario like this happens:
      
       1. first report detect that it's destroying a root partition but child
      partitions are still started and request destruction of these child instances
       2. child partitions are destroyed
       3. root partition is destroyed
      
      For this case we need to run 3 times
      846a829e
  8. 28 Aug, 2020 2 commits
  9. 21 Jul, 2020 2 commits
    • Jérome Perrin's avatar
      testing/testcase: install unittest Ctrl+C handler earlier · ea500a46
      Jérome Perrin authored
      This also makes development easier, because we can make a temporary
      change to skip setupModule not to reinstall software when we are working
      only on the test and we don't need to recompile the software.
      ea500a46
    • Jérome Perrin's avatar
      testing/testcase: configure default logging to a file · 959bb6d9
      Jérome Perrin authored
      This should make investigation of errors on testnode easiers, any logged
      messages by test framework goes to testcase.log
      
      Setup logging at the very beginning, to also have messages logged during
      initialization
      
      Also adjust a bit the logged messages, we don't need to log everytime we
      snapshot a file or folder, this cause the log to be very big, but it can
      be interesting to log when we start and stop checking software, so that
      we see how long this took.
      959bb6d9
  10. 17 Jul, 2020 2 commits
  11. 01 Jul, 2020 1 commit
    • Jérome Perrin's avatar
      testing/testcase: increase number of retries · 08b67da2
      Jérome Perrin authored
      We observe that software sometimes fail due to transiant errors such as
      DNS/network errors, so increase the default number of retries to build
      software from 2 to 10.
      
      Sometimes also instance is failing for monitoring or other errors that
      might become OK if we retry more, so increase the default number of
      retries for instance from 10 to 20.
      08b67da2
  12. 08 May, 2020 1 commit
    • Jérome Perrin's avatar
      Revert "WIP log" · df0f1bd1
      Jérome Perrin authored
      This reverts commit 3160c589.
      
      pushed by mistake. This is unfinished but it was wrong because we copy
      this log file to snapshot directory before we are done writing to it.
      df0f1bd1
  13. 07 May, 2020 2 commits
  14. 05 May, 2020 1 commit
  15. 27 Apr, 2020 1 commit
    • Jérome Perrin's avatar
      testing/testcase: ignore gfortran.so in ldd check · 8a3c8aa3
      Jérome Perrin authored
      the rpath we set in LDFLAGS is not honored here, but we can ignore this
      as rpath is needed on executables and not important on shared objects.
      
      libgfortran.so is a shared object that happens to be executable, so it
      appears in our ldd check, but we are not executing it directly so it
      should be OK.
      8a3c8aa3
  16. 15 Apr, 2020 1 commit
  17. 14 Apr, 2020 4 commits
    • Jérome Perrin's avatar
      testing/testcase: use realpath to compare paths · 92452d1d
      Jérome Perrin authored
      This supports the case where some paths used for shared parts are
      symlinks
      92452d1d
    • Jérome Perrin's avatar
      testing/testcase: ignore empty paths from $SLAPOS_TEST_SHARED_PART_LIST · 514ae032
      Jérome Perrin authored
      Empty paths confuse the ldd check, because empty prefix always look
      valid, so executables using system libraries will be considered as
      valid.
      514ae032
    • Jérome Perrin's avatar
      testing/testcase: don't destroy instance if it was not requested · abce5180
      Jérome Perrin authored
      This should prevent such confusing tracebacks when building software fail:
      
          INFO Finished software releases.
          ERROR:slapos.testing.testcase:Error during request destruction
          Traceback (most recent call last):
            File "parts/slapos.core-repository/slapos/testing/testcase.py", line 615, in _cleanup
      	cls.requestDefaultInstance(state='destroyed')
            File "parts/slapos.core-repository/slapos/testing/testcase.py", line 680, in requestDefaultInstance
      	cls._instance_parameter_dict)
          AttributeError: type object 'SlapOSInstanceTestCase for ...' has no attribute '_instance_parameter_dict'
      abce5180
    • Jérome Perrin's avatar
      Revert "testing/testcase: use realpath to compare paths" · fa0ebacf
      Jérome Perrin authored
      This reverts commit 49ec3ece.
      
      That commit revealed that all the rpath check was not effective and that
      we have in fact lots of components which use system libraries.
      
      We'll fix rpath on slapos profiles and only then we'll fix this check,
      to prevent test failures (even if the test failures show a real problem)
      fa0ebacf
  18. 13 Apr, 2020 1 commit
  19. 08 Apr, 2020 1 commit
  20. 07 Apr, 2020 2 commits
  21. 30 Mar, 2020 2 commits
  22. 23 Mar, 2020 2 commits
  23. 28 Feb, 2020 1 commit
  24. 22 Jan, 2020 1 commit
  25. 17 Jan, 2020 1 commit
    • Jérome Perrin's avatar
      testcase: give more time for instance destruction. · 27ec7d06
      Jérome Perrin authored
      During teardown, we sometimes have errors that processes are still
      running after being stopped, something like:
          
          Fault: <Fault 91: 'STILL_RUNNING: TestTelegraf-0'>
      
      This is because we only retried `slapos node report` two times, but
      `slapos node report` tells supervisor to stop processes without
      waiting and when processes takes time to stop, this is sometimes not
      enough. Increase to retry up to 10 times by default.
      
      /reviewed-on nexedi/slapos.core!178
      27ec7d06
  26. 15 Jan, 2020 2 commits
    • Jérome Perrin's avatar
      testing/testcase: check executables are not linked with system libraries · 4656f063
      Jérome Perrin authored
      Except a short whitelist of system libraries, we should have always set
      rpath so that the slapos version of the library is used.
      
      We had issues with components which where compiled with slapos version
      of openssl but linked without rpath. At runtime they were using system
      openssl.
      
      Rewrite our complex grep shell pipeline in python, with a function
      parsing ldd output so that we can check not only for not found dynamic
      libraries, but also for libraries that are found outside of slapos
      library dirs.
      
      This also fixes problems that this grep pipeline did not support paths
      with spaces in their names.
      4656f063
    • Jérome Perrin's avatar
      testing/testcase: cleanups · 2138e2ce
      Jérome Perrin authored
      Fix long lines, incorrect type annotations and adjust a bit to make mypy
      happy.
      2138e2ce