Prior to this commit, lister did create origins as well in the archive
(swh-storage's db). Now, we plan to only schedule those origins for ingestion
(and we let the loaders do the actual creation).
Details
tox
Then swh-docker-dev through multiple runs.
First run:
- checkout origin/master (without this diff)
- Add dummy/witness new task type loader-gnu (for the listing to actually succeed, implementation detail of the current lister/loader's status)
- Run gnu lister through scheduler
- Check swh-scheduler db (new tasks added)
- Check swh-storage db (new origins)
- Check swh-lister db (filled-in cache)
Second run:
- checkout this diff
- Add dummy/witness new task type loader-gnu
- Run gnu lister through scheduler
- Check swh-scheduler db (new tasks added)
- Check swh-storage db (no new origins as this behavior got removed here so \m/)
- Check swh-lister db (still filled-in cache)
Diff Detail
- Repository
- rDLS Listers
- Branch
- master
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 6199 Build 8553: tox-on-jenkins Jenkins Build 8552: arc lint + arc unit
Event Timeline
swh/lister/core/lister_base.py | ||
---|---|---|
460 | why delete this line from the docstring? Looks like it's still an expected argument to the method. |
swh/lister/core/lister_base.py | ||
---|---|---|
460 | It's a mistep. I'm also trying to clarify some docstrings. |
swh/lister/core/lister_base.py | ||
---|---|---|
387 | I think there is no need of this method anymore |
swh/lister/core/lister_base.py | ||
---|---|---|
387 | indeed. |
New:
- lister_base: Remove no longer used method
- lister_base: Clarify docstrings
Rework commit message
- lister.core: Stop creating origins when scheduling tasks
Build is green
See https://jenkins.softwareheritage.org/job/DLS/job/tox/179/ for more details.
swh/lister/core/lister_base.py | ||
---|---|---|
470 | As @olasd pointed out, this still feels convoluted. It seems that the current implementation of this method tries to avoid duplication in scheduling tasks. This needs some refactoring which i don't want to drag within that diff right now though. |
Build is green
See https://jenkins.softwareheritage.org/job/DLS/job/tox/183/ for more details.
Build is green
See https://jenkins.softwareheritage.org/job/DLS/job/tox/184/ for more details.