Skip to content
Snippets Groups Projects
  1. May 30, 2022
  2. May 20, 2022
  3. May 17, 2022
  4. May 16, 2022
    • Antoine R. Dumont's avatar
      Add utility function to retrieve canonical github urls · 60f384d3
      Antoine R. Dumont authored
      This new code is within a new arborescence as some more code will get moved alongside in
      a new commit (the new session github currently in swh.lister module).
      
      That current code is making anonymous requests to the github api for now.
      
      Related to T4232
      60f384d3
  5. May 11, 2022
  6. Apr 26, 2022
  7. Apr 25, 2022
  8. Apr 21, 2022
  9. Apr 15, 2022
    • Nicolas Dandrimont's avatar
      sentry: always override init settings with the environment variables · c1b2e937
      Nicolas Dandrimont authored
      Instead of only overriding the initial settings when they're left unset,
      always override the defaults when the environment variables are set.
      
      This makes the behavior more consistent with the way we usually handle
      environment variables. It also allows setting the environment variable
      `SWH_SENTRY_DISABLE_LOGGING_EVENTS=false`, to enable events based on the
      logging framework in gunicorn backends (where the default has been
      flipped to true).
      c1b2e937
    • Nicolas Dandrimont's avatar
      cli: Ensure tests don't mess with the global logging setup · 151a2f95
      Nicolas Dandrimont authored
      Notably, using logging.config.dictConfig disables all loggers before
      setting its own config. There's no simple way of undoing these changes
      to the logging config.
      
      Even if we had a way to reset a basic logging config, pytest reuses its
      log handler instances across tests, so it's not even that simple to be
      able to reset the logging config from scratch and still have pytest able
      to capture logs.
      
      Instead of any of that, just add a fixture to reset the root logger
      level, and to mock logging.config.dictConfig so that it doesn't actually
      get called.
      151a2f95
  10. Apr 14, 2022
  11. Apr 08, 2022
  12. Apr 06, 2022
  13. Mar 30, 2022
  14. Mar 29, 2022
  15. Mar 23, 2022
    • Antoine Lambert's avatar
      pytest: Exclude build directory for tests discovery · ba5a6ef5
      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.
      ba5a6ef5
  16. Mar 14, 2022
  17. Mar 09, 2022
  18. Mar 03, 2022
  19. Mar 02, 2022
  20. Mar 01, 2022
  21. Feb 17, 2022
    • David Douard's avatar
      Prevent root conftest.py from loading swh.core at module loading time · 9c9475f7
      David Douard authored
      move the import statement in swhmain() body.
      Having the swh.core module loaded with the execution of conftest.py can
      have weird side effects, especially on pytest's discovery mechanism in
      the context of tox, namely make pytest load test files from the source
      directory rather than from the installed package in the tox venv,
      potentially leading to ImportPathMismatchError.
      v2.0.0
      9c9475f7
Loading