- Dec 16, 2021
-
-
Antoine R. Dumont authored
-
- Nov 18, 2021
-
-
Antoine Lambert authored
This prevents flaky test_storage_replayer in swh-storage tests.
-
- Nov 16, 2021
-
-
David Douard authored
and make it the default configuration in the pytest fixture plugin.
-
David Douard authored
since there is no guarantee the "expected" (considered invalid) revision will be consumed first, the outcome of this test was flaky. So use the client with 'stop_on_eof' instead of 'stop_after_objects'.
-
- Oct 28, 2021
-
-
David Douard authored
hopefully
-
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.
-
- Oct 27, 2021
-
-
David Douard authored
-
- Sep 16, 2021
-
-
vlorentz authored
-
- Jun 18, 2021
-
-
David Douard authored
may be used to generate a on-disk representation of a Storage, for example to produce test datasets, etc.
-
David Douard authored
make it consistent with the KafkaJournalWriter.
-
- Jun 09, 2021
-
-
Antoine Lambert authored
-
- May 03, 2021
-
-
Kumar Shivendu authored
-
- Apr 26, 2021
-
-
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
-
- Apr 16, 2021
-
-
Kumar Shivendu authored
Adding a test that ensures that an exception is raised if the object passed to write_addition function doesn't have a unique_key.
-
- Apr 08, 2021
-
-
Antoine Lambert authored
The author field can be optional in the Release model so handle that edge case in kafka writer tests.
-
- Mar 15, 2021
-
-
Antoine Lambert authored
object_types is missing the newly added extid type.
-
- Feb 25, 2021
-
-
Nicolas Dandrimont authored
-
Nicolas Dandrimont authored
When the local rdkafka producer queue is full, the producer would crash with a BufferError. While this condition is rare, it can happen when running a backfill operation. When such a condition arises, retry sending the message a few times with an increasing backoff. When giving up, use the common KafkaDeliveryError mechanism rather than the plain BufferError.
-
- Feb 09, 2021
-
-
Antoine Lambert authored
Its content is outdated and it is no longer needed as tests can now simply be executed using default test target running pytest.
-
Antoine Lambert authored
Since the release of confluent-kafka v1.6.0, some swh-storage tests became flaky and can hang in consumer fixture destruction when closing the wrapped kafka consumer. Explicitly performing the commit operation on the consumer before closing it removes the hang issue.
-
- Jan 27, 2021
-
-
David Douard authored
prevent unnecessary coupling with swh-model. Related to T2970.
-
- Jan 13, 2021
-
-
Vincent Sellier authored
Related to T2964
-
- Dec 17, 2020
-
-
vlorentz authored
It has a major regression for timestamps: https://github.com/msgpack/msgpack-python/issues/451
-
- Dec 08, 2020
-
-
David Douard authored
to have support for datetime/timestamp.
-
David Douard authored
previous revision did in fact killed the dependencu on swh.core but did not update the rquirements file accordingly.
-
- Dec 04, 2020
-
-
David Douard authored
The encoding of datetime objects is done using msgpack extension types (instead of former b'swhtype" custom types). Note that this imply that the timezone of the encoded datime is "lost in translation": the resulting datetime will be a (tz-aware) UTC datetime object. Support for decoding these later is however provided for backward compatbility. Also make the serialization code of the journal independant from swh.core.api.serializer. This later move aims at making the msgpack serialization process of the journal to be specified (and predictable). The code from swh.core is dedicated at RPC and can thus do much more "custom types" than what is needed for the journal. So by not using the serialization code from the swh.core pakage, we make sure we do not inadvertently encode unspecified objects in the journal. Related to T2834
-
- Nov 27, 2020
-
-
vlorentz authored
So that errors in unique_key() are caught by tests using the in-mem writer.
-
- Nov 02, 2020
- Oct 27, 2020
-
-
Nicolas Dandrimont authored
The old attribute was deprecated in swh.model 0.7.2
-
Nicolas Dandrimont authored
We don't use @overload in this module anymore.
-
Nicolas Dandrimont authored
-
- Oct 12, 2020
-
-
vlorentz authored
-
- Oct 02, 2020
-
-
Stefano Zacchiroli authored
-
- Sep 29, 2020
-
-
vlorentz authored
swh.journal.writer.kafka imports it from serializers.
-
- Sep 17, 2020
-
-
Antoine Lambert authored
Related to T2610
-
Antoine Lambert authored
Related to T2610
-
- Aug 19, 2020
-
-
vlorentz authored
kafka_to_value didn't recursively convert to tuples, so they were of type Tuple[List[bytes], ...] instead of Tuple[Tuple[bytes, bytes], ...]
-
- Aug 07, 2020
-
-
Antoine R. Dumont authored
Following swh.model 0.6.6 bump
-