Skip to content
Snippets Groups Projects
  1. Jun 01, 2022
  2. May 30, 2022
  3. May 20, 2022
  4. May 17, 2022
  5. May 16, 2022
  6. May 11, 2022
  7. Apr 26, 2022
  8. Apr 25, 2022
  9. Apr 21, 2022
  10. 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
  11. Apr 14, 2022
  12. Apr 08, 2022
  13. Apr 06, 2022
  14. Mar 30, 2022
  15. Mar 29, 2022
  16. 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
  17. Mar 14, 2022
  18. Mar 09, 2022
  19. Mar 03, 2022
Loading