item names take a long time to be indexed #5

Open
opened 2024-06-19 09:24:19 +00:00 by jean-daricade · 2 comments

In December 2023 the item vtmadqvhkhiabiqz was created and can be found by searching the name.

The tests rely on that for a number of basic methods. However the delay in indexing new items increased significantly in 2024. For instance eyvmdqnhcjhfziqs could not be found hours after being created.

This was discovered by tests such as

$ poetry run pytest -s --verbose -k test_create_entity --log-cli-level=DEBUG .
============================================================================ FAILURES ============================================================================
_________________________________________________________________ TestPlugin.test_create_entity __________________________________________________________________

self = <f3wikidatabot.tests.test_plugin.TestPlugin object at 0x74bd81142f60>

    def test_create_entity(self):
        bot = Bot.factory(
            [
                "--test",
                "--user=F3BotCI",
                "--verbose",
            ]
        )
        plugin = Plugin(bot, bot.args)
        name = "Q_" + WikidataHelper.random_name()
        log.debug(f"looking for {name}")
        item = plugin.__getattribute__(name)
>       assert 1 == len(plugin.bot.entities["item"])
E       assert 1 == 0
E        +  where 0 = len({})

f3wikidatabot/tests/test_plugin.py:54: AssertionError
In December 2023 the item [vtmadqvhkhiabiqz](https://test.wikidata.org/wiki/Q233313) was created and [can be found by searching the name](https://test.wikidata.org/w/index.php?go=Go&search=vtmadqvhkhiabiqz&search=vtmadqvhkhiabiqz&title=Special%3ASearch&ns0=1&ns120=1). The tests rely on that for a number of basic methods. However the delay in indexing new items increased significantly in 2024. For instance [eyvmdqnhcjhfziqs](https://test.wikidata.org/wiki/Q234771) could [not be found](https://test.wikidata.org/w/index.php?search=eyvmdqnhcjhfziqs&title=Special:Search&profile=advanced&fulltext=1&ns0=1&ns120=1) hours after being created. This was discovered by tests such as ```sh $ poetry run pytest -s --verbose -k test_create_entity --log-cli-level=DEBUG . ============================================================================ FAILURES ============================================================================ _________________________________________________________________ TestPlugin.test_create_entity __________________________________________________________________ self = <f3wikidatabot.tests.test_plugin.TestPlugin object at 0x74bd81142f60> def test_create_entity(self): bot = Bot.factory( [ "--test", "--user=F3BotCI", "--verbose", ] ) plugin = Plugin(bot, bot.args) name = "Q_" + WikidataHelper.random_name() log.debug(f"looking for {name}") item = plugin.__getattribute__(name) > assert 1 == len(plugin.bot.entities["item"]) E assert 1 == 0 E + where 0 = len({}) f3wikidatabot/tests/test_plugin.py:54: AssertionError ```
Author
Owner
Bug report sent to wikidata at https://www.wikidata.org/wiki/Wikidata:Report_a_technical_problem#test.wikidata.org_does_not_index_new_items_label

It was triaged to https://www.wikidata.org/wiki/Wikidata:Report_a_technical_problem/WDQS_and_Search#test.wikidata.org_does_not_index_new_items_label

It is the first issue related to test.wikidata.org but there were other similar issues on wikidata itself, dated last month. There is hope it will be looked at. In any case it is not an already known issue.

It was triaged to https://www.wikidata.org/wiki/Wikidata:Report_a_technical_problem/WDQS_and_Search#test.wikidata.org_does_not_index_new_items_label It is the first issue related to test.wikidata.org but there were other similar issues on wikidata itself, dated last month. There is hope it will be looked at. In any case it is not an already known issue.
Sign in to join this conversation.
No labels
release
v2
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference: f3/f3-wikidata-bot#5
No description provided.