Skip to content

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

Merged
derekcollison merged 4 commits intomainfrom
speedup_tests
Mar 29, 2024
Merged

Speed-up some tests and fixing some lint reports.#5258
derekcollison merged 4 commits intomainfrom
speedup_tests

Conversation

@kozlovic
Copy link
Copy Markdown
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 ivan@synadia.com

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 <ivan@synadia.com>
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
@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
Copy Markdown
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.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
Excluded the files that were auto-generated (with a do not edit
comment).

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
@kozlovic kozlovic requested a review from derekcollison March 29, 2024 14:45
Copy link
Copy Markdown
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
Copy Markdown
Member

Should I do normal merge or squash merge?

@kozlovic
Copy link
Copy Markdown
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
@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 <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.

2 participants