Skip to content
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 SkipIfs in codebase, adding issue numbers, un-skipping passing tests #519

Merged
merged 3 commits into from
Oct 27, 2022

Conversation

ShadowJonathan
Copy link
Contributor

@ShadowJonathan ShadowJonathan commented Oct 16, 2022

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.

@ShadowJonathan ShadowJonathan requested review from a team as code owners October 16, 2022 12:39
)

func TestRelations(t *testing.T) {
runtime.SkipIf(t, runtime.Dendrite) // not supported
Copy link
Member

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?

Copy link
Contributor Author

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?

Copy link
Member

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
Copy link
Member

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?

Copy link
Contributor Author

@ShadowJonathan ShadowJonathan Oct 17, 2022

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.

Copy link
Member

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
Copy link
Contributor Author

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

@ShadowJonathan ShadowJonathan requested a review from clokep October 26, 2022 07:35
@clokep clokep merged commit b0c66b2 into matrix-org:main Oct 27, 2022
@ShadowJonathan ShadowJonathan deleted the skipif-onceover branch October 28, 2022 08:45
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.

2 participants