Skip to content
Snippets Groups Projects
  1. May 24, 2022
  2. May 20, 2022
  3. May 17, 2022
  4. May 16, 2022
  5. May 13, 2022
    • vlorentz's avatar
      Use all base snapshots in determine_wants() · 9b47b24b
      vlorentz authored
      Before this commit, determine_wants() used the origin's last snapshot
      if any, or the closest parent's snapshot if not.
      
      However, we noticed that many repositories that are very slow to load
      are forks that were already visited, but their owner rebased it on the
      parent since the last visit, causing potentially many commits to be
      added to the origin.
      
      This ensures we do not needlessly fetch these new commits when we
      already loaded the parent.
      v1.8.0
      9b47b24b
  6. May 06, 2022
  7. May 02, 2022
  8. Apr 27, 2022
    • vlorentz's avatar
      Replace 'base_url' argument with 'self.parent_origins' attribute · 4ede7b35
      vlorentz authored
      self.parent_origins is set dynamically by the core loader at the
      beginning of the load (before calling `prepare()`), using the right
      metadata loaders.
      v1.6.0
      4ede7b35
    • Antoine Lambert's avatar
      tasks: Simplify implementation and make visit_date parameter optional · 05242cd4
      Antoine Lambert authored
      Recent changes in swh-scheduler add new parameters to the celery tasks
      produced from swh.scheduler.model.ListedOrigin instances.
      
      So ensure to handle any new parameters by not hardcoding the expected
      ones in task signatures.
      
      Rename date parameter to visit_date in from disk loader tasks and
      make it non mandatory.
      
      Add new tests checking task parameters produced from ListedOrigin
      instances do no raise error when attempting to create a git loader.
      
      Related to T4187
      05242cd4
  9. Apr 26, 2022
  10. Apr 21, 2022
  11. Apr 20, 2022
  12. Apr 08, 2022
  13. Mar 22, 2022
    • Antoine Lambert's avatar
      pytest: Exclude build directory for tests discovery · 96987c2c
      Antoine Lambert authored
      Due to test modules being copied in subdirectories of the
      build directory by setuptools, it makes pytest fail by raising
      ImportPathMismatchError exceptions when invoked from root
      directory of the module.
      
      So ignore the build folder to discover tests.
      96987c2c
  14. Feb 10, 2022
  15. Jan 21, 2022
  16. Jan 14, 2022
  17. Jan 11, 2022
  18. Jan 10, 2022
  19. Dec 20, 2021
    • vlorentz's avatar
      tests: Remove the SWHTag mock, use dulwich.objects.Tag instead. · 0cc96c25
      vlorentz authored
      This mock was clunky because it didn't actually behave much like
      dulwich's Tag.
      
      Additionally, a future commit will need to access the as_raw_chunks()
      method of ShaFile objects, so SWHTag isn't suitable anymore as it
      would need to diverge even more by implementing its own serialization.
      0cc96c25
  20. Dec 16, 2021
  21. Oct 28, 2021
  22. Oct 21, 2021
  23. Oct 20, 2021
  24. Oct 11, 2021
  25. Oct 05, 2021
  26. Oct 01, 2021
Loading