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

server: Reduce redundant test runs #1267

Merged
merged 4 commits into from
Mar 11, 2024
Merged

server: Reduce redundant test runs #1267

merged 4 commits into from
Mar 11, 2024

Conversation

svix-jplatte
Copy link
Member

@svix-jplatte svix-jplatte commented Mar 11, 2024

The redis tests are now run once for the redis backend, and once for the redis cluster backend in run-tests.sh. Previously, all six runs would execute these tests, most of the time with the redis backend. Since these tests are relatively low-level, they are not affected by other configuration changes. It really only makes sense to run e2e tests with all the different configuration combinations.

@svix-onelson you were previously not convinced about this approach of using #[ignore]d tests plus extra --ignored test runs w.r.t. rabbitmq. How do you feel about it here given the diff?

The redis tests are now run once for the redis backend, and once for the
redis cluster backend in run-tests.sh. Previously, all six runs would
execute these tests, most of the time with the redis backend. Since
these tests are relatively low-level, they are not affected by other
configuration changes. It really only makes sense to run e2e tests with
all the different configuration combinations.
@svix-jplatte svix-jplatte requested a review from a team as a code owner March 11, 2024 18:20
@svix-jplatte
Copy link
Member Author

svix-jplatte commented Mar 11, 2024

Also, any objections against disabling bash linting? Idk if it ever linted against something useful. Before the latest commit, it outputted a bunch of

      export SVIX_QUEUE_TYPE="redis"
             ^-------------^ SC2030 (info): Modification of SVIX_QUEUE_TYPE is local (to subshell caused by (..) group).

which is an "info" lint that I think should never cause CI to fail.

@svix-jplatte
Copy link
Member Author

While CI performance has quite high variability, there is a sign here that this improved CI runtime quite noticably: Here's page 1 of the most recent successful runs:

Screenshot 2024-03-11 at 20-02-37 Server CI · Workflow runs · svix_svix-webhooks

server/run-tests.sh Show resolved Hide resolved
server/svix-server/src/core/types/mod.rs Show resolved Hide resolved
@svix-jplatte svix-jplatte merged commit 4cf0011 into main Mar 11, 2024
5 checks passed
@svix-jplatte svix-jplatte deleted the jplatte/redis-tests branch March 11, 2024 21:51
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.

None yet

3 participants