Skip to content
Snippets Groups Projects
  1. Mar 13, 2023
  2. Mar 03, 2023
  3. Feb 17, 2023
  4. Feb 16, 2023
  5. Feb 02, 2023
  6. Dec 19, 2022
  7. Nov 15, 2022
  8. Oct 25, 2022
  9. Oct 21, 2022
  10. Oct 18, 2022
  11. Jun 16, 2022
  12. Jun 08, 2022
  13. Jun 03, 2022
  14. May 09, 2022
  15. Apr 21, 2022
  16. Apr 15, 2022
  17. Apr 08, 2022
  18. 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
  19. 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
  20. Feb 10, 2022
  21. 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.
  22. Jan 06, 2022
  23. Dec 16, 2021
  24. Nov 18, 2021
  25. Nov 16, 2021
  26. 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
  27. Oct 27, 2021
  28. Sep 16, 2021
  29. Jun 18, 2021
Loading