Skip to content
Snippets Groups Projects
  1. Jun 03, 2022
  2. May 31, 2022
  3. May 10, 2022
  4. May 09, 2022
  5. May 02, 2022
  6. Apr 28, 2022
  7. Apr 26, 2022
  8. Apr 21, 2022
  9. Apr 14, 2022
  10. Apr 13, 2022
  11. Apr 12, 2022
  12. Apr 08, 2022
  13. Apr 07, 2022
  14. Apr 06, 2022
  15. Apr 04, 2022
    • David Douard's avatar
      Make postgresql's Storage client options configurable from config · c6dc5cd3
      David Douard authored
      Adding a `query_options` member to postgresql's Storage, in conjunction
      with swh.core >= 2.5, allows to set/overwrite SQL client options from
      the storage configuration file.
      
      Default values are set, as they used to be, from the decorator
      arguments. But in addition to this, one can overload these value at run
      time from the storage configuration file. For example:
      
      .. code-block:: yaml
      
         storage:
           cls: postgresql
           db: testdb
           objstorage:
             cls: memory
           query_options:
             directory_ls:
               statement_timeout: 180000
      
      will provide a Storage instance for which the timeout value for the
      `directory_ls` endpoint is 3mn (instead of the default 20s).
      c6dc5cd3
  16. Mar 23, 2022
    • Nicolas Dandrimont's avatar
      Fix tenacious storage tests for swh.model 6 · 835feb68
      Nicolas Dandrimont authored
      The logic for testing the tenacious storage proxy by interspersing bad
      objects with good ones triggers when the object list is larger than 3
      items. However, the allowed error rate of 1 failure for a window of 3
      objects would only work for lists larger than six objects (putting at
      least 2 good objects between each bad object).
      
      swh.model 6 made the directory, revision and release test object lists 3
      object long, triggering the buggy code.
      
      Reducing the window size to 2 objects makes the test logic works for
      lists of 3 or more objects.
      v1.2.0
      835feb68
    • vlorentz's avatar
      Remove typing workarounds for Revision.author or Revision.committer being None · 6fdaf8a0
      vlorentz authored
      swh-model 6.0.0 adds proper support for them.
      
      + fix issue found by mypy
      6fdaf8a0
    • vlorentz's avatar
      Add support for author=None and committer=None · 3eff720a
      vlorentz authored
      committer=None happens on some malformed commits generated by old dgit
      version; and it is possible for author=None to happen for the same reason.
      
      For now, this is not supported by swh-model, so tests temporarily
      disable attrs checks that swh-model relies on.
      3eff720a
  17. Mar 22, 2022
    • Antoine Lambert's avatar
      pytest: Exclude build directory for tests discovery · 92c78ab5
      Antoine Lambert authored
      Due to test modules being copied in subdirectories of the
      build directory by setuptools, it makes pytest fail by raising
      ImportPathMismatchError exceptions when invoked from root
      directory of the module.
      
      So ignore the build folder to discover tests.
      92c78ab5
  18. Mar 16, 2022
  19. Mar 15, 2022
  20. Mar 11, 2022
  21. Mar 08, 2022
  22. Mar 02, 2022
    • vlorentz's avatar
      Move metrics handling from backends to RPC server · 284a4ab3
      vlorentz authored
      Motivation: replaces code duplication in the backends with a single one,
      to be consistent with the objstorage (which has many more backends)
      
      This also fixes the issue of metrics from 'extid_add' to be missing
      when using the postgresql storage.
      284a4ab3
  23. Feb 24, 2022
    • David Douard's avatar
      Update for swh.core 2.0.0 · 215162b2
      David Douard authored
      - Add expected entry points for swh.core 2 db handling new features:
      
        - add a ``swh.storge.get_datastore()`` function
        - add ``swh.storage.postgreql.storage.Storage.get_current_version()`` method
        - move sql migration scripts in ``swh/storage/sql/upgrades``
        - modify sql initialization scripts to match swh.core 2 (remove
          dbversion management code).
      
      - Update tests to use the new template-based database handling; this
        should have only minimal impact on test execution performances.
      v1.0.0
      215162b2
    • David Douard's avatar
      Add types-toml to requirements-test.txt · 386fb4d6
      David Douard authored
      386fb4d6
  24. Feb 10, 2022
  25. Feb 04, 2022
  26. Feb 01, 2022
Loading