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

Split JetStream cluster tests again #5332

Merged
merged 1 commit into from
Apr 22, 2024
Merged

Split JetStream cluster tests again #5332

merged 1 commit into from
Apr 22, 2024

Conversation

kozlovic
Copy link
Member

Try to keep jetstream_cluster_3_test.go to just under 8 minutes and move the trail end to new jetstream_cluster_4_test.go.

Notice that this file contains a test that itself takes more than 6 minutes to run. I checked without -race and it takes about as much. The test is:

TestJetStreamClusterStreamOrphanMsgsAndReplicasDrifting

I understand it does a lot of things, but wonder if it could be made a bit faster? @wallyqs I believe you have worked on that one?

Signed-off-by: Ivan Kozlovic ivan@synadia.com

Try to keep jetstream_cluster_3_test.go to just under 8 minutes
and move the trail end to new jetstream_cluster_4_test.go.

Notice that this file contains a test that itself takes more
than 6 minutes to run. I checked without `-race` and it takes
about as much. The test is:
```
TestJetStreamClusterStreamOrphanMsgsAndReplicasDrifting
```
I understand it does a lot of things, but wonder if it could be
made a bit faster? @wallyqs I believe you have worked on that one?

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
@kozlovic kozlovic requested a review from a team as a code owner April 22, 2024 22:49
@kozlovic
Copy link
Member Author

@derekcollison I did what you asked, but the new "4" test file is already at 8+ minutes. This is because it contains the test aforementioned that takes 6+ minutes to run. If this test cannot be made way shorter, it is almost like it deserves its own matrix run, or in other words, we need already to start a "5" test file.

Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM - Thanks Ivan

Copy link
Member

@wallyqs wallyqs left a comment

Choose a reason for hiding this comment

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

LGTM

@kozlovic
Copy link
Member Author

@derekcollison Just to be clear, we leave as-is and @wallyqs will see if it can make the test shorter, or do I - part of this PR - make the file "4" contain only the long running test and add a file "5" with some of the tail tests that used to be in "3"?

@derekcollison
Copy link
Member

Leave as is for now..

@derekcollison derekcollison merged commit f9bdda7 into main Apr 22, 2024
4 checks passed
@derekcollison derekcollison deleted the js_cluster_tests_4 branch April 22, 2024 23:07
neilalexander added a commit that referenced this pull request Apr 24, 2024
Includes the following:

* #5328
* #5324
* #5332
* #5314
* #5333
* #5330
* #5329
* #5338
* #5315
* #5339
* #5340
* #5341
* #5342
* #5347

Signed-off-by: Neil Twigg <neil@nats.io>
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.

3 participants