Skip to content

[pre-commit.ci] pre-commit autoupdate - #458

Merged
oleksandr-nc merged 1 commit into
mainfrom
pre-commit-ci-update-config
Aug 11, 2026
Merged

[pre-commit.ci] pre-commit autoupdate#458
oleksandr-nc merged 1 commit into
mainfrom
pre-commit-ci-update-config

Conversation

@pre-commit-ci

@pre-commit-ci pre-commit-ci Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

@oleksandr-nc

Copy link
Copy Markdown
Contributor

The failing stable32 • 🐍3.11 • PgSQL job here is not caused by this PR: test_get_conversations_modified_since is flaky. Talk captures X-Nextcloud-Talk-Modified-Before before it lazily creates the note-to-self/sample/changelog conversations, so on a slow runner those rooms land inside the 2s window the test checks. Fix in #459; this PR just needs a re-run once that is merged.

oleksandr-nc added a commit that referenced this pull request Aug 11, 2026
`test_get_conversations_modified_since` fails intermittently across the
matrix (seen on #458 and earlier on `main`), always as `assert not
[<Conversation name=Note to self>, <Conversation name=Let's get
started!>]`.

Talk captures `X-Nextcloud-Talk-Modified-Before` (T) at the *start* of
`getRooms` and only then dispatches `BeforeRoomsFetchEvent`
([RoomController.php:240-243](https://github.com/nextcloud/spreed/blob/main/lib/Controller/RoomController.php#L240)),
whose listeners create the note-to-self, sample and changelog
conversations the first time a user fetches rooms. Those rooms get a
`lastActivity` newer than the T already reported, and the server filter
is `lastActivity >= modifiedSince`. The test asks for `T + 2`, so it
only passes while that creation finishes inside 2 seconds. Measured on
an idle local server it already takes ~1.15 s.

Fetch the rooms once before the timed sequence so the lazy creation
happens outside the checked window.

Reproduced end to end by making sample creation exceed the margin
(Talk's `samples_directory`), then running the real test as a fresh
admin user: current test fails, patched test passes, same server and
conditions.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Improved conversation modification-date filtering tests by excluding
pre-existing default rooms from results.
* Synchronous and asynchronous conversation list behavior is now
validated more reliably.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Signed-off-by: Oleksandr Piskun <oleksandr2088@icloud.com>
updates:
- [github.com/PyCQA/isort: 9.0.0b1 → 9.0.0b2](PyCQA/isort@9.0.0b1...9.0.0b2)
- [github.com/tox-dev/pyproject-fmt: v2.26.0 → v2.27.0](tox-dev/pyproject-fmt@v2.26.0...v2.27.0)
- [github.com/astral-sh/ruff-pre-commit: v0.16.1 → v0.16.2](astral-sh/ruff-pre-commit@v0.16.1...v0.16.2)
@oleksandr-nc
oleksandr-nc force-pushed the pre-commit-ci-update-config branch from 6669f7b to 6c0ef73 Compare August 11, 2026 09:39
@oleksandr-nc
oleksandr-nc merged commit 931f6b0 into main Aug 11, 2026
12 checks passed
@oleksandr-nc
oleksandr-nc deleted the pre-commit-ci-update-config branch August 11, 2026 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant