In D3056#74217, @olasd wrote:Jeez. The check_rpc_serve context manager is so backwards it broke my brain a little. Took me quite a while to figure out that the thread actually runs the test rather than the server. I also think the synchronization between the test and the server initialization should be done more explicitly.
(but I don't really have a better thing to suggest right now)
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Feed Advanced Search
Advanced Search
Advanced Search
Apr 23 2020
Apr 23 2020
douardda added a comment to D3056: Deprecate the `config-path` argument of the `swh storage rpc-serve` command.
rebase
douardda committed rDJNLdc96335dbf5a: Normalize the get_journal_client() function (authored by douardda).
Normalize the get_journal_client() function
douardda committed rDJNL72ea87ccf784: Move get_journal_client function to swh.journal.client (authored by douardda).
Move get_journal_client function to swh.journal.client
Add a commit to "normalize" the get_journal_client() function
In D3044#73903, @ardumont wrote:I'd say it'd be neat to add some docstrings and type at the same time, don't you think?
douardda added a comment to D3040: Add a split_content argument to object_dicts() and objects() strategies.
In D3040#73644, @ardumont wrote:Technically, this sounds fine ;)
What is the new use case? Will we merge back the content topics into one or something?
Apr 22 2020
Apr 22 2020
douardda committed rDJNL42f4a89abc72: Extract kafka-related pytest fixtures in a pytest plugin module (authored by douardda).
Extract kafka-related pytest fixtures in a pytest plugin module
douardda updated the diff for D3043: Extract kafka-related pytest fixtures in a pytest plugin module.
improve commit message
douardda updated the diff for D3043: Extract kafka-related pytest fixtures in a pytest plugin module.
attempt to fix the mess
Also, @ardumont I agree with your other comments, but these will come later, if you may :-)
In D3043#73818, @ardumont wrote:It seems we duplicate the objects data (CONTENT, etc...) both in the pytest_plugin and in the journal_data module.
is that expected?
douardda renamed T2355: Make swh-journal independent from swh-storage or swh-objstorage from Merge parts of swh-journal in swh-storage to Make swh-journal independant from swh-storage or swh-objstorage.
Apr 21 2020
Apr 21 2020
douardda committed rDMOD1037e88d9738: Add a split_content argument to object_dicts() and objects() strategies (authored by douardda).
Add a split_content argument to object_dicts() and objects() strategies
douardda committed rDMODebd380779626: Add a blacklist_types argument to object_dicts() and objects() hypothesis… (authored by douardda).
Add a blacklist_types argument to object_dicts() and objects() hypothesis…
Fine for me. I agree the semantic of this date in the context of a deposit could be documented somehow (a simple comment may be enough).
douardda updated the diff for D3037: Add a blacklist_types argument to object_dicsts() and objects() hypothesis generators.
fix the test test_generation_blacklist
douardda updated the diff for D3037: Add a blacklist_types argument to object_dicsts() and objects() hypothesis generators.
typo in the commit message
douardda added inline comments to D3037: Add a blacklist_types argument to object_dicsts() and objects() hypothesis generators.
douardda updated the diff for D3037: Add a blacklist_types argument to object_dicsts() and objects() hypothesis generators.
Set the default value for blacklist_types to ("origin_visit_status",)
rebase *and* pick all the revisions involved
rebase
Apr 14 2020
Apr 14 2020
In D3010#72991, @douardda wrote:In D3010#72943, @ardumont wrote:In test_replay, get rid of test_storage_play and
test_storage_play_with_collision because these tests do require a proper
kafka setup to run, which we do not want to require kafka in the
swh.storage package.hu ho...
i'm not fine with getting rid of test_storage_play*.See for example D3015 which moves the hash collision policy within the retry proxy.
To ensure this continued to be ok, i've kept the test_storage_play_with_collision as is, only changed the test config with retry proxy and the test is green... (and it is, well locally because right now it's in diff).
My point is those are important tests.I understand, however, these 2 tests, as currently written, are too far "integration tests" rather than "unit tests". And it makes the testing stack too complex.
So IMHO we want "unit" tests dedicated to parts of this stack that handle collisions 9typically without kafka being involved, swh-storage side) where there are useful, and integration tests (in the docker-dev project typically) to check the whole stack behaves properly.
douardda committed rDSTO2cc263da971e: test: update storage tests to (future) swh.journal 0.0.30 (authored by douardda).
test: update storage tests to (future) swh.journal 0.0.30
rebase
In D3010#72943, @ardumont wrote:In test_replay, get rid of test_storage_play and
test_storage_play_with_collision because these tests do require a proper
kafka setup to run, which we do not want to require kafka in the
swh.storage package.hu ho...
i'm not fine with getting rid of test_storage_play*.See for example D3015 which moves the hash collision policy within the retry proxy.
To ensure this continued to be ok, i've kept the test_storage_play_with_collision as is, only changed the test config with retry proxy and the test is green... (and it is, well locally because right now it's in diff).
My point is those are important tests.
Apr 10 2020
Apr 10 2020
add the commit "cli: rename the command 'backfiller' as 'backfill'" in the diff
rebase and improved to make it also compatible with swj.journal 0.0.29
Apr 9 2020
Apr 9 2020
douardda updated the task description for T2355: Make swh-journal independent from swh-storage or swh-objstorage.
douardda updated the task description for T2355: Make swh-journal independent from swh-storage or swh-objstorage.
douardda triaged T2355: Make swh-journal independent from swh-storage or swh-objstorage as High priority.
Apr 8 2020
Apr 8 2020
douardda committed rDWCLIe5ef2a0dc305: Add a pyproject.toml file to target py37 for black (authored by douardda).
Add a pyproject.toml file to target py37 for black
douardda committed rDVAU915655a954cb: Add a pyproject.toml file to target py37 for black (authored by douardda).
Add a pyproject.toml file to target py37 for black
douardda committed rDSCH551ceac609a2: Add a pyproject.toml file to target py37 for black (authored by douardda).
Add a pyproject.toml file to target py37 for black
douardda committed rDSEAfc2c610b91da: Add a pyproject.toml file to target py37 for black (authored by douardda).
Add a pyproject.toml file to target py37 for black
douardda committed rDTSCN62be9f10d419: Add a pyproject.toml file to target py37 for black (authored by douardda).
Add a pyproject.toml file to target py37 for black
douardda committed rDTPL41d64147ee32: Add a pyproject.toml file to target py37 for black (authored by douardda).
Add a pyproject.toml file to target py37 for black
douardda committed rDOBJSed154b3dbcb3: Add a pyproject.toml file to target py37 for black (authored by douardda).
Add a pyproject.toml file to target py37 for black
douardda committed rDMOD94da0100a6d3: Add a pyproject.toml file to target py37 for black (authored by douardda).
Add a pyproject.toml file to target py37 for black
douardda committed rDLDSVN2ca3c6378519: Add a pyproject.toml file to target py37 for black (authored by douardda).
Add a pyproject.toml file to target py37 for black
douardda committed rDLDHGf287a46488ea: Add a pyproject.toml file to target py37 for black (authored by douardda).
Add a pyproject.toml file to target py37 for black
douardda committed rDLDBASE89828fa6c329: Add a pyproject.toml file to target py37 for black (authored by douardda).
Add a pyproject.toml file to target py37 for black
douardda committed rDLDGf4fcae5401c4: Add a pyproject.toml file to target py37 for black (authored by douardda).
Add a pyproject.toml file to target py37 for black
douardda committed rDLS29325c1d94bd: Add a pyproject.toml file to target py37 for black (authored by douardda).
Add a pyproject.toml file to target py37 for black
douardda committed rDJNL600f761d7892: Add a pyproject.toml file to target py37 for black (authored by douardda).
Add a pyproject.toml file to target py37 for black
douardda committed rDCIDX9081dd8d326d: Add a pyproject.toml file to target py37 for black (authored by douardda).
Add a pyproject.toml file to target py37 for black
douardda committed rDGRPH6a624018c10c: Add a pyproject.toml file to target py37 for black (authored by douardda).
Add a pyproject.toml file to target py37 for black
douardda committed rDDOCc1608e9fc2c2: Add a pyproject.toml file to target py37 for black (authored by douardda).
Add a pyproject.toml file to target py37 for black
douardda committed rDDEP1bc1732fded7: Add a pyproject.toml file to target py37 for black (authored by douardda).
Add a pyproject.toml file to target py37 for black
douardda committed rDSTOed4097c761bb: Add a pyproject.toml file to target py37 for black (authored by douardda).
Add a pyproject.toml file to target py37 for black
Enable black
Enable black
Enable black
Enable black
Enable black
Enable black
Enable black
Enable black
Enable black
Enable black
Enable black
Enable black
Enable black
Enable black
Enable black
Enable black
Enable black and pre-commit
Enable black
douardda committed rDSTO0fe46658cf7c: Fix Storage.origin_visit_update(); ensure it raises a StorageArgumentException (authored by douardda).
Fix Storage.origin_visit_update(); ensure it raises a StorageArgumentException
douardda committed rDJNLa68e800622b2: Remove useless deepcopy in the inmemory journal writer (authored by douardda).
Remove useless deepcopy in the inmemory journal writer
rephrase the commit msg
douardda committed rDSTOc51139ef9622: Make Storage.origin_visit_update() add an OriginVisit model entity in the… (authored by douardda).
Make Storage.origin_visit_update() add an OriginVisit model entity in the…