1. 27 Dec, 2019 9 commits
    • Jérome Perrin's avatar
      testing/testcase: check executables are not linked with system libraries · 5cefe319
      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 pipline did not support paths
      with spaces in their names.
      5cefe319
    • Jérome Perrin's avatar
      testing/testcase: cleanups · 28e07ee6
      Jérome Perrin authored
      Fix long lines, incorrect type annotations and adjust a bit to make mypy
      happy.
      28e07ee6
    • Jérome Perrin's avatar
      testing/testcase: remove slapos log files after each test class · dd8f4b5a
      Jérome Perrin authored
      To isolate log files per test in the snapshots
      dd8f4b5a
    • Jérome Perrin's avatar
      testing/testcase: separate instance/software snapshot · 92c9a0fb
      Jérome Perrin authored
      Log files from slapos node software are large and they are always the
      same after each test method, so it does not make much sense to store
      them for each test method snapshot, because we only run slapos node
      software at setupModule step.
      
      Log files from slapos node instance are smaller, but it's also not
      needed to make a snapshot after each test, because we only run slapos
      node instance at setUpClass step.
      
      To prevent duplication, store slapos log files only at setupModule (for
      software) and at setUpClass (for instance).
      
      Also store log slapos log files in all the steps that can fail in
      _cleanup.
      92c9a0fb
    • Jérome Perrin's avatar
      testing/testcase: snapshot etc recursively · 8354f1a4
      Jérome Perrin authored
      Everything in etc can be interesting while investigating issues in
      test, also it should not be too big.
      8354f1a4
    • Jérome Perrin's avatar
      testing/testcase: snapshot bin/* · fe162b7d
      Jérome Perrin authored
      It's also interesting to see what scripts have been generated
      fe162b7d
    • Jérome Perrin's avatar
      testing/testcase: snapshot *.cfg and .*.cfg files in instance dir · d0c4d699
      Jérome Perrin authored
      Keeping buildout.cfg and .installed.cfg can help diagnosing test
      failures.
      d0c4d699
    • Jérome Perrin's avatar
      testing/testcase: snapshot symlinks and directories · 9d985106
      Jérome Perrin authored
      Directories were ignored by mistake, we found out that several files
      that would help us diagnosing problems were missing, because we only
      snapshot etc/* which did not snapshot recursive directories such as
      etc/promise or etc/service.
      
      Symlinks were copied (the target was copied), because they matched the
      isfile check, but if the symlink target was not existent, this caused
      errors.
      
      Also rename _snapshot_instance_file to _copySnapshot as it is no longer
      treating files only
      9d985106
    • Jérome Perrin's avatar
      standalone: keep only 5MB of logs · c20aaaac
      Jérome Perrin authored
      50 was too much now that we keep snapshots in tests.
      c20aaaac
  2. 24 Dec, 2019 1 commit
  3. 20 Dec, 2019 2 commits
  4. 19 Dec, 2019 6 commits
  5. 18 Dec, 2019 10 commits
  6. 17 Dec, 2019 3 commits
    • Łukasz Nowak's avatar
      Release 1.5.5 · 3dee88a5
      Łukasz Nowak authored
      3dee88a5
    • Łukasz Nowak's avatar
      format: Stabilise partition addresses · affe90a0
      Łukasz Nowak authored
      Depending on the netifaces version the netmask can come with or without
      lenght prefix, so support both cases and consider netmask with prefix
      as equal to without prefix.
      
      The only result will be update of the netmask in the computer XML file.
      affe90a0
    • Łukasz Nowak's avatar
      format: Try hard to keep the same computer address · d3c516ed
      Łukasz Nowak authored
      self.interface.getGlobalScopeAddressList which uses netifaces can have
      different sorting of the addresses depending of the version, so prefer the
      already configured IPv6 address.
      d3c516ed
  7. 13 Dec, 2019 4 commits
  8. 12 Dec, 2019 5 commits