in favor of the standard --config-file option of swh storage.
Attempt to write a couple of tests for the rpc-serve command.
Depends on D3055
Differential D3056
Deprecate the `config-path` argument of the `swh storage rpc-serve` command douardda on Apr 23 2020, 3:31 PM. Authored by
Details
in favor of the standard --config-file option of swh storage. Attempt to write a couple of tests for the rpc-serve command. Depends on D3055
Diff Detail
Event TimelineComment Actions Build is green Patch application report for D3056 (id=10860)Could not rebase; Attempt merge onto fe56005555... Updating fe56005..1904fa7 Fast-forward mypy.ini | 3 + swh/storage/backfill.py | 490 +++++++++++++++++++++++++++++++++++++ swh/storage/cli.py | 92 ++++++- swh/storage/tests/test_backfill.py | 160 ++++++++++++ swh/storage/tests/test_cli.py | 99 ++++++++ 5 files changed, 839 insertions(+), 5 deletions(-) create mode 100644 swh/storage/backfill.py create mode 100644 swh/storage/tests/test_backfill.py create mode 100644 swh/storage/tests/test_cli.py Changes applied before testcommit 1904fa77545acf9c7d9bb37e44c6b6ef9a6605be Author: David Douard <david.douard@sdfa3.org> Date: Thu Apr 23 15:27:28 2020 +0200 Deprecate the `config-path` argument of the `swh storage rpc-serve` command in favor of the standard `--config-file` option of `swh storage`. Attempt to write a couple of tests for the rpc-serve command. commit cd32cf42538ff256bed718fd747e289c9a311ebf Author: David Douard <david.douard@sdfa3.org> Date: Wed Apr 22 16:57:07 2020 +0200 Normalize the configuration file handling in the `swh storage` CLI command Almost every other swh package handles the loading of the config file from the main click command group of the package. So we make storage behaves the same. commit 698af8ca0028c5847326cf57f867608e533af9ed Author: David Douard <david.douard@sdfa3.org> Date: Fri Apr 10 11:03:21 2020 +0200 cli: rename the command 'backfiller' as 'backfill' for the sake of consistency. commit b2bba450aaa808406b024800dcd50b4778313903 Author: David Douard <david.douard@sdfa3.org> Date: Thu Apr 9 16:56:44 2020 +0200 Copy the backfiller component from swh-journal This componant makes more sense in the swh-storage package. See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/119/ for more details. Comment Actions 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) Comment Actions Build is green Patch application report for D3056 (id=10868)Could not rebase; Attempt merge onto fe56005555... Updating fe56005..851540b Fast-forward mypy.ini | 3 + swh/storage/backfill.py | 490 +++++++++++++++++++++++++++++++++++++ swh/storage/cli.py | 92 ++++++- swh/storage/tests/test_backfill.py | 160 ++++++++++++ swh/storage/tests/test_cli.py | 113 +++++++++ 5 files changed, 853 insertions(+), 5 deletions(-) create mode 100644 swh/storage/backfill.py create mode 100644 swh/storage/tests/test_backfill.py create mode 100644 swh/storage/tests/test_cli.py Changes applied before testcommit 851540b5335464bf32dfffc2d733af4ce8424edf Author: David Douard <david.douard@sdfa3.org> Date: Thu Apr 23 15:27:28 2020 +0200 Deprecate the `config-path` argument of the `swh storage rpc-serve` command in favor of the standard `--config-file` option of `swh storage`. Attempt to write a couple of tests for the rpc-serve command. commit cd32cf42538ff256bed718fd747e289c9a311ebf Author: David Douard <david.douard@sdfa3.org> Date: Wed Apr 22 16:57:07 2020 +0200 Normalize the configuration file handling in the `swh storage` CLI command Almost every other swh package handles the loading of the config file from the main click command group of the package. So we make storage behaves the same. commit 698af8ca0028c5847326cf57f867608e533af9ed Author: David Douard <david.douard@sdfa3.org> Date: Fri Apr 10 11:03:21 2020 +0200 cli: rename the command 'backfiller' as 'backfill' for the sake of consistency. commit b2bba450aaa808406b024800dcd50b4778313903 Author: David Douard <david.douard@sdfa3.org> Date: Thu Apr 9 16:56:44 2020 +0200 Copy the backfiller component from swh-journal This componant makes more sense in the swh-storage package. See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/120/ for more details. Comment Actions Build is green Patch application report for D3056 (id=10873)Could not rebase; Attempt merge onto fe56005555... Updating fe56005..e245a46 Fast-forward mypy.ini | 3 + swh/storage/backfill.py | 490 +++++++++++++++++++++++++++++++++++++ swh/storage/cli.py | 92 ++++++- swh/storage/tests/test_backfill.py | 160 ++++++++++++ swh/storage/tests/test_cli.py | 118 +++++++++ 5 files changed, 858 insertions(+), 5 deletions(-) create mode 100644 swh/storage/backfill.py create mode 100644 swh/storage/tests/test_backfill.py create mode 100644 swh/storage/tests/test_cli.py Changes applied before testcommit e245a465589fa24288bb62bd57aaf925d665c353 Author: David Douard <david.douard@sdfa3.org> Date: Thu Apr 23 15:27:28 2020 +0200 Deprecate the `config-path` argument of the `swh storage rpc-serve` command in favor of the standard `--config-file` option of `swh storage`. Attempt to write a couple of tests for the rpc-serve command. commit cd32cf42538ff256bed718fd747e289c9a311ebf Author: David Douard <david.douard@sdfa3.org> Date: Wed Apr 22 16:57:07 2020 +0200 Normalize the configuration file handling in the `swh storage` CLI command Almost every other swh package handles the loading of the config file from the main click command group of the package. So we make storage behaves the same. commit 698af8ca0028c5847326cf57f867608e533af9ed Author: David Douard <david.douard@sdfa3.org> Date: Fri Apr 10 11:03:21 2020 +0200 cli: rename the command 'backfiller' as 'backfill' for the sake of consistency. commit b2bba450aaa808406b024800dcd50b4778313903 Author: David Douard <david.douard@sdfa3.org> Date: Thu Apr 9 16:56:44 2020 +0200 Copy the backfiller component from swh-journal This componant makes more sense in the swh-storage package. See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/121/ for more details. Comment Actions A tad complicated to follow but that does the job, so fine by me.
Comment Actions Build is green Patch application report for D3056 (id=10876)Could not rebase; Attempt merge onto fe56005555... Updating fe56005..5fd9b56 Fast-forward mypy.ini | 3 + swh/storage/backfill.py | 490 +++++++++++++++++++++++++++++++++++++ swh/storage/cli.py | 92 ++++++- swh/storage/tests/test_backfill.py | 160 ++++++++++++ swh/storage/tests/test_cli.py | 119 +++++++++ 5 files changed, 859 insertions(+), 5 deletions(-) create mode 100644 swh/storage/backfill.py create mode 100644 swh/storage/tests/test_backfill.py create mode 100644 swh/storage/tests/test_cli.py Changes applied before testcommit 5fd9b563298f1068636ba57be10d2f1975f09781 Author: David Douard <david.douard@sdfa3.org> Date: Thu Apr 23 15:27:28 2020 +0200 Deprecate the `config-path` argument of the `swh storage rpc-serve` command in favor of the standard `--config-file` option of `swh storage`. Attempt to write a couple of tests for the rpc-serve command. commit cd32cf42538ff256bed718fd747e289c9a311ebf Author: David Douard <david.douard@sdfa3.org> Date: Wed Apr 22 16:57:07 2020 +0200 Normalize the configuration file handling in the `swh storage` CLI command Almost every other swh package handles the loading of the config file from the main click command group of the package. So we make storage behaves the same. commit 698af8ca0028c5847326cf57f867608e533af9ed Author: David Douard <david.douard@sdfa3.org> Date: Fri Apr 10 11:03:21 2020 +0200 cli: rename the command 'backfiller' as 'backfill' for the sake of consistency. commit b2bba450aaa808406b024800dcd50b4778313903 Author: David Douard <david.douard@sdfa3.org> Date: Thu Apr 9 16:56:44 2020 +0200 Copy the backfiller component from swh-journal This componant makes more sense in the swh-storage package. See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/124/ for more details. |