Skip to content
Snippets Groups Projects
  1. Mar 21, 2025
  2. Dec 11, 2024
  3. Oct 14, 2024
  4. Jul 18, 2024
  5. May 22, 2024
  6. Nov 14, 2023
  7. Nov 07, 2023
    • Antoine Lambert's avatar
      cli: Use temporary scheduler as fallback when no configuration detected · 7092e4e4
      Antoine Lambert authored
      In order to simplify the testing of listers, allow to call the run command
      of swh-lister CLI without scheduler configuration. In that case a temporary
      scheduler instance with a postgresql backend is created and used.
      
      It enables to easily test a lister with the following command:
      
      $ swh -l DEBUG lister run <lister_name> url=<forge_url>
      7092e4e4
  8. Apr 13, 2023
  9. Oct 13, 2022
  10. Oct 03, 2022
  11. May 23, 2022
  12. May 20, 2022
  13. Nov 23, 2020
  14. Oct 19, 2020
  15. Sep 23, 2020
  16. Nov 06, 2019
  17. Nov 04, 2019
  18. Oct 14, 2019
  19. Oct 09, 2019
  20. Sep 03, 2019
    • David Douard's avatar
      implement listers as plugins · e3c0ea9d
      David Douard authored
      Listers are declared as plugins via the `swh.workers` entry_point.
      
      As such, the registry function is expected to return a dict with the
      `task_modules` field (as for generic worker plugins), plus:
      
      - `lister`: the lister class,
      - `models`: list of SQLAlchemy models used by this lister,
      - `init` (optionnal): hook (callable) used to initialize the lister's state
        (typically, create/initialize the database for this lister).
        If not set, the default implementation creates database tables (after
        optionally having deleted exisintg ones) according to models declared in
        the `models` register field.
      
      There is no need for explicitely add lister task modules in the main
      `conftest` module, but any new/extra lister to be tested must be registered
      (the tested lister module must be properly installed in the test environment).
      
      Also refactor a bit the cli tools:
      - add support for the standard --config-file option at the 'lister' group
        level,
      - move the --db-url to the 'lister' group,
      - drop the --lister option for the `swh lister db-init` cli tool:
        initializing (especially with --drop-tables) the database for a single
        lister is unreliable, since all tables are created using a sibgle MetaData
        (in the same namespace).
      e3c0ea9d
  21. Feb 06, 2019
  22. Jan 16, 2019
  23. Dec 20, 2018
  24. Jul 27, 2018
  25. Jul 18, 2018
  26. Oct 30, 2017
  27. Oct 04, 2017
  28. Jun 12, 2017
  29. Feb 09, 2017
  30. Dec 15, 2016
  31. Oct 20, 2016
  32. Oct 19, 2016
  33. Sep 13, 2016
  34. Mar 17, 2016
  35. Mar 09, 2016
  36. Sep 21, 2015
Loading