Skip to content

Conversation

@richvdh
Copy link
Member

@richvdh richvdh commented Dec 7, 2025

Fixes element-hq/element-desktop#2697

Review commit-by-commit

... because comments are not subject to rationing.
* use a single `logger` instance to do the prefixing
* use `JSON.stringify` on the checkpoints so that the rageshakes are useful
* distinguish between logger.warn and logger.debug
* emit some logs if the crawler loop fails
The problem with checking if the database is empty in `onSync` is that, by the
time we get there, it won't be.

Instead let's remember if the db was empty in `init`, and then once a sync
completes, we can add the checkpoints.
@richvdh
Copy link
Member Author

richvdh commented Dec 8, 2025

I'm going to skip the coverage gate on this, because it's mostly complaining about me tweaking the log statements on otherwise untested code. Getting them covered wouldn't be a good use of time.

@richvdh richvdh added the Z-Skip-Coverage Skip SonarQube coverage for this PR label Dec 8, 2025
@richvdh richvdh enabled auto-merge December 8, 2025 12:41
@richvdh richvdh disabled auto-merge December 8, 2025 12:41
@richvdh richvdh enabled auto-merge December 8, 2025 12:41
@richvdh richvdh added this pull request to the merge queue Dec 8, 2025
Merged via the queue into develop with commit 2fb0bf6 Dec 8, 2025
43 of 45 checks passed
@richvdh richvdh deleted the rav/fix_indexer branch December 8, 2025 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-Defect Z-Skip-Coverage Skip SonarQube coverage for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Seshat gets stuck indexing rooms (maybe due to failing to retrieve keys from online backup in order to index messages)

3 participants