Skip to content
Snippets Groups Projects
  1. Mar 19, 2025
  2. Feb 21, 2025
  3. Feb 17, 2025
  4. Jan 08, 2025
  5. Sep 10, 2024
  6. Aug 30, 2024
  7. Aug 27, 2024
  8. Jun 28, 2024
  9. Jun 06, 2024
  10. Jun 04, 2024
    • Antoine Lambert's avatar
      test_loader: Fix implementation of test_loader_with_ref_delta_in_pack · 39d38c4e
      Antoine Lambert authored
      Previous implementation was building an invalid pack file with REF_DELTA
      object types as it was using the new object to deltify as the base of the
      delta.
      
      This was leading to errors and undefined behavior after building an index
      for such a pack file as the deltified objects could not be properly resolved
      by dulwich (observed by stsp while working on git loader improvements).
      
      The bases for deltified objects are now objects that were previously loaded
      into the archive.
      
      Tag objects produced in that test are also ensured to be valid.
      39d38c4e
    • Antoine Lambert's avatar
      loader: Ensure to fetch latest snapshot produced by a git visit type · a8a5077a
      Antoine Lambert authored
      SWH data model allows an origin to have multiple visit types, in particular
      a git origin can have visit types 'git' and 'git-checkout'.
      
      We must ensure to retrieve the latest snapshot for a git visit type in the
      git loader implementation as it can break incremental loading of a git origin
      having both visit types mentioned above.
      
      Indeed a 'git-checkout' visit type produces a snapshot with a single branch
      while a 'git' visit type produces a snapshot containing all branches of the
      loaded repository. Previously, if the latest snapshot retrieved was produced
      by a 'git-checkout' visit type, the loader would refetch all branches and
      associated git objects while most of them have already been archived.
      
      Related to swh/meta#5092.
      a8a5077a
  11. May 30, 2024
  12. May 15, 2024
  13. Mar 29, 2024
  14. Feb 26, 2024
  15. Feb 22, 2024
    • Antoine Lambert's avatar
      dumb: Synchronize fetch_pack behavior with smart loader · b7d16897
      Antoine Lambert authored
      As with the smart git loader, restrain the maximum size for a pack file
      to download.
      
      Move the code writing pack data bytes and checking size in an utility
      class to avoid code duplication.
      
      Add missing tests covering the cases where the pack size limit is reached.
      v2.11.0
      b7d16897
    • Antoine Lambert's avatar
      dumb: Fix streaming of HTTP responses · 64ac0204
      Antoine Lambert authored
      When using the requests library to perform HTTP requests, if responses
      need to be streamed the stream parameter must be set to True to ensure
      content is downloaded by chunks.
      
      Previously, a whole HTTP response was cached in memory which could lead
      to OOM errors when dealing with a repository with large pack files.
      64ac0204
  16. Feb 20, 2024
  17. Feb 05, 2024
  18. Feb 02, 2024
  19. Jan 29, 2024
  20. Jan 24, 2024
  21. Jan 16, 2024
  22. Jan 08, 2024
Loading