-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do once-over on all SkipIf
s in codebase, adding issue numbers, un-skipping passing tests
#519
Conversation
) | ||
|
||
func TestRelations(t *testing.T) { | ||
runtime.SkipIf(t, runtime.Dendrite) // not supported |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be #499?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not spot that, should I remove these changes so they don't conflict?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess leave it, they'll conflict and they can fix it there.
@@ -54,7 +54,7 @@ func TestUploadKey(t *testing.T) { | |||
|
|||
// sytest: Rejects invalid device keys | |||
t.Run("Rejects invalid device keys", func(t *testing.T) { | |||
runtime.SkipIf(t, runtime.Dendrite, runtime.Synapse) // Dendrite doesn't pass, Synapse has it blacklisted | |||
runtime.SkipIf(t, runtime.Dendrite, runtime.Synapse) // Blacklisted on Synapse, Dendrite FIXME: https://github.com/matrix-org/dendrite/issues/2804 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a corresponding Synapse issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is one in this repo: #517
I looked for one on synapse, but didn't open one there as I wasn't entirely sure what the reasoning was why these tests were blacklisted in the first place, so I opened one here to start that inquiry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's fine. 👍 Thanks.
@@ -36,7 +36,7 @@ func TestMembersLocal(t *testing.T) { | |||
|
|||
// sytest: Existing members see new members' presence | |||
t.Run("Existing members see new members' presence", func(t *testing.T) { | |||
runtime.SkipIf(t, runtime.Dendrite) // Still failing | |||
runtime.SkipIf(t, runtime.Dendrite) // FIXME: https://github.com/matrix-org/dendrite/issues/2803 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#516 removes the line entirely, the PR might conflict
The reason it can't be done here is because that PR also introduces changes to fix the test itself
Seeing as almost all SkipIfs in complement are due to the fact the originating homeservers do not implement the functionality, I did a once-over to check all of them, and paired them with those issues, and standardized the format of
SkipIf
comments along the way.Like this, the intended way how to skip a test on a homeserver then always comes paired with an issue to watch or resolve to remove that skip, else these skips would bitrot and the related tests aren't executed, potentially hiding non-compliant behaviour.
Furthermore, some tests did pass inbetween then and now, those skips have been removed.