Second part of getting rid of the SWHConfig mixin.
Related to client code now
Related to T1532
Paths
| Differential D3957 Authored by ardumont on Sep 15 2020, 6:36 PM.
Details
Summary Second part of getting rid of the SWHConfig mixin. Related to T1532 Test Plan tox
Diff Detail
Event TimelineHerald added a reviewer: Reviewers. · View Herald TranscriptSep 15 2020, 6:36 PM2020-09-15 18:36:21 (UTC+2) Comment Actions Build is green Patch application report for D3957 (id=13936)Could not rebase; Attempt merge onto f41a5a6c06... Updating f41a5a6c..05a4a5f9 Fast-forward requirements-swh.txt | 2 +- swh/deposit/client.py | 17 ++----- swh/deposit/config.py | 47 ++++++++----------- swh/deposit/loader/checker.py | 26 ++++------- swh/deposit/tests/api/test_deposit_schedule.py | 18 +++----- swh/deposit/tests/conftest.py | 64 +++++++++++++------------- swh/deposit/tests/loader/conftest.py | 37 ++++----------- swh/deposit/tests/loader/test_checker.py | 8 ++-- swh/deposit/tests/loader/test_tasks.py | 12 ++--- 9 files changed, 91 insertions(+), 140 deletions(-) Changes applied before testcommit 05a4a5f9685ec157e7d6aa54e5591d56b3450044 Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Tue Sep 15 18:34:38 2020 +0200 config: Clarify configuration setup client code Related to T1532 commit fbd84db9424b8f8b2ea102c5f84ef04b78d90b8c Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Tue Sep 15 10:51:37 2020 +0200 config: Clarify configuration setup for server code Mixin SWHConfig is deprecated. This unplugs the inheritance to that class which has becomes too much complicated to follow. Related to T1532 See https://jenkins.softwareheritage.org/job/DDEP/job/tests-on-diff/89/ for more details. Harbormaster completed remote builds in B15147: Diff 13936.Sep 15 2020, 6:40 PM2020-09-15 18:40:31 (UTC+2)
This revision is now accepted and ready to land.Sep 16 2020, 4:23 PM2020-09-16 16:23:00 (UTC+2) Comment Actions Build is green Patch application report for D3957 (id=13991)Could not rebase; Attempt merge onto f41a5a6c06... Updating f41a5a6c..e5eacbbf Fast-forward requirements-swh.txt | 2 +- swh/deposit/api/private/deposit_read.py | 24 ---------- swh/deposit/client.py | 17 ++----- swh/deposit/config.py | 47 ++++++++----------- swh/deposit/loader/checker.py | 26 ++++------- swh/deposit/tests/api/test_deposit_schedule.py | 18 +++----- swh/deposit/tests/conftest.py | 64 +++++++++++++------------- swh/deposit/tests/loader/conftest.py | 37 ++++----------- swh/deposit/tests/loader/test_checker.py | 8 ++-- swh/deposit/tests/loader/test_tasks.py | 12 ++--- 10 files changed, 91 insertions(+), 164 deletions(-) Changes applied before testcommit e5eacbbf8b3a12def6edb41f3ca4be20e1ba52e6 Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Tue Sep 15 18:34:38 2020 +0200 config: Clarify configuration setup path for the client code Related to T1532 commit 7f5241191352fcb170ced98bed745827cde63cbd Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Tue Sep 15 10:51:37 2020 +0200 config: Clarify the configuration setup path for the server part Mixin SWHConfig is deprecated. Related to T1532 See https://jenkins.softwareheritage.org/job/DDEP/job/tests-on-diff/91/ for more details. Harbormaster completed remote builds in B15203: Diff 13991.Sep 16 2020, 6:54 PM2020-09-16 18:54:54 (UTC+2) Closed by commit rDDEPe5eacbbf8b3a: config: Clarify configuration setup path for the client code (authored by ardumont). · Explain WhySep 17 2020, 9:22 AM2020-09-17 09:22:42 (UTC+2) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 13991 swh/deposit/client.py
swh/deposit/loader/checker.py
swh/deposit/tests/loader/conftest.py
swh/deposit/tests/loader/test_checker.py
|
A parameterized test could be useful to ensure having visits (eventful/uneventful) in any order gives the expected result
Please have a look at the equivalent on the scheduler:
https://forge.softwareheritage.org/source/swh-scheduler/browse/master/swh/scheduler/tests/test_journal_client.py$418