Skip to content
Snippets Groups Projects
  1. Jan 06, 2023
    • Antoine Lambert's avatar
      loader: Add support for submodules discovering · 7d26e4f6
      Antoine Lambert authored
      The git loader can now discover submodules while loading a
      repository.
      
      That process works the following way:
      
      1. Before sending a new directory to archive in the storage,
         check if it has a ".gitmodules" file in its entries and add
         the tuple (directory_id, content_sha1git) in a global set if
         it is the case.
      
      2. During the post_load operation, process each discovered
         ".gitmodules" file the following way:
      
        - retrieve content metadata to get sha1 checksum of file
      
        - retrieve .gitmodules content bytes in objstorage from sha1
      
        - parse .gitmodules file content
      
        - for each submodule definition:
      
          * get git commit id associated to submodule path
      
          * check if git commit has been archived by SWH
      
          * if not, add the submodule repository URL in a set
      
        - for each submodule detected as not archived or partially
          archived, create a one shot git loading task with high
          priority in the scheduler database
      
      Related to T3311
      Related to T3923
      7d26e4f6
  2. Feb 10, 2022
  3. Jan 21, 2022
  4. Jan 14, 2022
  5. Jan 11, 2022
  6. Jan 10, 2022
  7. 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
  8. Dec 16, 2021
  9. Oct 28, 2021
  10. Oct 21, 2021
  11. Oct 20, 2021
  12. Oct 11, 2021
  13. Oct 05, 2021
  14. Oct 01, 2021
  15. Sep 30, 2021
  16. Sep 28, 2021
  17. Sep 21, 2021
  18. Sep 16, 2021
  19. Aug 09, 2021
  20. Aug 06, 2021
  21. Jul 30, 2021
  22. Jul 26, 2021
  23. Jun 09, 2021
  24. May 11, 2021
  25. Apr 26, 2021
    • Antoine Lambert's avatar
      tox: Add sphinx environments to check sane doc build · 15e12fae
      Antoine Lambert authored
      Enable to check package documentation can be built without producing
      sphinx warnings.
      
      The sphinx environment is designed to be used in continuous integration
      in order to prevent breaking documentation build when committing changes.
      
      The sphinx-dev environment is designed to be used inside a full swh
      development environment.
      
      Related to T3258
      15e12fae
  26. Apr 07, 2021
Loading