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

sort by:
Revision Author Date Message Commit Date
02134a7 Changes the output of content_find method to a list in case of hash collisions and makes the sql query on python side and added test duplicate input, colliding sha256 and colliding blake2s256 16 May 2019, 09:06:06 UTC
85b3da9 bump dependency to swh.core[db,http] >= 0.0.60 so tests are not broken when next swh.core version is published. 07 May 2019, 15:12:11 UTC
2e70516 algos.revisions_walker: Add methods to query produced history state Add methods is_history_truncated and missing_revisions to check if the produced history got truncated or not. Closes T1677 06 May 2019, 10:02:21 UTC
6510b5e algos.revisions_walker: Handle truncated/shallow histories It might exist cases where a revision's parent is referenced but doesn't exist in the archive resulting in a truncated/shallow history when walking on the revisions graph. That commit ensures the revision walkers will not end up in errors when encountering such cases. Closes T1675 18 April 2019, 15:30:17 UTC
685b601 Make revision_add and directory_add call `_missing` using the same transaction. 16 April 2019, 08:27:07 UTC
7baf562 Update coverage gitignore 12 April 2019, 10:03:09 UTC
58b49f9 Use the proper order to record content byte addition The current way the value is returned creates a metric whose name is backwards. 11 April 2019, 12:55:43 UTC
63f50a5 Fix backwards-compatibility for snapshot_add in the server 11 April 2019, 12:55:43 UTC
cf99702 Use the db_transaction decorator on all _add() methods. So they gracefully release the connection on error instead of relying on reference-counting to call the Db's `__del__` (which does not happen in Hypothesis tests) because a ref to it is kept via the traceback object. 09 April 2019, 16:06:24 UTC
dab5bf8 Rewrite skipped_content_missing to not use a temporary table. 09 April 2019, 16:05:46 UTC
5aacb79 Add a test that adds arbitrary objects to the storage. 09 April 2019, 15:58:28 UTC
cd0d309 Fix person name clashes in revision_add and release_add. When two revisions/releases have authors with the same fullname but different names (which should never happen in practice, but since name/email parsing is on a best-effort basis, you never know...). Bug found by Hypothesis. 09 April 2019, 15:49:38 UTC
70c43ba Fix order of results of person_get. 09 April 2019, 15:31:07 UTC
8672a27 Add test for skipped_content_missing. 09 April 2019, 15:27:12 UTC
95c0b27 Fix support of releases with no author or date. Bug found by Hypothesis. 09 April 2019, 15:24:12 UTC
ba3a9af listener: Remove 09 April 2019, 15:19:54 UTC
681070f Make test_origin_get_range run faster (less objects). 09 April 2019, 14:09:06 UTC
2aa256b Fix hypothesis tests. Why does test_origin_get_range even work? 08 April 2019, 20:24:10 UTC
00e5f33 Make test_origin_get_range run faster. 08 April 2019, 13:40:24 UTC
92a575f Move Hypothesis strategies to swh-model. 08 April 2019, 13:23:51 UTC
a574fe5 Add a new endpoint origin_visit_upsert to add an origin_visit with a specific id. Also allows skipping an extra origin_visit_update query to set snapshot/metadata/status. 05 April 2019, 15:40:28 UTC
d110b58 Make content_add_metadata require a ctime argument. This makes Python set the ctime instead of pgsql. 05 April 2019, 09:15:18 UTC
a62b1ad Prevent the 'snapshots' hypothesis strategy from generating loops. 04 April 2019, 18:44:56 UTC
ee62e05 Add a new endpoint content_add_metadata. 04 April 2019, 15:15:51 UTC
5913718 Refactor content_add's code into smaller functions. 04 April 2019, 15:10:50 UTC
4c8a0ac Make origin_add copy objects before changing them. hypothesis seems to reuse objects across tests now. 04 April 2019, 13:14:57 UTC
81a9954 Don't leak origin ids to the journal. 04 April 2019, 09:47:18 UTC
e9a3198 api.server: Add tests around send_metric function 03 April 2019, 15:56:49 UTC
1a401c0 api.server: Make send_metric be in charge of the metric parsing 03 April 2019, 14:20:12 UTC
7d6d894 api.server: Use constants for all metrics 03 April 2019, 13:50:26 UTC
1da7b50 api.server: Rename send_metric as we really send only 1 metric 03 April 2019, 13:50:26 UTC
ff05590 api.server: Rename constant 03 April 2019, 13:38:18 UTC
2f1e763 api.server: Refactor repetition into a send_metrics function 03 April 2019, 13:06:02 UTC
6dee5f5 api.server: Fix wrong api call 03 April 2019, 13:06:02 UTC
04792f8 server: Add metrics on tool_add endpoint 03 April 2019, 13:06:02 UTC
ee934b6 storage: Make tool_add endpoint return a list instead of a generator This aligns with other endpoints and allow to extract metrics easily 03 April 2019, 13:06:02 UTC
9b35b2d server: Add metrics on origin_metadata_add & metadata_provider_add 03 April 2019, 13:06:02 UTC
6064a31 api.{client,server}: Remove dead code about entity 03 April 2019, 13:06:02 UTC
907c4ad api.server: Add metrics on origin_add and origin_add_one 03 April 2019, 13:06:02 UTC
b7d9896 api.server: Add metrics to origin_visit_add 03 April 2019, 13:06:02 UTC
e357a38 api.server: Include the encoding step when timing 03 April 2019, 13:06:02 UTC
bb19ce3 server.api: Fix metric names respecting prometheus conventions [1] [1] https://prometheus.io/docs/practices/naming/ 03 April 2019, 13:06:02 UTC
4518363 api.server.process_metrics: Skip processing when value is 0 03 April 2019, 13:06:02 UTC
cb7b9ee api.server: Rename to process_metrics function name 03 April 2019, 13:06:02 UTC
529c4be storage: Fix typo in variable name 03 April 2019, 13:06:02 UTC
ce999b5 api.server: Exploit new endpoint to compute metrics 03 April 2019, 13:06:01 UTC
f18af30 swh.storage: Adapt and unify _add endpoints 03 April 2019, 13:06:01 UTC
ddd1835 api.server: Send computed metrics 03 April 2019, 12:57:30 UTC
007f3de storage*.snapshot_add: Return summary 03 April 2019, 12:57:30 UTC
ab7f008 storage*.release_add: Return summary 03 April 2019, 12:53:50 UTC
01b8a9a storage.in_memory: Fix missing filtering on release_add 03 April 2019, 12:53:50 UTC
f366446 storage*.revision_add: Return summary 03 April 2019, 12:53:50 UTC
fb4be03 storage: Align implementations to compute correct metrics It was simpler to return the correct number instead of making the in-memory returns wrong results. 03 April 2019, 12:53:50 UTC
25da407 directory_add: Normalize metrics keys 03 April 2019, 12:53:50 UTC
cd78364 content_add: Normalize the summary keys 03 April 2019, 12:53:50 UTC
b341446 api.server.directory_add: Add counter metrics 03 April 2019, 12:53:50 UTC
ecbb611 storage*.directory_add: Return summary 03 April 2019, 12:53:50 UTC
71bd5bf storage.in_memory.content_add: Adapt implementation to send summary 03 April 2019, 12:53:50 UTC
a284ec0 storage: Update tests to check the summary result act as expected 03 April 2019, 12:53:50 UTC
ee62f46 api.server: Remove encode step from metrics 03 April 2019, 12:53:49 UTC
7f798bb api.server: Update docstrings on content_add to explicit the output 03 April 2019, 12:53:49 UTC
3e45179 Install counter metrics 03 April 2019, 12:53:49 UTC
2539858 api.server: Remove timed metric on the get_storage function 03 April 2019, 12:53:49 UTC
86308f6 Make snapshot_add take an iterable of snapshot. For uniformity with other _add() endpoints (except origin_visit_add). Noone uses the new signature of snapshot_add except the tests yet, so it's the perfect time to make this breaking change. 03 April 2019, 12:47:02 UTC
1ddb145 Use sha1 instead of bigint as FK from origin_visit to snapshot (part 3: cleanup) 01 April 2019, 13:21:24 UTC
7b56701 Use sha1 instead of bigint as FK from origin_visit to snapshot (part 2: backfill + start using the new colum for reading) 01 April 2019, 13:21:24 UTC
a150fdf Use sha1 instead of bigint as FK from origin_visit to snapshot (part 1: add new column) 01 April 2019, 13:17:34 UTC
480e098 Fix import. 01 April 2019, 13:03:53 UTC
3c849b5 Remove lingering debug print 28 March 2019, 17:41:19 UTC
742dd4f Split Storage.snapshot_add (add the snapshot + update the origin_visit) `snapshot_add(origin, visit, snap)` becomes `snapshot_add(origin)` + `origin_visit_update(origin, visit, snapshot_id=snap['id'])` 28 March 2019, 15:01:49 UTC
3457207 Add a new argument snapshot_id to origin_visit_update, and make all its arguments optional. 28 March 2019, 12:27:33 UTC
246855c Add a new JournalWriter interface, which is notified by swh-storage before writing to pgsql. 28 March 2019, 10:42:27 UTC
f734c4e api.server: Remove unneeded stats.increment call as this is already done further down the stack 28 March 2019, 08:58:54 UTC
3c2dfc0 swh.storage.api.server: Add metrics to storage endpoints 27 March 2019, 19:24:56 UTC
3a7f8a9 Add @timed decorator around all api.server endpoints 26 March 2019, 17:49:33 UTC
c47f92a storage: Add a timed decoration to count calls and time it 26 March 2019, 14:19:43 UTC
aaab31c Mark the node id columns as not null for directory, revision and snapshot This is an oversight from the migration to split indexes. 25 March 2019, 15:31:28 UTC
4ed7d0a API: refactor the /directory/ls endpoint use the generic POST based implementation. 18 March 2019, 15:58:11 UTC
97981b2 API: simplify a bit the RemoteStorage class set the exception class as class attribute wich allows to get rid of the __init__ overloading. 18 March 2019, 15:57:14 UTC
8bbbf9f Add an helper function to list all origins in the storage. 11 March 2019, 13:20:52 UTC
c533d6e Double the timeout of revision_get. Metadata indexers often hit the limit. 27 February 2019, 09:42:29 UTC
a1b8387 api.server: Fix wrong exception type 21 February 2019, 13:59:02 UTC
b4f2042 storage.cli: Fix cli entry point name to the expected name (setup.py) 21 February 2019, 12:43:53 UTC
95b0b42 api.server: Use the right Exception for the job 21 February 2019, 12:28:51 UTC
247ab97 test_server: Refactor and fix issue for pytest on python3.5 Prior to this commit, the build failed with: TypeError: argument should be string, bytes or integer, not LocalPath 21 February 2019, 12:23:36 UTC
a2db5ef api.server: Remove unused import 21 February 2019, 11:21:42 UTC
b38ecc0 swh.storage.cli: Migrate the api server startup in swh.storage.cli 21 February 2019, 11:21:11 UTC
2d500d1 api.wsgi: Open wsgi entrypoint and check config at startup time Related T1533 21 February 2019, 11:21:10 UTC
750e292 api.server: Remove implicit config from Also: - add tests to the loading checks - rename run_from_webserver to make_app_from_configfile Related T1533 21 February 2019, 11:21:10 UTC
2696b47 api.server: Make the api server load and check its configuration Related T1533 21 February 2019, 11:21:10 UTC
006d102 Double the timeout of snapshot_get_latest. Metadata indexers often hit the limit. 21 February 2019, 09:18:50 UTC
0b10c28 Remove debian packaging from master branch Related T1532 19 February 2019, 11:05:46 UTC
152cb52 Move origin_get_range's right after origin_get. 15 February 2019, 14:10:09 UTC
a94451a api/server: Do not read configuration at each request 13 February 2019, 22:55:12 UTC
e2c4d38 storage: Add origin_count method Related T1463 12 February 2019, 13:25:54 UTC
1efbe5c Fix test to work with the latest version of swh.core. 12 February 2019, 13:14:14 UTC
e59eb38 Make Storage.origin_get support a list of origins, like other Storage.*_get methods. Backward compatibility is preserved. 07 February 2019, 14:38:01 UTC
eeecf6f Stop using _to_bytes functions. 01 February 2019, 14:02:21 UTC
8cb3ca2 Use the BaseDb (and friends) from swh-core since it has migrated there. 28 January 2019, 16:31:19 UTC
4c49b3f storage.in_memory: Fix unknown revision handling in revision_log method 25 January 2019, 15:37:03 UTC
back to top