Skip to content
Snippets Groups Projects
  1. Feb 17, 2025
  2. Oct 28, 2024
  3. Oct 24, 2024
  4. Aug 30, 2024
  5. Aug 27, 2024
  6. Jul 17, 2024
    • Antoine Lambert's avatar
      backend: Force bundle recooking if it is no longer in cache · 8c89dcd8
      Antoine Lambert authored
      It can exist cases when a bundle has been cooked and marked as done in
      the vault database but is no longer available in the vault cache.
      
      Previously, when requesting a new cooking of such bundle, the vault
      backend was not creating a new cooking task and thus the bundle could
      not be downloaded anymore.
      
      So ensure to check bundle presence in cache for such edge case and force
      its recooking if it is not the case.
      
      Related to swh/devel/swh-web#4804.
      8c89dcd8
  7. May 22, 2024
  8. May 15, 2024
  9. Mar 29, 2024
  10. Mar 27, 2024
  11. Feb 05, 2024
  12. Jan 25, 2024
  13. Jan 24, 2024
  14. Jan 23, 2024
    • Antoine Lambert's avatar
      cookers/git_bare: Speedup repository cooking with multi-threading · bdb42b14
      Antoine Lambert authored
      Previously when cooking a git bare repository, contents bytes were
      fetched sequentially which could take a good amount of time for an
      origin with a large revisions history.
      
      In order to speedup the cooking process, retrieve the contents bytes
      in parallel with the help of the concurrent.futures module from the
      Python standard library which fits particularly well for making loops
      of I/O-bound tasks concurrent and for issuing tasks asynchronously.
      bdb42b14
    • Antoine Lambert's avatar
      to_disk: Use a BFS to recursively list a directory instead of a DFS · 150aea0c
      Antoine Lambert authored
      It enables to push new files to download asynchronously while fetching
      sub-directories and thus slightly improve the overall cooking performance.
      
      It should also reduce the memory consumption of the cooking process.
      150aea0c
    • Antoine Lambert's avatar
      to_disk: Allow to use objstorage directly to fetch contents bytes · 098bb093
      Antoine Lambert authored
      As in the git bare cooker, allow to optionally use objstorage directly
      to fetch content bytes when cooking a directory.
      098bb093
    • Antoine Lambert's avatar
      to_disk: Speedup directory cooking with multi-threading · 295e4138
      Antoine Lambert authored
      Previously when cooking a directory, contents bytes were fetched
      sequentially which could take a good amount of time for large
      directories.
      
      In order to speedup the cooking process, retrieve the contents bytes
      in parallel with the help of the concurrent.futures module from the
      Python standard library which fits particularly well for making loops
      of I/O-bound tasks concurrent and for issuing tasks asynchronously.
      295e4138
  15. Dec 07, 2023
  16. Dec 05, 2023
  17. Dec 04, 2023
  18. Dec 03, 2023
  19. Nov 29, 2023
  20. Nov 09, 2023
  21. Nov 08, 2023
  22. Oct 25, 2023
  23. Sep 28, 2023
  24. Sep 18, 2023
    • Antoine R. Dumont's avatar
      setup.py: Remove sdisk build warning about importable packages · f22dfe2b
      Antoine R. Dumont authored
      This fixes the sdist build warnings about importable packages (swh.vault.sql,
      swh.vault.sql.upgrades). [1]
      
      This aligns with the swh.storage's setup.py.
      
      [1] for package in swh.vault.sql swh.vault.sql.upgrades
      ```
          ############################
          # Package would be ignored #
          ############################
          Python recognizes '$package' as an importable package,
          but it is not listed in the `packages` configuration of setuptools.
      
          '$package' has been automatically added to the distribution only
          because it may contain data files, but this behavior is likely to change
          in future versions of setuptools (and therefore is considered deprecated).
      
          Please make sure that '$package' is included as a package by using
          the `packages` configuration field or the proper discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).
      
          You can read more about "package discovery" and "data files" on setuptools
          documentation page.
      ```
      
      Refs. swh/infra/sysadm-environment#5044
      f22dfe2b
  25. Sep 14, 2023
    • vlorentz's avatar
      to_disk: Represent revisions as empty directories instead of symlinks · e8fa9a45
      vlorentz authored
      The symlink representation is slightly ambiguous, so not necessarily
      very useful.
      Additionally, it made directory-flat bundles differ from a non-recursive
      'git clone' checkout, which confuses Guix and potentially other tools.
      
      We may revisit this in the future, eg. by adding a dotfile in the
      directory or metadata at the root.
      e8fa9a45
  26. Jul 19, 2023
  27. Jul 13, 2023
    • Antoine Lambert's avatar
      backend: Move postgresql backend initialization in a separate class · 1614bb65
      Antoine Lambert authored
      Since commit swh/devel/swh-core@89d48572, the "swh db init" command attempts
      to instantiate the postgresql backend of a swh module using the get_datastore
      function of the module with a "cls" and "db" parameters.
      
      While it works fine for most of swh modules, it does not for the vault as more
      parameters are expected by the "get_vault" function and thus the database init
      is failing. The issue was spotted in the docker environment after updating the
      swh/stack image.
      
      So extract postgresql backend initialization for the vault in a new class named
      VaultBackendDataStore and set it as swh.vault.get_datastore attribute value.
      1614bb65
  28. Jul 07, 2023
Loading