Skip to content
Snippets Groups Projects
  1. Aug 09, 2022
  2. Aug 08, 2022
  3. Aug 05, 2022
  4. Aug 04, 2022
  5. Jul 13, 2022
    • Antoine Lambert's avatar
      postgresql: Increase some timeouts to get origin visits · fbe38038
      Antoine Lambert authored
      Even if missing index to speedup origin visit queries has
      been added to replica database, the configured timeouts for
      origin_visit_get_with_statuses and origin_visit_find_by_date
      were still too low to avoid query timeouts in production.
      
      After performing some tests locally, bumping them to 2000ms
      makes the timeouts go away.
      
      Related to T4386
      v1.4.2
      fbe38038
  6. Jul 12, 2022
  7. Jul 08, 2022
  8. Jul 06, 2022
    • David Douard's avatar
      do not always auto-create an OriginVisitStatus object in origin_visit_add() · e0825acb
      David Douard authored
      when the OriginVisit object given as argument to be inserted already
      have its visit id set (which is usually the case in a replayer-like
      session), it makes no sense to auto-add the first OriginVisitStatus
      objects related to this visit; this behavior is expected only when the
      origin_visit_add() is called from a loading session.
      
      Adapt tests accordingly -- several tests did depend on the auto-add
      behavior of the origin_visit_add method for OriginVisit objects which
      visit_id is given in the test dataset.
      e0825acb
  9. Jul 01, 2022
  10. Jun 03, 2022
  11. May 31, 2022
  12. May 10, 2022
  13. May 09, 2022
  14. May 02, 2022
  15. Apr 28, 2022
  16. Apr 26, 2022
  17. Apr 21, 2022
  18. Apr 14, 2022
  19. Apr 13, 2022
  20. Apr 12, 2022
  21. Apr 08, 2022
  22. Apr 07, 2022
  23. Apr 06, 2022
  24. 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
  25. 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
Loading