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

Fix failing room state endpoints (setting state twice) #1329

Closed
kegsay opened this issue Aug 24, 2020 · 13 comments
Closed

Fix failing room state endpoints (setting state twice) #1329

kegsay opened this issue Aug 24, 2020 · 13 comments
Labels
are-we-synapse-yet This issue or PR involves Sytests in AWSY good first issue Want to help with Dendrite? These are the issues to start with!

Comments

@kegsay
Copy link
Member

kegsay commented Aug 24, 2020

Sytests:

    × Setting state twice is idempotent
@kegsay kegsay added good first issue Want to help with Dendrite? These are the issues to start with! are-we-synapse-yet This issue or PR involves Sytests in AWSY labels Aug 24, 2020
@djohnson1865 djohnson1865 mentioned this issue Oct 18, 2020
2 tasks
@MadLittleMods
Copy link
Contributor

Looks related to #1311

@MadLittleMods MadLittleMods changed the title Fix failing room state endpoints Fix failing room state endpoints (setting state twice) Dec 18, 2020
@piyushsingariya
Copy link

Is this issue still open? Can I have a look over this?

@MadLittleMods
Copy link
Contributor

Go for it @piyushsingariya!

@piyushsingariya
Copy link

@MadLittleMods Can you explain to me a bit about this issue? as I am new and having a hard time understanding Dendrite's issues and its codebase. It would be helpful if you could guide me.
Thanks in advance :)

@MadLittleMods
Copy link
Contributor

@piyushsingariya I am also very new and struggling my way through a good first issue as well with #1671.

To start, add Setting state twice is idempotent to sytest-whitelist.

Then run Sytest (see https://github.com/matrix-org/dendrite/blob/master/docs/sytest.md for how to run) and see what fails (your test is in tests/30rooms/01state.pl)

@keremgocen
Copy link

hey @piyushsingariya were you able to progress on this one? I can try to help if you need any or I'm also happy to take a look myself, looking for a #good-first-issue to get myself familiarised with this dendrite.

@piyushsingariya
Copy link

yeah go ahead @keremgocen , I'm not focusing on this.

@keremgocen
Copy link

I'm looking at this and left a comment here. It's not obvious to me what should be the fix;

Not sure how the 2nd event ends up having the same id, when I look at the failing test code here: https://github.com/matrix-org/sytest/blob/master/tests/30rooms/01state.pl#L287

Any guidance would be helpful as this is my first issue, thanks.

@Tert0
Copy link

Tert0 commented Aug 28, 2021

I get

Test 137 Setting state twice is idempotent... EXPECTED FAIL

as output for SyTests.

Does that mean that it works?

@kegsay
Copy link
Member Author

kegsay commented Sep 6, 2021

No, you need it to be ... OK

@ParthGala2k
Copy link

Hello, I plan to apply to matrix for the dendrite project as part of GSoC this year and was looking to familiarise myself with the codebase.
If no one is looking at this issue, is it okay if I have a go at it ?

@kegsay
Copy link
Member Author

kegsay commented May 23, 2022

Still failing as of today: 2022-05-20T11:38:39.9370342Z ❌ Setting state twice is idempotent

@S7evinK
Copy link
Contributor

S7evinK commented Jun 9, 2022

Fixed in #2512

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
are-we-synapse-yet This issue or PR involves Sytests in AWSY good first issue Want to help with Dendrite? These are the issues to start with!
Projects
None yet
Development

No branches or pull requests

7 participants