Skip to content
Snippets Groups Projects
  1. Mar 22, 2023
    • David Douard's avatar
      Refactor the azure backend · f996ee90
      David Douard authored
      - Drop the AzureCloudObjStorage in favor of using the
        PrefixedAzureObjStorage (with "" prefix)
      - Drop support for (deprecated) configuration based on account name and key
      - Adapt a bit the Azurite based tests and add a couple of test cases
        (especially non-sha1 primary hash and a 32 bits prefix test case).
      f996ee90
    • David Douard's avatar
      Refactor CloudObjStorage provider logic · c54f0751
      David Douard authored
      Simplify a bit the cloud provider logic behinf CloudObjStorage:
      
      - get rid of the _get_provider() method in favor of a simple constructor
        "provider" argument,
      - deprecate the 2 specialized classes AwsCloudObjStorage and
        OpenStackCloudObjStorage; one should directly use the CloudObjStorage
        instead,
      - deprecate "s3" and "swift" objstorage factory cls,
      - adapt tests accordingly.
      c54f0751
    • David Douard's avatar
      Allow to name objstorage instances · 964d4721
      David Douard authored
      this will allow to use this name to add a statsd probe counting which backend
      has been successful in a multiplexed backend.
      964d4721
    • David Douard's avatar
      Make the primary hash of an objstorage configurable · 3c08aac2
      David Douard authored
      The primary hash (aka the has used as primary key for the objstorage
      backend) used to be hardcoded as sha1, this makes it configurable among
      supported hashes (sha1, sha1_git, sha256 and blake2s256).
      
      For the remote api to work, a new `/config` endpoint has been added
      allowing a RPC client to ask the server for a config (generic dict), in
      which the "primary_hash" key is used to configure the client with the same
      primary hash as the server. If not such endpoint is available, defaults
      to "sha1".
      3c08aac2
  2. Mar 20, 2023
  3. Feb 20, 2023
  4. Feb 17, 2023
  5. Feb 16, 2023
  6. Feb 02, 2023
  7. Jan 17, 2023
  8. Jan 16, 2023
  9. Jan 13, 2023
  10. Jan 12, 2023
  11. Dec 19, 2022
  12. Oct 25, 2022
    • vlorentz's avatar
      azure: Add tests based on Azurite in addition to mocks · df4be2d8
      vlorentz authored
      In addition to add support for multi-hashes, we will need to use more advanced
      features of the Azure Blob Storage, so using only mock-based tests will be
      less reliable.
      
      This commit adds the option to run the test suite with Azurite, a clone
      of the Azure Blob Storage API, which is a standard tool used in tests.
      df4be2d8
  13. Oct 19, 2022
  14. Oct 18, 2022
  15. Jul 13, 2022
  16. Jul 04, 2022
  17. Jun 23, 2022
    • vlorentz's avatar
      Make WineryWriter.add return None · e712f286
      vlorentz authored
      Like WineryObjStorage and other ObjStorage backends.
      e712f286
    • vlorentz's avatar
      Remove get_random() · 2caa05e8
      vlorentz authored
      It is not used anywhere (and swh-storage provides content_get_random() that
      feels the same need), and cloud backends do not implement it anyway.
      2caa05e8
  18. Jun 22, 2022
  19. Jun 21, 2022
  20. May 09, 2022
  21. Apr 26, 2022
  22. Apr 21, 2022
Loading