Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Remove obsolete RoomEventsStoreTestCase #13200

Merged
merged 3 commits into from
Jul 7, 2022

Conversation

arkamar
Copy link
Contributor

@arkamar arkamar commented Jul 6, 2022

This method does not exist in HomeServer since version v0.6.0, where
it was removed in commit 3c77d13 - Kill off synapse.api.events.*.
The method was basically replaced with get_event_builder_factory
before mentioned removal, except this one place, most probably because
all tests are prefixed with STALE_ and therefore they are silently
skipped. They were moved to STALE_ in version v0.5.0 in commit
2fcce3b - Remove stale tests.

Tests from RoomEventsStoreTestCase class are not used for last 8
years, I believe the best would be to remove them entirely.

Pull Request Checklist

  • Pull request is based on the develop branch
  • Pull request includes a changelog file. The entry should:
    • Be a short description of your change which makes sense to users. "Fixed a bug that prevented receiving messages from other servers." instead of "Moved X method from EventStore to EventWorkerStore.".
    • Use markdown where necessary, mostly for code blocks.
    • End with either a period (.) or an exclamation mark (!).
    • Start with a capital letter.
    • Feel free to credit yourself, by adding a sentence "Contributed by @github_username." or "Contributed by [Your Name]." to the end of the entry.
  • Pull request includes a sign off
  • Code style is correct
    (run the linters)

@arkamar arkamar requested a review from a team as a code owner July 6, 2022 16:25
@DMRobertson
Copy link
Contributor

Tests from RoomEventsStoreTestCase class are not used for last 8
years, I believe the best would be to remove them entirely.

Entirely agreed. Would you be willing to change this PR to do so?

@DMRobertson DMRobertson added the X-Awaiting-Changes A contributed PR which needs changes and re-review before it can be merged label Jul 7, 2022
@arkamar
Copy link
Contributor Author

arkamar commented Jul 7, 2022

Yes, of course :)

@arkamar arkamar changed the title RoomEventsStoreTestCase cannot call get_event_factory method Remove obsolete RoomEventsStoreTestCase Jul 7, 2022
This method does not exist in `HomeServer` since version `v0.6.0`, where
it was removed in commit 3c77d13 - `Kill off synapse.api.events.*`.
The method was basically replaced with `get_event_builder_factory`
before mentioned removal, except this one place, most probably because
all tests are prefixed with `STALE_` and therefore they are silently
skipped. They were moved to `STALE_` in version `v0.5.0` in commit
2fcce3b - `Remove stale tests`.

Tests from `RoomEventsStoreTestCase` class are not used for last 8
years, I believe the best would be to remove them entirely.

Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
@arkamar
Copy link
Contributor Author

arkamar commented Jul 7, 2022

I don't know why https://github.com/matrix-org/synapse/runs/7231544896?check_suite_focus=true fails. Is it really related to my change? Anyway, it seems I cannot rerun the job.

@squahtx squahtx removed the X-Awaiting-Changes A contributed PR which needs changes and re-review before it can be merged label Jul 7, 2022
Copy link
Contributor

@squahtx squahtx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know why https://github.com/matrix-org/synapse/runs/7231544896?check_suite_focus=true fails. Is it really related to my change? Anyway, it seems I cannot rerun the job.

That test has been flaky lately. After rerunning the job, it passes now.


Looks good, thank you for your contribution!

@squahtx squahtx merged commit bb20113 into matrix-org:develop Jul 7, 2022
@arkamar arkamar deleted the room-event-store branch July 7, 2022 13:04
@arkamar
Copy link
Contributor Author

arkamar commented Jul 7, 2022

Thanks :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants