Skip to content
Snippets Groups Projects
  1. Jul 10, 2019
  2. Jul 09, 2019
  3. Jul 04, 2019
  4. Jul 01, 2019
    • David Douard's avatar
      api/sync: allow to configure requests for pool size and retries · 9aa6ddfc
      David Douard authored
      by default:
      - increase the connection pool size and
      - set retry to 3 (number of retries each connection should attempt).
      
      These config params can be set directly from config files for 'remote'
      api clients. For example, to specify these in an objstorage client
      config file:
      
        objstorage:
          cls: remote
          args:
            url: swh-objstorage:5003
            max_retries: 5
            pool_connections: 100
      9aa6ddfc
  5. Jun 13, 2019
    • David Douard's avatar
      cli/db: do not attempt to create the DB by default · 9d6aed30
      David Douard authored
      this is needed to prevent the command to depend on having pg's createdb
      tool installed on the machine running the 'swh db-init' command.
      
      In a normal deployment setup, this pg tool is not expected to be present
      on every machine on which one want to be able to use this 'swh db-init'
      command.
      9d6aed30
  6. May 21, 2019
  7. May 20, 2019
  8. May 17, 2019
  9. May 16, 2019
  10. May 15, 2019
  11. May 13, 2019
  12. May 06, 2019
  13. Apr 19, 2019
  14. Apr 12, 2019
  15. Apr 09, 2019
    • vlorentz's avatar
      Explicitely give Db connections back to the pool. · 1d9c0bf0
      vlorentz authored
      So they gracefully release the connection on error instead
      of relying on reference-counting to call the Db's `__del__`
      (which does not happen in Hypothesis tests) because a ref
      to it is kept via the traceback object.
      v0.0.59
      1d9c0bf0
  16. Apr 02, 2019
  17. Mar 28, 2019
  18. Mar 27, 2019
  19. Mar 19, 2019
    • David Douard's avatar
    • David Douard's avatar
      api: refactor the SWHRemoteAPI's exception class handling · 577e933e
      David Douard authored
      - add a default implementation of the exception class
      - make the exception class a class attribute of SWHRemoteAPI that can be
        overloaded at instanciation time by the api_exception named argument
      - so the api_exception positional argument of SWHRemoteAPI becomes a named
        argument
      
      WARNING: This later point does break compatibility for any use of this class
      not using named arguments when instanciating it. Fortunately, as far as I
      know, every swh packages does use named argument when instanciating this
      class, so this should not break anything.
      v0.0.56
      577e933e
    • David Douard's avatar
      api: kind of fix for the SWHRemoteAPI's contructor · 8147cd7f
      David Douard authored
      - ensure we do accept **kwargs so any super().__init__(**kwargs) from an
        unexpected MRO path in an indecent maze of multi-inheritance will not crash
      - do not call super().__init__(); it is either useless (most probably,
        super() is object in this context) or silently ignore passed kwargs that
        super() (when it's not object) may have been able to understand...
      
      Long story short, kwargs handling in multi-inheritance __init__ methods is
      a mess.
      8147cd7f
    • David Douard's avatar
      api: factorize SWHRemoteAPI.(get|post)_stream methods · 5299aa75
      David Douard authored
      - merge raw_post and row_get in a unique raw_verb method,
      - merge post_stream() and post() as a unique post(); post_strean is then a
        call to post with the 'stream' parameter set,
      - merge get_stream() and get() the same.
      5299aa75
    • David Douard's avatar
      tests: ensure LC_ALL is set to C.UTF-8 for pytest · bd112a0a
      David Douard authored
      so the pytest-postgresql fixture works as expected on non C locale systems.
      bd112a0a
  20. Mar 18, 2019
  21. Feb 28, 2019
Loading