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

cleanup: mark more integration tests as !short mode #755

Merged
merged 4 commits into from
May 24, 2022
Merged

Conversation

bassosimone
Copy link
Contributor

@bassosimone bassosimone commented May 24, 2022

The objective is to make PR checks run much faster.

See ooni/probe#2113 for context.

Regarding netxlite's tests:

Checking for every commit on master or on a release branch is
good enough and makes pull requests faster than one minute since
netxlite for windows is now 1m slower than coverage.

We're losing some coverage but coverage from integration tests
is not so good anyway, so I'm not super sad about this loss.

@bassosimone bassosimone requested a review from hellais as a code owner May 24, 2022 17:01
@@ -1,37 +0,0 @@
package ooapi_test
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This example alone took 15' of runtime.

@@ -47,29 +43,6 @@ func TestNewSessionWithInvalidStateDir(t *testing.T) {
}
}

func TestMaybeUpdateResourcesWithCancelledContext(t *testing.T) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here we were testing a deprecated function that always returns nil.

Checking for every commit on master or on a release branch is
good enough and makes pull requests faster than one minute since
netxlite for windows is now 1m slower than coverage.
This should further reduce the runtime and expose more packages
in which coverage comes from integration tests.
@bassosimone bassosimone merged commit d922bd9 into master May 24, 2022
@bassosimone bassosimone deleted the issue/2113 branch May 24, 2022 19:01
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