- Feb 25, 2025
-
-
Antoine Lambert authored
-
Antoine Lambert authored
This notably removes all the warnings related to comparing a ModelObjectType enum with a string literal. As a consequence ModelObjectType enum are used as dict keys instead of literal strings.
-
Antoine Lambert authored
-
- Feb 20, 2025
-
- Feb 19, 2025
-
-
Nicolas Dandrimont authored
This is used by recent versions of the cassandra Debian package to override the log directory.
-
- Feb 18, 2025
-
-
This was used at the time we were building debian packages for swh components but we no longer do that.
-
- Feb 17, 2025
-
-
Antoine Lambert authored
hypothesis uncovered some edge cases datetime objects where Python will produce a timestamp offset by one second due to an unexpected rounding, likely due to float point precision issue during computation. Set datetime microseconds to 0 before calling the timestamp method to avoid such side effect and ensure converted date will be the same as the input one. Fixes #4720.
-
Antoine Lambert authored
-
Antoine Lambert authored
Bump development tools: mypy, codespell, isort, ... Move all tools configuration in pyproject.toml. Remove no longer needed mypy overrides.
-
- Feb 13, 2025
-
-
Antoine R. Dumont authored
It expected a simple cls cassandra so far but it does not reflect the production use case (we deploy storage cassandra with pipeline configuration).
-
- Feb 05, 2025
-
-
Antoine Lambert authored
It has been observed calling that method can lead to cassandra query timeout when a snapshot contains a large amount of branches. The performance bottleneck seems to be the use of a custom cassandra aggregate function computing the number of branches per target type. Removing the use of that function and performing the aggregation client side significantly improves query performance and makes the timeout issue goes away. Fixes #4719.
-
- Jan 14, 2025
-
-
Antoine Lambert authored
The assertion was failing when executing the code so use a different one to keep mypy happy. Also add test to ensure the diagram generation code is covered.
-
- Dec 16, 2024
-
-
vlorentz authored
-
- Dec 11, 2024
-
-
vlorentz authored
- Nov 27, 2024
-
-
Antoine Lambert authored
This should speed up a bit tests execution on Jenkins. Use pytest option --dist=loadfile to group tests by their containing file in order to avoid spawning too many cassandra or postgres instances.
-
Antoine Lambert authored
Recent changes in swh-storage added the PartitionsManagementInterface but this interface is only implemented on real storage backends, not proxies. Any client code overriding the swh_storage_backend_config to return a storage pipeline (loaders for instance) ends up with error otherwise.
-
vlorentz authored
Through a `table_option` dict in the config, mapping table names to what to add to the `WITH` clause of the `CREATE TABLE` clause.
-
- Nov 26, 2024
-
-
vlorentz authored
This abstracts this interface from the PostgreSQL-specific implementation, allowing the object_references table to be sharded in Cassandra.
- Nov 08, 2024
-
-
vlorentz authored
- Nov 05, 2024
-
-
vlorentz authored
The storage returned by swh_storage() must be either the same as swh_storage_backend(), or be a chain of proxies to it. This allows tests to act on the backend using methods not available on proxies or the RPC
-
- Oct 31, 2024
-
-
David Douard authored
Check these 2 backends can be initialized with `swh db` commands using both the backend syntax (<package>:<cls>) and the full module name (eg. storage.proxies.masking). This requires swh.core 3.6.1 which includes a fix for these.
-
- Oct 30, 2024
-
-
David Douard authored
-
- Oct 11, 2024
-
-
David Douard authored
instead of specific masking_db and blocking_db. Keep support for these but mark them as deprecated.
-
David Douard authored
-
- Sep 25, 2024
-
-
Nicolas Dandrimont authored
Not all codepaths are tested with 3.9, but at least `__init__.py` should work.
-
- Aug 27, 2024
-
-
David Douard authored
-
David Douard authored
-
- Aug 09, 2024
-
-
David Douard authored
This tool can then be used by the sync script filling this db from the content of the displayname management app in the web app.
-
- Jul 22, 2024
-
-
Antoine Lambert authored
Fix broken tests due to the introduction of the ModelObjectType enum.
-
- Jul 08, 2024
-
-
Nicolas Dandrimont authored
Closes #4712
-
Antoine Lambert authored
For consistency with other *_get methods in this interface, set return type to list instead of iterable, plus it enables to use the __getitem__ method in client code without mypy errors.
-
- Jun 28, 2024
-
-
Antoine Lambert authored
Latest tenacity release adds some internal changes that broke the mocking of sleep calls in tests. Fix it by directly mocking time.sleep (was not working previously).
-
- Jun 06, 2024
-
-
Jérémy Bobbio (Lunar) authored
It is fairly easy to overlook calling `storage.flush()` after adding some objects just before the end of a process. In a direct configuration, everything will be fine but if a buffering proxy is configured, this means that the objects still in the buffers are going to be lost. Let’s add a warning if this is the case.
-
Nicolas Dandrimont authored
When deleting a snapshot, deletion removed the corresponding entries in the `snapshot_branch` table. These entries are shared between snapshots (e.g. all snapshots with a `HEAD` pointing to `refs/heads/main` share the same line in this table), and we don't keep a reverse index to efficiently remove orphan lines, so we just skip the removal altogether. Add a test to ensure that the corruption doesn't happen anymore.
-
- Jun 05, 2024
-
-
Jérémy Bobbio (Lunar) authored
These changes are needed to allow `swh alter remove` to remove RawExtrinsicMetadata and ExtID objects from the PostgreSQL and Cassandra implementation of the storage. As RawExtrinsicMetadata objects can be addressed using an ExtendendSWHID, they can now be removed using `object_delete()`. For ExtID, a new method `extid_delete_for_target()` has been added to `ObjectDeletionInterface`. It will remove any ExtID object targeting one of the object in the a list of SWHID given as an argument. Address swh-alter!11
-