Details
- Reviewers
ardumont - Group Reviewers
Reviewers - Maniphest Tasks
- T1307: Remove mock storages used in tests.
T1432: Remove mock storages from the indexers - Commits
- rDCIDXfb34e1aabb2a: rm ctags mocks + add ctags to idx db + fix doc.
Diff Detail
- Repository
- rDCIDX Metadata indexer
- Branch
- ctags-mock
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 2893 Build 3659: tox-on-jenkins Jenkins Build 3658: arc lint + arc unit
Event Timeline
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DCIDX/job/tox/112/
See console output for more information: https://jenkins.softwareheritage.org/job/DCIDX/job/tox/112/console
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DCIDX/job/tox/114/
See console output for more information: https://jenkins.softwareheritage.org/job/DCIDX/job/tox/114/console
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DCIDX/job/tox/118/
See console output for more information: https://jenkins.softwareheritage.org/job/DCIDX/job/tox/118/console
Build is green
See https://jenkins.softwareheritage.org/job/DCIDX/job/tox/122/ for more details.
swh/indexer/storage/in_memory.py | ||
---|---|---|
170 | This is not pointless. So in the indexer storage, the function that add those data simply ignore the conflicted data (which should be exactly the same as before). In the end, only read operations are expected when we pass yet again on the same content. Why were we expected to pass on the same content, you might ask? As it's an implementation detail, in theory, you could implement this as you wish here as long as tests are fine ;) |
swh/indexer/storage/in_memory.py | ||
---|---|---|
170 |
ctags implementations are registered as tools, and rows from different tools do not conflict with each other: create unique index on content_ctags(id, hash_sha1(name), kind, line, lang, indexer_configuration_id); |
swh/indexer/storage/in_memory.py | ||
---|---|---|
170 |
Yes, i did that. What i meant was for the case same tool, same content, the computed data is the same. The also supposedly gain here is that there is no writes operation with this approach. So it's supposedly faster (we'd need metric to ensure that ;). Against what you proposed which would always write. Hoping this is clearer. |
Build is green
See https://jenkins.softwareheritage.org/job/DCIDX/job/tox/124/ for more details.
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DCIDX/job/tox/132/
See console output for more information: https://jenkins.softwareheritage.org/job/DCIDX/job/tox/132/console