1. 17 Nov, 2020 3 commits
  2. 27 Oct, 2020 2 commits
    • Jérome Perrin's avatar
      testnode: advertise log URL with log_frontend_url · daf3d133
      Jérome Perrin authored
      testnode use to publish the URL of logs so that Nexedi ERP5 can
      display link to "view logs". This URL was an IPv6 URL on a certificate
      which does not validate.
      
      Now testnode software release request a shared frontend for these
      logs and generate a config file with log_frontend_url set.
      
      testnode now advertise the URL of log using the log frontend url
      from config.
      
      Also simplify frontend_url key to manage it using the same way.
      daf3d133
    • Jérome Perrin's avatar
      testnode: pass arguments as environment variables · fcbdb89b
      Jérome Perrin authored
      SLAPOS_TEST_LOG_DIRECTORY and SLAPOS_TEST_SHARED_PART_LIST have been
      introduced recently, they are passed to runTestSuite using the usual
      way of running runTestSuite once with --help to inspect supported
      arguments and passing the argument only if runTestSuite supports them,
      but these arguments are not necessarily heavy to compute and are always
      known (unlike for example firefox path which is only known if seleniumrunner
      extra software was installed), so simplify all this by passing the
      parameters are environment variables.
      fcbdb89b
  3. 15 Sep, 2020 1 commit
    • Jérome Perrin's avatar
      testnode: propagate test_node_title to runTestSuite · e17936a4
      Jérome Perrin authored
      runTestSuite accept a --test_node_title argument, which is used in
      createTestResult API call, so that task distributor can keep track of which
      node executed which task, but since it was not passed, we did not know which
      test node executed which test result line.
      e17936a4
  4. 19 May, 2020 5 commits
  5. 14 May, 2020 3 commits
  6. 30 Apr, 2020 1 commit
  7. 27 Apr, 2020 6 commits
  8. 29 Jan, 2020 3 commits
    • Jérome Perrin's avatar
      Eggtest: support --shared_part_list · 325395e8
      Jérome Perrin authored
      Shared parts received from test node will be passed as
      SLAPOS_TEST_SHARED_PART_LIST environment variable to egg tests.
      
      This will be useful for SLAPOS-SR tests.
      325395e8
    • Jérome Perrin's avatar
      testnode: pass shared_part_list to runTestSuite who understand it · 35768fa2
      Jérome Perrin authored
      Some test suites who install software during the test, such as SLAPOS-SR
      tests, could benefit from reusing already installed shared parts.
      
      The convention is that --shared_part_list is a os.pathsep (:) separated
      list of paths of read-only shared parts in which the test is not allowed
      to write.
      35768fa2
    • Jérome Perrin's avatar
      testnode: SlapOS shared parts support · 316f23c0
      Jérome Perrin authored
      Shared parts speed up compilation time and is becoming the standard in
      SlapOS software installations, so it makes sense to use it in our test
      nodes, as it also gives one more opportunity to test this feature.
      
      erp5testnode configuration file supports a new shared_part_list option,
      that can be set to a \n separated list of paths to use for shared parts,
      following the same rules as slapos.core and slapos.recipe.cmmi (ie. the
      first ones are read-only and the last one is read-write).
      
      This shared_part_list option will be set in slapos.cfg used to compile
      both the "software for testnode" (ie. selenium-runner) and later the
      softwares under tests.
      The software under tests will also use a local directory for each test
      suite to install shared suite.
      
      The directory structure is now:
      
        srv/
          shared/
            (shared parts to install selenium runner)
          slapos/
            soft/
              (selenium-runner software)
          testnode/
            foo/ # test suite with reference foo
              inst/
                (partitions of tested software)
              shared/
                (shared parts to install tested software)
              soft/
                (tested software)
      
      and in the configuration srv/shared will be set as initial
      shared_part_list.
      
      When installing selenium-runner, srv/shared/ is used to write shared
      parts. These shared parts are never removed.
      
      When installing software under test, srv/shared/ and
      srv/testnode/foo/shared/ are used. If parts are found in srv/shared they
      are used, if they are not found, they are installed in
      srv/testnode/foo/shared/.
      
      In practice, this should mean that the shared parts installed by
      selenium-runner will be reused for all tested softwares and this should
      speed up initial installation of these softwares.
      
      Currently, nothing is implemented regarding removal of unused shared
      parts, but in our case:
       - srv/testnode/foo/shared/ will be removed when "foo" is removed.
       - srv/shared/ should be used only when installing selenium-runner.
      
      If this starts to use too much disk space, one quick and dirty
      workaround could be to destroy the test node instance and re-create it.
      316f23c0
  9. 26 Nov, 2019 1 commit
  10. 21 Nov, 2019 1 commit
  11. 25 Oct, 2019 1 commit
  12. 23 Oct, 2019 1 commit
  13. 14 Oct, 2019 1 commit
  14. 10 Oct, 2019 5 commits
    • Jérome Perrin's avatar
      testERP5TestNode: remove outdated XXX comment · 1172ff04
      Jérome Perrin authored
      When running tests the path to git command is just git, because we have
      set $PATH
      1172ff04
    • Jérome Perrin's avatar
      testnode: fix Computer.updateConfiguration call · b76875d6
      Jérome Perrin authored
      updateConfiguration is a method to set the list of partitions, not to
      add partitions to an existing computer. The previous (slapos.core
      <1.5.0) implementation of slap proxy was incorrect and was adding more
      partitions each time it was called, but that was never the indented
      behavior.
      
      Prepare the list of partitions and call updateConfiguration only once to
      set all partitions.
      
      This should fix SLAPOS-SR-TEST that are still using erp5.util
      b76875d6
    • Jérome Perrin's avatar
      testERP5TestNode: make tests properly isolated · 0e0e240f
      Jérome Perrin authored
      Some tests where patching SlapOSControler to replace methods by a no-op,
      but this was never reset. I believe we should rewrite this using mock
      which takes care of un-doing the patches for us and makes this testing
      easier, but for now I'm just reseting the missing methods like all
      others were already reseted.
      0e0e240f
    • Jérome Perrin's avatar
      testERP5TestNode: fix fake config · 4b752bdb
      Jérome Perrin authored
      configparser read options as strings, node_quantity is not supposed to
      be an int.
      4b752bdb
    • Jérome Perrin's avatar
      testnode: python3 support · dab9e278
      Jérome Perrin authored
      pkg_resources.resource_string reads the file as binary, if we want to
      substitute in this string we need to decode it.
      dab9e278
  15. 09 Oct, 2019 1 commit
  16. 08 Oct, 2019 1 commit
  17. 07 Oct, 2019 1 commit
  18. 01 Oct, 2019 1 commit
  19. 09 Sep, 2019 2 commits