Skip to content
Snippets Groups Projects
  1. Mar 29, 2024
  2. Feb 26, 2024
  3. 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.
    • 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
  4. Feb 20, 2024
  5. Feb 05, 2024
  6. Feb 02, 2024
  7. Jan 29, 2024
  8. Jan 24, 2024
  9. Jan 16, 2024
  10. Jan 08, 2024
  11. Dec 05, 2023
  12. Dec 04, 2023
  13. Dec 03, 2023
  14. Nov 27, 2023
  15. Nov 20, 2023
  16. Nov 17, 2023
  17. Oct 09, 2023
  18. Oct 05, 2023
  19. Sep 18, 2023
    • Antoine Lambert's avatar
      directory: Refine the way submodules are handled · f9c18e78
      Antoine Lambert authored
      The git directory loader is used to archive guix source packages where
      source code is located in a git repository at a specific reference.
      
      To ensure SWH archives the exact same set of source code files for a
      guix package, the recursive NAR hash of the source code directory is
      computed and compared against the one computed by guix.
      
      Previously the loader was always fetching git submodules if some were
      set for the git repository but guix only fetch those for a couple of
      packages and not for all git based ones. This could result in directory
      hash mismatch when the loader fetches the submodules while it should
      have not.
      
      In order to woraround this, first compute the NAR hash without fetching
      submodules and if this results in a directory hash mismatch then retry
      the operation with the submodules fetched.
      
      Related to #4751.
  20. Aug 24, 2023
  21. Aug 22, 2023
  22. Aug 21, 2023
  23. Aug 07, 2023
  24. Jul 03, 2023
    • Antoine Lambert's avatar
      loader: Ensure NotFound exception is reraised when caught · 3b18c155
      Antoine Lambert authored
      Previous commit modified the dumb.check_protocol function to raise an
      HTTPError exception when the request to check dumb protocol support
      failed. As NotFound exception inherits from ValueError, the code for
      checking dumb protocol support was executed even when a repository was
      not found. So an HTTPError exception was raised with a 404 status code
      and the NotFound exception was no longer propagated to the base loader
      class, resulting in a failed visit status instead of a not_found one.
  25. Jun 14, 2023
Loading