Skip to content
Snippets Groups Projects
  1. Feb 16, 2023
  2. Feb 02, 2023
  3. Dec 19, 2022
  4. Oct 19, 2022
  5. Oct 18, 2022
  6. Sep 28, 2022
    • Stefan Sperling's avatar
      pin billiard dependency to versions < 4 · 610ba8ad
      Stefan Sperling authored
      Billiard version 4 is known to cause trouble in the git-loader's test
      suite because of specific requirements set by the celery package:
      
        pkg_resources.ContextualVersionConflict: (billiard 4.0.2
         (/home/stsp/.virtualenvs/swh/lib/python3.9/site-packages),
        Requirement.parse('billiard<4.0,>=3.6.4.0'), {'celery'})
      
      Until that is fixed, pin billiard to known-working versions.
      610ba8ad
  7. May 09, 2022
  8. Apr 27, 2022
    • Antoine Lambert's avatar
      tasks: Simplify implementation and add tests for listed origins · 3a551fa9
      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.
      
      Remove unsafe use of unnamed task parameters.
      
      Add new tests checking task parameters produced from ListedOrigin
      instances do no raise error when attempting to create a hg loader.
      
      Related to T4187
  9. Apr 26, 2022
  10. Apr 21, 2022
  11. Apr 08, 2022
  12. Apr 06, 2022
  13. Mar 22, 2022
    • Antoine Lambert's avatar
      pytest: Exclude build directory for tests discovery · 193aaa29
      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.
      193aaa29
  14. Feb 10, 2022
  15. Feb 08, 2022
  16. Feb 07, 2022
  17. Jan 20, 2022
  18. Dec 16, 2021
  19. Dec 01, 2021
    • Raphaël Gomès's avatar
      Fix context for the first revision in a run · 8ac42a9a
      Raphaël Gomès authored
      See inline comments: in essence, currently the first revision
      in a run (incremental or not) will get the null revision as a
      parent and no cached directory, which creates the wrong diff for that
      revision (i.e. lots of files become added etc).
      
      We fix this problem by doing a full listing of the first revision
      in a run.
      8ac42a9a
    • Raphaël Gomès's avatar
      Don't accidentally do a full run on incremental · 6f1ef81f
      Raphaël Gomès authored
      Filtering against the storage then asking for new revisions only makes
      sense if there are revisions not in storage and not ancestors of heads.
      If there are none, the current behavior lists all revisions, which is a
      whole lot of wasted work.
      6f1ef81f
  20. Oct 11, 2021
  21. Oct 02, 2021
  22. Sep 28, 2021
  23. Sep 23, 2021
  24. Sep 21, 2021
    • Antoine R. Dumont's avatar
      Capture missing revision <-> hgnode-id scenario in a xfail test · ef502bcd
      Antoine R. Dumont authored
      anomad-d is the `user`-`repository` name.
      
      It's a repository which presents an anomaly in some undefined way yet. That anomaly
      makes the ingestion fail.
      
      It's something that's happening currently once in a while with the bitbucket ingestion.
      This commit is just a preparatory work to analyze the problem either if i have time to
      or if someone else wants to.
      
      To analyze comment the xfail mark and let the test fail, then debug. That should fairly
      help.
      
      Related to T3584
      ef502bcd
  25. Sep 16, 2021
  26. Sep 15, 2021
  27. Jul 29, 2021
    • Antoine R. Dumont's avatar
      Use versioned ExtIDs in main loader mercurial implementation · 9be124af
      Antoine R. Dumont authored
      For now this hardcodes the version to 1 for either reading or writing instructions.
      
      This allows:
      - store the new hashes with a version (actually no version means version 0).
      - to keep the old loader mercurial ExtID references in the archives (no need to clean
        them up as that poses other problems regarding the journal)
      - in effect unblock the current ingestion/updates of existing origins which already have
        more than one ExtIDs due to different incompatible versions.
      
      The storage implementation does not allow filtering on the extid_version so it's up to
      the loader to do the filtering. Hence the current implementation.
  28. Jul 28, 2021
  29. Jun 16, 2021
  30. Jun 15, 2021
    • Raphaël Gomès's avatar
      loader: add an hg-specific mapping for branching · 2877eb3c
      Raphaël Gomès authored
      As discussed in T3352, the branching mechanism of Mercurial is more
      featureful than that of Git's. The Snapshot model was not designed
      with multiple heads, closed heads, bookmarks, etc. in mind, but with
      only branches being "pointers" to (mostly) revisions.
      As a workaround for a possible re-design of the Snapshot model (though
      nothing of the sort is planned for now), we define a mapping that better
      represents Mercurial's branching system.
      
      This allows for handling multiple heads per branch and closed branches,
      whose revisions (if not already covered by another branch) would
      previously have been lost to the ether. Additionally, bookmarks are now
      saved to get a better representation of the projects that do use them.
      2877eb3c
Loading