Skip to content
Snippets Groups Projects
  1. Jun 03, 2022
  2. May 09, 2022
  3. Apr 21, 2022
  4. Apr 15, 2022
  5. Apr 08, 2022
  6. Mar 24, 2022
    • Antoine Lambert's avatar
      test_client: Fix failing test since recent swh-model update · 3771edba
      Antoine Lambert authored
      swh.model.tests.swh_model_data.TEST_OBJECTS["revision"] now has
      three sample revisions resulting in two revisions being processed
      by kafka consumer in test_client_with_deserializer.
      
      As there is no guarantee on the order messages are processed by
      kafka consumer, we need to update test implementation to avoid
      failures.
      3771edba
  7. Mar 22, 2022
    • Antoine Lambert's avatar
      pytest: Exclude build directory for tests discovery · 33a8b959
      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.
      33a8b959
  8. Feb 10, 2022
  9. Jan 20, 2022
    • David Douard's avatar
      Add a few statsd metrics in the kafka journal client · 5a26dae2
      David Douard authored
      namely add 2 metrics:
      - swh_journal_client_handle_message_total: (counter) the total number  of kafka messages that have been handled by the client,
      - swh_journal_client_status: (gauge) report the current status of the
        kafka consumer (waiting or processing).
      
      Since these metrics will be created by any kafka consumer (any swh.journal.client), tags should be added to the statsd metrics (eg. via the STATS_TAGS env var) to distinguish between the different types of consumers (e.g. hostname, consumer type/role, etc.)
      
      Especially for the swh_journal_client_status to work properly
      in an elastic execution environment (docker swarm, k8s, ...) it is
      mandatory to add a consumer-specific tag (e.g. the hostname) and make
      sure the TTL for the metrics in prometherus-statsd-exporter is pretty
      short (e.g. 1h), so that restarted consumers are not kept for too long/forever by statsd-exporter.
  10. Jan 06, 2022
  11. Dec 16, 2021
  12. Nov 18, 2021
  13. Nov 16, 2021
  14. Oct 28, 2021
    • David Douard's avatar
    • David Douard's avatar
      Pass the object_type to JournalClient.value_serializer() · f92d4acf
      David Douard authored
      and make this function an (optional) constructor argument.
      If not given, stick to `kafka_to_value`.
      
      If the returned value is None, it is ignored (not passed to the
      `worker_fn` function).
      
      This is needed in order to make it possible for the JournalClient to use
      a special value_deserializer implementation that needs the object_type,
      for example to make the value_deserializer directly instanciate
      BaseModel object.
      
      This will be used by an upcoming refactoring of the storage replayer
      that will make sure any BaseModel object coming from the journal is valid,
      and log invalid kafka objects in case it's not.
      
      Related to T3693.
      f92d4acf
  15. Oct 27, 2021
  16. Sep 16, 2021
  17. Jun 18, 2021
  18. Jun 09, 2021
  19. May 03, 2021
  20. Apr 26, 2021
    • Antoine Lambert's avatar
      tox: Add sphinx environments to check sane doc build · dd59b67c
      Antoine Lambert authored
      Enable to check package documentation can be built without producing
      sphinx warnings.
      
      The sphinx environment is designed to be used in continuous integration
      in order to prevent breaking documentation build when committing changes.
      
      The sphinx-dev environment is designed to be used inside a full swh
      development environment.
      
      Related to T3258
      dd59b67c
  21. Apr 16, 2021
  22. Apr 08, 2021
  23. Mar 15, 2021
  24. Feb 25, 2021
  25. Feb 09, 2021
  26. Jan 27, 2021
  27. Jan 13, 2021
  28. Dec 17, 2020
  29. Dec 08, 2020
Loading