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

Speed-up some tests and fixing some lint reports. #5258

Merged
merged 4 commits into from
Mar 29, 2024
Merged

Conversation

kozlovic
Copy link
Member

Tests were executed against the parent commit of when they were
added to make sure that the tuning is not affecting the reproducibility
of the test. Note that some of the tests were sometimes not detecting
the bug, even when running with -count=xxx, so in that case, it
is difficult to know if the tuning would prevent detection if the
bug were to be reintroduced.

The FileStore and MsgTrace tests were also added as a matrix run
in Travis/GA.

Signed-off-by: Ivan Kozlovic [email protected]

Tests were executed against the parent commit of when they were
added to make sure that the tuning is not affecting the reproducibility
of the test. Note that some of the tests were sometimes not detecting
the bug, even when running with `-count=xxx`, so in that case, it
is difficult to know if the tuning would prevent detection if the
bug were to be reintroduced.

The FileStore and MsgTrace tests were also added as a matrix run
in Travis/GA.

Signed-off-by: Ivan Kozlovic <[email protected]>
Signed-off-by: Ivan Kozlovic <[email protected]>
@kozlovic kozlovic requested a review from a team as a code owner March 29, 2024 01:33
@kozlovic kozlovic requested a review from derekcollison March 29, 2024 01:33
@kozlovic
Copy link
Member Author

@derekcollison I started looking at some outlier in term of duration and manually tuned some of them (started with TestNoRace ones). I could not really make the overall duration fall that much. I have separated FileStore and MsgTrace tests as separate runs in Travis, not sure if this is something that you will agree with. If you do, there maybe more to do to bring some of the matrix runs down to 5/6 minutes as opposed to 9+ as they are now.

scripts/runTestsOnTravis.sh Show resolved Hide resolved
scripts/runTestsOnTravis.sh Outdated Show resolved Hide resolved
server/gateway_test.go Show resolved Hide resolved
server/jetstream_consumer_test.go Outdated Show resolved Hide resolved
server/opts.go Outdated Show resolved Hide resolved
Excluded the files that were auto-generated (with a do not edit
comment).

Signed-off-by: Ivan Kozlovic <[email protected]>
@kozlovic kozlovic requested a review from derekcollison March 29, 2024 14:45
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

@derekcollison
Copy link
Member

Should I do normal merge or squash merge?

@kozlovic
Copy link
Member Author

@derekcollison I would do simple merge (I would want the interface{}->any stay as its own commit)

@derekcollison derekcollison merged commit 6840c4d into main Mar 29, 2024
4 checks passed
@derekcollison derekcollison deleted the speedup_tests branch March 29, 2024 18:25
derekcollison added a commit that referenced this pull request Apr 4, 2024
Cherry-pick the following PRs into the v2.10.14 release branch:

* #5237
* #5238
* #5242
* #5208
* #5244
* #5248
* #5246
* #5112
* #5247
* #5256
* #5258
* #5264
* #5266
* #5267
* #5265
* #5271
* #5270
* #5272
* #5276
* #5274
* #5275
* #5277
* #5279

Signed-off-by: Neil Twigg <[email protected]>
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