Commits in the last month made these endpoints more consistent with
the other ones (though not completely), so these tests don't need to
be skipped anymore.
Depends on D4397.
Differential D4399
Un-skip some ctags and license storage tests. vlorentz on Nov 3 2020, 1:12 PM. Authored by
Details
Commits in the last month made these endpoints more consistent with Depends on D4397.
Diff Detail
Event TimelineComment Actions Build is green Patch application report for D4399 (id=15582)Could not rebase; Attempt merge onto 94c8259193... Updating 94c8259..ffd1588 Fast-forward sql/upgrades/133.sql | 177 ++++++++++++++++++++++++++ swh/indexer/cli.py | 2 +- swh/indexer/ctags.py | 8 +- swh/indexer/fossology_license.py | 9 +- swh/indexer/indexer.py | 57 +++++---- swh/indexer/journal_client.py | 1 - swh/indexer/metadata.py | 31 ++--- swh/indexer/mimetype.py | 9 +- swh/indexer/origin_head.py | 4 +- swh/indexer/sql/30-schema.sql | 2 +- swh/indexer/sql/50-func.sql | 197 +++++++++++------------------ swh/indexer/storage/__init__.py | 56 +++------ swh/indexer/storage/db.py | 34 +++-- swh/indexer/storage/in_memory.py | 40 +++--- swh/indexer/storage/interface.py | 35 ++---- swh/indexer/tests/storage/test_storage.py | 199 ++++++++---------------------- swh/indexer/tests/test_cli.py | 2 +- swh/indexer/tests/test_indexer.py | 20 ++- swh/indexer/tests/test_journal_client.py | 16 +-- swh/indexer/tests/test_metadata.py | 6 +- swh/indexer/tests/test_origin_head.py | 2 +- swh/indexer/tests/utils.py | 7 +- 22 files changed, 419 insertions(+), 495 deletions(-) create mode 100644 sql/upgrades/133.sql Changes applied before testcommit ffd1588d767b93efdbc5a18011bf35f9daeef51e Author: Valentin Lorentz <vlorentz@softwareheritage.org> Date: Tue Nov 3 13:11:48 2020 +0100 Un-skip some ctags and license storage tests. Commits in the last month made these endpoints more consistent with the other ones (though not completely), so these tests don't need to be skipped anymore. commit 6e8a901b95f3852a1b90611b1e1068d79ae6063d Author: Valentin Lorentz <vlorentz@softwareheritage.org> Date: Tue Nov 3 12:50:31 2020 +0100 Remove conflict_update/policy_update option. By removing the False/ignore-dups behavior, which we didn't use. The main motivation is to make `_add` endpoints write to Kafka in a future commit, as Kafka's semantics are closer to True/update-dups than False/ignore-dups. See https://jenkins.softwareheritage.org/job/DCIDX/job/tests-on-diff/104/ for more details. Comment Actions Build is green Patch application report for D4399 (id=15584)Rebasing onto 94c8259193... Current branch diff-target is up to date. Changes applied before testcommit 2e044e3b0fd373ab94b35aca6ed7df0e6bbe040e Author: Valentin Lorentz <vlorentz@softwareheritage.org> Date: Tue Nov 3 13:11:48 2020 +0100 Un-skip some ctags and license storage tests. Commits in the last month made these endpoints more consistent with the other ones (though not completely), so these tests don't need to be skipped anymore. commit 6022e53417f104f7ddd642d3c20ce7f8a98b6e3e Author: Valentin Lorentz <vlorentz@softwareheritage.org> Date: Tue Nov 3 12:50:31 2020 +0100 Remove conflict_update/policy_update option. By removing the False/ignore-dups behavior, which we didn't use. The main motivation is to make `_add` endpoints write to Kafka in a future commit, as Kafka's semantics are closer to True/update-dups than False/ignore-dups. See https://jenkins.softwareheritage.org/job/DCIDX/job/tests-on-diff/106/ for more details. Comment Actions This diff contains one commit too much (the one from the previous diff which is already too long). Cheers, Comment Actions Build is green Patch application report for D4399 (id=15588)Could not rebase; Attempt merge onto 94c8259193... Updating 94c8259..bb47843 Fast-forward sql/upgrades/133.sql | 184 +++++++++++++++++++++++++++ swh/indexer/cli.py | 2 +- swh/indexer/ctags.py | 8 +- swh/indexer/fossology_license.py | 9 +- swh/indexer/indexer.py | 57 +++++---- swh/indexer/journal_client.py | 1 - swh/indexer/metadata.py | 31 ++--- swh/indexer/mimetype.py | 9 +- swh/indexer/origin_head.py | 4 +- swh/indexer/sql/30-schema.sql | 2 +- swh/indexer/sql/50-func.sql | 198 +++++++++++------------------ swh/indexer/storage/__init__.py | 56 +++------ swh/indexer/storage/db.py | 34 +++-- swh/indexer/storage/in_memory.py | 40 +++--- swh/indexer/storage/interface.py | 35 ++---- swh/indexer/tests/storage/test_storage.py | 199 ++++++++---------------------- swh/indexer/tests/test_cli.py | 2 +- swh/indexer/tests/test_indexer.py | 20 ++- swh/indexer/tests/test_journal_client.py | 16 +-- swh/indexer/tests/test_metadata.py | 6 +- swh/indexer/tests/test_origin_head.py | 2 +- swh/indexer/tests/utils.py | 7 +- 22 files changed, 426 insertions(+), 496 deletions(-) create mode 100644 sql/upgrades/133.sql Changes applied before testcommit bb47843eded6bbc0cbb94cd86f41c612bd20f8f5 Author: Valentin Lorentz <vlorentz@softwareheritage.org> Date: Tue Nov 3 13:11:48 2020 +0100 Un-skip some ctags and license storage tests. Commits in the last month made these endpoints more consistent with the other ones (though not completely), so these tests don't need to be skipped anymore. commit e0b2ec8bf38dc195c80000dc01040158a0b69d47 Author: Valentin Lorentz <vlorentz@softwareheritage.org> Date: Tue Nov 3 14:21:41 2020 +0100 Remove conflict_update option from _add() endpoints. By removing the False behavior, which we didn't use in practice, and was removed from the indexers in the previous commit. The main motivation is to make _add endpoints write to Kafka in a future commit, as Kafka's semantics are closer to conflict_update=True than conflict_update=False. commit 72528376f5dbd22fa915c0fac7c0853906f1d38b Author: Valentin Lorentz <vlorentz@softwareheritage.org> Date: Tue Nov 3 14:19:23 2020 +0100 Remove conflict_update/policy_update option from BaseIndexer.run() By removing the False/ignore-dups behavior, which we didn't use. The main motivation is to make _add endpoints write to Kafka in a future commit, as Kafka's semantics are closer to True/update-dups than False/ignore-dups. See https://jenkins.softwareheritage.org/job/DCIDX/job/tests-on-diff/108/ for more details. Comment Actions thanks. Now though you allow tests to run on ctags as explained in the description. But you inhibit from for the license indexer... The description should mention this as well. Comment Actions No, I don't. I made it inherit from StorageETypeTester which *adds* tests, then mark some of them as skipped. Comment Actions
ok, i misread. Comment Actions Build is green Patch application report for D4399 (id=15591)Could not rebase; Attempt merge onto 94c8259193... Updating 94c8259..e2835bf Fast-forward sql/upgrades/133.sql | 184 +++++++++++++++++++++++++++ swh/indexer/cli.py | 2 +- swh/indexer/ctags.py | 8 +- swh/indexer/fossology_license.py | 9 +- swh/indexer/indexer.py | 57 +++++---- swh/indexer/journal_client.py | 1 - swh/indexer/metadata.py | 31 ++--- swh/indexer/mimetype.py | 9 +- swh/indexer/origin_head.py | 4 +- swh/indexer/sql/30-schema.sql | 2 +- swh/indexer/sql/50-func.sql | 198 +++++++++++------------------ swh/indexer/storage/__init__.py | 56 +++------ swh/indexer/storage/db.py | 34 +++-- swh/indexer/storage/in_memory.py | 40 +++--- swh/indexer/storage/interface.py | 35 ++---- swh/indexer/tests/storage/test_storage.py | 199 ++++++++---------------------- swh/indexer/tests/test_cli.py | 2 +- swh/indexer/tests/test_indexer.py | 20 ++- swh/indexer/tests/test_journal_client.py | 16 +-- swh/indexer/tests/test_metadata.py | 6 +- swh/indexer/tests/test_origin_head.py | 2 +- swh/indexer/tests/utils.py | 7 +- 22 files changed, 426 insertions(+), 496 deletions(-) create mode 100644 sql/upgrades/133.sql Changes applied before testcommit e2835bfff6baffd9a0a998ac4a1dc6d67326d950 Author: Valentin Lorentz <vlorentz@softwareheritage.org> Date: Tue Nov 3 13:11:48 2020 +0100 Un-skip some ctags and license storage tests. Commits in the last month made these endpoints more consistent with the other ones (though not completely), so these tests don't need to be skipped anymore. commit 1127804dec29b1217c518ec5e3c4e64aeeb41d1b Author: Valentin Lorentz <vlorentz@softwareheritage.org> Date: Tue Nov 3 14:21:41 2020 +0100 Remove conflict_update option from _add() endpoints. By removing the False behavior, which we didn't use in practice, and was removed from the indexers in the previous commit. The main motivation is to make _add endpoints write to Kafka in a future commit, as Kafka's semantics are closer to conflict_update=True than conflict_update=False. commit 8e69633f639e31cf5efa3edd784397b351d3b2db Author: Valentin Lorentz <vlorentz@softwareheritage.org> Date: Tue Nov 3 14:19:23 2020 +0100 Remove conflict_update/policy_update option from BaseIndexer.run() By removing the False/ignore-dups behavior, which we didn't use. The main motivation is to make _add endpoints write to Kafka in a future commit, as Kafka's semantics are closer to True/update-dups than False/ignore-dups. See https://jenkins.softwareheritage.org/job/DCIDX/job/tests-on-diff/111/ for more details. |