Skip to content
Snippets Groups Projects
  1. Aug 27, 2024
  2. Jul 18, 2024
  3. Jun 28, 2024
  4. Jun 05, 2024
    • Antoine Lambert's avatar
      gitea, gogs: Ensure query parameters are not duplicated in API URLs · 323e2774
      Antoine Lambert authored
      Gitea API return next pagination link with all query parameters provided
      to an API request.
      
      As we were also passing a dict of fixed query parameters to the page_request
      method, some query parameters ended up having multiple instances in the URL
      for fetching a new page of repositories data. So each time a new page was
      requested, new instances of these parameters were appended to the URL which
      could result in a really long URL if the number of pages to retrieve is high
      and make the request fail.
      
      Also remove a debug log already present in http_request method.
      323e2774
  5. May 22, 2024
  6. Apr 24, 2024
  7. Apr 16, 2024
    • Antoine Lambert's avatar
      Use beautifulsoup4 CSS selectors to simplify code and type checking · 41407e0e
      Antoine Lambert authored
      As the types-beautifulsoup4 package gets installed in the swh virtualenv
      as it is a swh-scanner test dependency, some mypy errors were reported
      related to beautifulsoup4 typing.
      
      As the returned type for the find method of bs4 is the following union:
      Tag | NavigableString | None, isinstance calls must be used to ensure
      proper typing which is not great.
      
      So prefer to use the select_one method instead where a simple None check
      must be done to ensure typing is correct as it is returning Optional[Tag].
      In a similar manner, replace use of find_all method by select method.
      
      It also has the advantage to simplify the code.
      41407e0e
  8. Mar 14, 2024
  9. Jan 18, 2024
  10. Jan 09, 2024
    • Franck Bret's avatar
      Elm stateful lister · 82ee0951
      Franck Bret authored
      Use another Api endpoint that helps the lister to be stateful.
      The Api endpoint used needs a ``since`` value that represents a
      sequential index in the history.
      The ``all_packages_count`` state helps in storing a count which will be
      used as ``since`` argument on the next run.
      82ee0951
    • Franck Bret's avatar
      Adapt and rebase · 4b1f49ac
      Franck Bret authored
      'url' and 'instance' are mandatory
      Add elm lister entry to pyproject.toml
      4b1f49ac
    • Franck Bret's avatar
      Elm Lister · 3a1beae3
      Franck Bret authored
      The Elm Lister lists Elm packages origins from the Elm
      lang registry.
      It uses an http api endpoint to list packages origins.
      Origins are Github repositories, releases take advantages
      of Github relase Api.
      3a1beae3
  11. Jan 08, 2024
  12. Dec 18, 2023
    • Franck Bret's avatar
      Stateful Julia lister · 99bbd9d6
      Franck Bret authored
      Add a state to the lister to store the ``last_seen_commit`` as a Git
      commit hash.
      
      Use Dulwich to retrieve a Git commit walker since
      ``last_seen_commit`` if any.
      For each commit detect if it is a new package or a new package
      version commit and returns its origin with commit date as
      last_update.
      99bbd9d6
  13. Dec 05, 2023
  14. Nov 29, 2023
  15. Nov 14, 2023
  16. Nov 07, 2023
  17. Oct 18, 2023
  18. Oct 12, 2023
  19. Oct 09, 2023
  20. Oct 02, 2023
  21. Sep 28, 2023
  22. Sep 26, 2023
  23. Sep 25, 2023
  24. Sep 21, 2023
  25. Sep 20, 2023
  26. Sep 19, 2023
    • Franck Bret's avatar
      D lang lister · 2793ef9a
      Franck Bret authored
      Add a dlang module that retrieve origins from an http api endpoint.
      Each origin is a git based project url on github.com, gitlab.com or
      bitbucket.com.
      2793ef9a
  27. Sep 14, 2023
  28. Sep 06, 2023
    • Antoine Lambert's avatar
      Harmonize listers parameters and add test to check mandatory ones · 6e7bc49e
      Antoine Lambert authored
      Ensure that all lister classes have the same set of mandatory parameters
      in their constructors, notably: scheduler, url, instance and credentials.
      
      Add a new test checking listers classes have mandatory parameters declared
      in their constructors. The purpose is to avoid deployment issues on staging
      or production environment as celery tasks can fail to be executed if mandatory
      parameters are not handled by listers.
      
      Reated to swh/infra/sysadm-environment#5030.
      6e7bc49e
  29. Sep 05, 2023
Loading