This Diff breaks all existing loader tests.
Details
- Reviewers
ardumont - Group Reviewers
Reviewers - Maniphest Tasks
- T1307: Remove mock storages used in tests.
- Commits
- rDLDBASE9a0b8eb67516: Use the in-mem storage instead of mocks in BaseLoaderTest.
Diff Detail
- Repository
- rDLDBASE Generic VCS/Package Loader
- Branch
- inmem-storage
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 2543 Build 3159: tox-on-jenkins Jenkins Build 3158: arc lint + arc unit
Event Timeline
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DLDBASE/job/tox/18/
See console output for more information: https://jenkins.softwareheritage.org/job/DLDBASE/job/tox/18/console
The build is failing because this change depends on an unreleased version of swh.storage.
The build is failing because this change depends on an unreleased version of swh.storage.
I've just released one, meaning:
- tag repository
- build debian package (for consistency, 1 tag, 1 debian package so far)
- go to jenkins, trigger back the build on the latest master. Wait for it to complete. That picks up the publish step to pypi (it did ;)
So we should be able to trigger the build back now and this should be fine.
So we should be able to trigger the build back now and this should be fine.
Unfortuntately, not yet. Everything i said is ok.
But the storage got pushed to test.pypi.org... and not pypi.org...
But the storage got pushed to test.pypi.org... and not pypi.org...
Something was wrong in the deployment. douardda fixed it and now the new version got uploaded to pypi.
I restarted the build to check if everything is fine here.
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DLDBASE/job/tox/19/
See console output for more information: https://jenkins.softwareheritage.org/job/DLDBASE/job/tox/19/console
I restarted the build to check if everything is fine here.
BUILD has failed.
It's not fine.
There are real errors.
You did not check the test_loader.py module.
- Adapt test_loader.py to work without LoaderNoStorage. I removed most of the classes because it's pointless to have so much code just to test duplicated threeliner functions.
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DLDBASE/job/tox/20/
See console output for more information: https://jenkins.softwareheritage.org/job/DLDBASE/job/tox/20/console
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DLDBASE/job/tox/21/
See console output for more information: https://jenkins.softwareheritage.org/job/DLDBASE/job/tox/21/console
I removed most of the classes because it's pointless to have so much code just to test duplicated threeliner functions.
I disagree. It's not pointless. Well, it was not prior to this diff.
The point was to have enough coverage for others to be able to touch those with some parachute.
Now that you developed the real in-memory storage, those tests are no longer relevant.
So now, it's ok for those to go away. The in-memory storage is tested well enough ;)
Now it actually fails because it depends on another diff ( D680) ^^
I'll trust you on this ;)
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DLDBASE/job/tox/23/
See console output for more information: https://jenkins.softwareheritage.org/job/DLDBASE/job/tox/23/console