https://github.com/SoftwareHeritage/swh-storage

sort by:
Revision Author Date Message Commit Date
f88e1be Updated debian changelog for version 0.0.176 28 February 2020, 15:21:27 UTC
38f7b69 Update upstream source from tag 'debian/upstream/0.0.176' Update to upstream version '0.0.176' with Debian dir a3a4171140665fb62502d24d675e0aa69835b421 28 February 2020, 15:21:26 UTC
2b64be8 New upstream version 0.0.176 28 February 2020, 15:21:25 UTC
5222352 Use Content.hashes() instead of Content.to_dict() where it makes sense. .hashes() returns a subset of .to_dict(), so it was accidentally used instead. 27 February 2020, 15:59:52 UTC
d096542 Make the RPC client and objstorage helper fetch Content.data. This is needed when a lazy subclass of Content is used, eg. from swh.model.from_disk. 27 February 2020, 15:58:00 UTC
3996e5d Move ctime out of the validation proxy. It's not the right place to set the ctime (it should be on the server side). 27 February 2020, 15:56:06 UTC
caf51a0 Accept cassandra-driver >= 3.22. The bug that affected us in 3.21 is resolved ( https://datastax-oss.atlassian.net/browse/PYTHON-1205 ), so we can now use v3.22 to get wheels. 27 February 2020, 15:04:08 UTC
7c7a0f2 Updated debian changelog for version 0.0.175 20 February 2020, 13:18:34 UTC
b072463 Update upstream source from tag 'debian/upstream/0.0.175' Update to upstream version '0.0.175' with Debian dir 2763e145c9d6b32840bf5d673ee30300a243fa20 20 February 2020, 13:18:33 UTC
79e1f7c New upstream version 0.0.175 20 February 2020, 13:18:32 UTC
b093a5a retry: Add support for tenacity < 5.0 This fixes swh-storage debian package build on buster as python3-tenacity version is 4.12. 20 February 2020, 12:38:48 UTC
9f166f3 Updated debian changelog for version 0.0.174 19 February 2020, 15:00:32 UTC
4a3c8f3 Update upstream source from tag 'debian/upstream/0.0.174' Update to upstream version '0.0.174' with Debian dir 8d31e83ca5c9c40500801331887fb0e85a0ad5e2 19 February 2020, 15:00:31 UTC
a20779f New upstream version 0.0.174 19 February 2020, 15:00:30 UTC
7cf0864 Add support for (de)serializing swh-model in RPC calls. This allows running the validating proxy on the client side instead of the server side. 18 February 2020, 13:22:33 UTC
80befa5 Make storage proxies use swh-model objects instead of dicts. This means that instead of having the validation proxy right before the backend class, it must now be at the beginning of pipelines. 18 February 2020, 12:45:46 UTC
29b0948 Fix FilteringProxy to not drop skipped-contents with a missing sha1_git. Passes them all to the backend instead of silently dropping them all if any of them is not missing. 18 February 2020, 12:45:22 UTC
51b2016 Fix inconsistent behavior of skipped_content_missing across backends. Two fixes: * in-mem ignored None keys * cassandra yielded input dicts as-is instead of a dict with just the hashes 14 February 2020, 16:49:05 UTC
03c2a02 Re-raise StorageArgumentException through API calls. So clients will get a nice exception looking like the original one, instead of generic RemoteApiError. 12 February 2020, 15:51:26 UTC
fa4dac4 Updated debian changelog for version 0.0.172 12 February 2020, 13:13:47 UTC
65f1c6e Update upstream source from tag 'debian/upstream/0.0.172' Update to upstream version '0.0.172' with Debian dir 355e8d105e8ea7d1af1c1238c772d8e57697fe84 12 February 2020, 13:13:47 UTC
b668651 New upstream version 0.0.172 12 February 2020, 13:13:45 UTC
652ecf0 storages: Refactor journal operations with a dedicated writer collab Prior to this commit, the code was triplicated across the storage backends. Now all storages use the same collaborator whose concern is writing to the storage. Could be a stepping stone to make that a proxy storage. 11 February 2020, 14:40:36 UTC
adcbf95 Fix RecursionError when storage proxies are deepcopied or unpickled. They both get attributes (eg. __setattr__) before setting any attribute, and don't call the constructor; so self.storage is not set when __getattr__ is called for the first times. 11 February 2020, 13:12:12 UTC
a2e565d d/control: Update runtime dependency 10 February 2020, 17:43:05 UTC
de7797d tests: Remove print statement 10 February 2020, 16:18:33 UTC
5b3c940 storages: Refactor objstorage operations with a dedicated collaborator Prior to this commit, the code was triplicated across the storage backends. Now all storages use the same collaborator whose concern is writing to the objstorage. 10 February 2020, 12:38:29 UTC
68ff23c Add a validation proxy for _add() methods. It converts input dictionaries into swh-model objects, which validates them and raises an appropriate error. This removes duplicated validation code that is currently present in all three storage backends. It also uses well-defined object types instead of loose dicts, which gives these _add() methods a more strict type. 10 February 2020, 11:03:49 UTC
6383637 Unify exception raised by invalid input to API endpoints. This is a first step toward not pickling exceptions. 07 February 2020, 10:40:23 UTC
5a6b025 Updated debian changelog for version 0.0.171 06 February 2020, 14:07:38 UTC
ae6befc Update upstream source from tag 'debian/upstream/0.0.171' Update to upstream version '0.0.171' with Debian dir 55757ca0c14457bc364a00b1f333b4c38160f5b2 06 February 2020, 14:07:37 UTC
be225df New upstream version 0.0.171 06 February 2020, 14:07:35 UTC
2b029b7 Split 'content_add' method into 'content_add' and 'skipped_content_add'. Respectively to add present content and skipped content. This simplifies the logic of both methods, and is a necessary step to typing / using swh-model objects everywhere, as contents have quite different attributes depending on whether they are present or missing. 06 February 2020, 13:29:31 UTC
93ea487 Increase Cassandra requests timeout to 1 second. 100ms worked fine so far, but we're starting to get some timeouts on the Azure test cluster. Multiplying the timeout by 10 should give us ample room to work with. 04 February 2020, 12:38:32 UTC
4a0a055 d/changelog: Bump new release 03 February 2020, 16:33:29 UTC
1d233df d/control: Update build dependencies Forcing use of openjdk-11-jre as there are issues to make cassandra run with the default dependency (openjdk-8-jre). 03 February 2020, 16:33:29 UTC
a119a7a d/changelog: Update dependencies Build will still fail but we will have more information to debug 03 February 2020, 15:01:20 UTC
41ca2bf d/control: Add build dependencies 03 February 2020, 13:36:08 UTC
bfe4586 Updated debian changelog for version 0.0.170 03 February 2020, 13:23:48 UTC
2812822 Update upstream source from tag 'debian/upstream/0.0.170' Update to upstream version '0.0.170' with Debian dir 08005486c202dfaa978bf8aadb9469768d769e1e 03 February 2020, 13:23:47 UTC
a66e16c New upstream version 0.0.170 03 February 2020, 13:23:46 UTC
b315f9d Tune Cassandra test config for lower test latency. 03 February 2020, 12:31:28 UTC
25941d5 Make tests reuse the same keyspace/schema instead of recreating it for each test. This makes tests run 16 times faster than https://forge.softwareheritage.org/D2612 (which is itself 3 times faster than this commit's parent) 03 February 2020, 11:26:24 UTC
eb155ad Add Cassandra backend. 31 January 2020, 15:05:53 UTC
ba373c9 Updated debian changelog for version 0.0.169 30 January 2020, 13:26:23 UTC
7dc7029 Update upstream source from tag 'debian/upstream/0.0.169' Update to upstream version '0.0.169' with Debian dir aae69d992484644229881c13c543f8489e58a53c 30 January 2020, 13:26:22 UTC
523f2eb New upstream version 0.0.169 30 January 2020, 13:26:21 UTC
cf45ec6 retry: Add retry behavior on pipeline storage with flushing failure Currently, wrong "hash collisions" are happening a lot on ingestion [1] [2] [3] The last loading step (flush) is failing on most loaders (git, npm, etc...). This commits adds the retry behavior to the current pipeline storage deployed. Which should decrease the frequency of that error. The remaining hash collision which won't subside should be then real hash collisions. [1] https://sentry.softwareheritage.org/share/issue/102aace238fe4ba6b49bcc5531f7c2bf/ [2] https://sentry.softwareheritage.org/share/issue/8e8b48a1d94c465b8109e76311ecdbe7/ [3] https://sentry.softwareheritage.org/share/issue/d4f1208b7eec4b43b11e38494ff039cc/ 30 January 2020, 11:22:16 UTC
0dc1626 Updated debian changelog for version 0.0.168 30 January 2020, 10:25:31 UTC
0c6e828 Update upstream source from tag 'debian/upstream/0.0.168' Update to upstream version '0.0.168' with Debian dir 83be097d86cd3d927e896c561f682dfeae685245 30 January 2020, 10:25:30 UTC
3e6d2bf New upstream version 0.0.168 30 January 2020, 10:25:29 UTC
1608fcd Allow deprecated endpoints to be missing from a backend class. 29 January 2020, 15:50:10 UTC
68702b5 CONTRIBUTORS: add Daniele Serafini 29 January 2020, 13:24:09 UTC
32d455b Rename in_memory.Storage to in_memory.InMemoryStorage. For consistency with the other class names. 29 January 2020, 12:34:38 UTC
d4fb270 Move Storage documentation and endpoint paths to a new StorageInterface class Documentation was duplicated between the in-mem and postgresql storage, and one of them regularly goes out of date. This deduplicates them both to a new class. This new class is also the one declaring the API paths, as it did not make sense to have this declaration on the postgresql storage. Last but not least, this commit adds a test that checks backend classes have all the functions, and they have exactly the same signature as the interface. This will catch stupid bugs before production, eg. if an argument does not have the same name in all classes. 29 January 2020, 11:16:55 UTC
1775edd in_memory: Fix content_get_metadata when there is no 'data' key. 27 January 2020, 16:37:57 UTC
0f51e8a Remove cur/db arguments from the in-mem storage. They shouldn't be there; bad copy-pasting. 24 January 2020, 15:53:27 UTC
1cd53c1 Implement content_update for the in-mem storage. 24 January 2020, 15:47:10 UTC
7245ee9 Updated debian changelog for version 0.0.167 24 January 2020, 14:01:58 UTC
e180f2a Update upstream source from tag 'debian/upstream/0.0.167' Update to upstream version '0.0.167' with Debian dir e797a96b300338124b09f8b75bef2996fc8220d9 24 January 2020, 14:01:57 UTC
e62d6e4 New upstream version 0.0.167 24 January 2020, 14:01:56 UTC
c8389c2 146: Fix typo 24 January 2020, 13:54:26 UTC
2ebcdf3 pgstorage: Empty temp tables instead of dropping them Due to our pattern of adding objects [1], vacuum is triggered regularly on pg_catalog.*, having an heavy impact on performance. This commit tries to avoid the dropping the temporary tables part, emptying them instead (they still are dropped at the end of the session but less often). This should decrease the bloat on pg_catalog.* tables. [1] - create temporary table - insert data from temporary table to production table with filtering - drop temporary table 24 January 2020, 11:14:00 UTC
7db8312 Updated debian changelog for version 0.0.166 24 January 2020, 09:00:12 UTC
9da9a85 Update upstream source from tag 'debian/upstream/0.0.166' Update to upstream version '0.0.166' with Debian dir ee457449f805ebd9a5e9e10c911c8939bc4d5b4c 24 January 2020, 09:00:11 UTC
74bb123 New upstream version 0.0.166 24 January 2020, 09:00:10 UTC
cc25810 assert list doesn't have too many values 22 January 2020, 14:24:08 UTC
2ebce62 test endpoint: content_missing (sha1_git), snapshot_missing 22 January 2020, 14:24:08 UTC
c40d327 in memory changes 22 January 2020, 14:24:08 UTC
55ebd23 storage: Add endpoint to get missing content (by sha1_git) and missing snapshot 22 January 2020, 14:24:08 UTC
cfee7b5 Remove redundant config checks in load_and_check_config. 1. There is no reason to force the server to serve only the 'local' backend anymore 2. Missing arguments will error when instantiating the backend class. 22 January 2020, 11:25:24 UTC
2454a78 docs: Fix sphinx warnings Related to T2188 17 January 2020, 16:02:35 UTC
2dc17cd Remove 'id' and 'object_id' from the output of object_find_by_sha1_git. 'id' is not used anymore, and 'object_id' never was. This commit slightly simplifies existing code, and will allow some deduplication in the upcoming Cassandra backend. 17 January 2020, 14:10:56 UTC
b5a5084 Make origin_visit_get_random return None instead of {} if there are no results. This is more consistent with other endpoints. 17 January 2020, 14:10:36 UTC
dba9e04 Rewrite test_content_get_partition_empty to not assume partitions are based on sha1. This is not true of the upcoming Cassandra backend. 17 January 2020, 14:10:11 UTC
e584655 Remove test_content_*_same_input, which check for behavior we do not want to guarantee. They check that content_add deduplicates with existing content/duplicated input. This is unneeded (the loaders don't send such data), so providing these guarantees unnecessarily complicates swh-storage code, especially the upcoming Cassandra backend. 17 January 2020, 14:09:38 UTC
92af2cd Updated debian changelog for version 0.0.165 17 January 2020, 13:09:40 UTC
ac79988 Update upstream source from tag 'debian/upstream/0.0.165' Update to upstream version '0.0.165' with Debian dir c24845a1a2ad014144923b527940b11c269f8081 17 January 2020, 13:09:39 UTC
079fa61 New upstream version 0.0.165 17 January 2020, 13:09:38 UTC
bf77f14 storage.retry: Fix objects loading when using generator parameters This will fix related retry error [1] [1] https://sentry.softwareheritage.org/share/issue/ddbbdd3c235b40ca826bf2c820989f14/ Related to cc29708564c35575f569e863f028a480a9905cf4 Related to D2543 17 January 2020, 12:55:36 UTC
a7cbaf1 Updated debian changelog for version 0.0.164 16 January 2020, 17:05:03 UTC
4578987 Update upstream source from tag 'debian/upstream/0.0.164' Update to upstream version '0.0.164' with Debian dir 23094cd1a4429ea115d7ffdaac67f3aea22ae353 16 January 2020, 17:05:02 UTC
4738b2e New upstream version 0.0.164 16 January 2020, 17:05:01 UTC
cc29708 storage: Fix objects loading when using generator parameters Some objects (directories, origins, releases, revisions) will not be added into the storage if they are provided as generator parameters to the *_add methods instead of lists. So ensure to transform generators into lists before processing the objects. 16 January 2020, 16:53:22 UTC
0b3610e d/changelog: Bump new release 14 January 2020, 16:27:58 UTC
8c3ef4b d/control: Add missing test dependency 14 January 2020, 16:22:48 UTC
6690419 Updated debian changelog for version 0.0.163 14 January 2020, 16:17:45 UTC
0481c44 Update upstream source from tag 'debian/upstream/0.0.163' Update to upstream version '0.0.163' with Debian dir 4ed2720d31becfe82ffadf4a9175de855e6ee5da 14 January 2020, 16:17:45 UTC
e362b9d New upstream version 0.0.163 14 January 2020, 16:17:43 UTC
b641e53 d/control: Align dependency versions with requirements.txt 14 January 2020, 16:10:13 UTC
e70f427 d/control: Add new runtime dependency 14 January 2020, 16:09:54 UTC
8dcac2b retry: Implement content_add_metadata endpoint with retry policy 14 January 2020, 12:45:11 UTC
aa588c9 retry: Migrate to tenacity Which is a maintained fork of retry 14 January 2020, 12:40:39 UTC
4aa4d79 test_retry: Improve and align consistently assertion checks 14 January 2020, 10:41:35 UTC
2b7d770 storage.retry: Implement snapshot_add with retry policy 14 January 2020, 10:41:35 UTC
df3f33f storage.retry: Implement release_add with retry policy 14 January 2020, 10:41:35 UTC
54890f7 storage.retry: Implement revision_add with retry policy 14 January 2020, 10:41:35 UTC
a8efa95 storage.retry: Implement directory_add with retry policy 14 January 2020, 10:41:34 UTC
dddb6d9 in_memory: Make directory_get_random return None when storage empty 14 January 2020, 10:41:34 UTC
2dd578c storage.retry: Implement origin_visit_update with retry policy 14 January 2020, 10:41:34 UTC
back to top