chore: reduce unit and integration test sleep durations#2596
chore: reduce unit and integration test sleep durations#2596Deepak8858 wants to merge 1 commit intotektoncd:mainfrom
Conversation
…ncd#2594) Reduced test suite duration by replacing artificially long sleeps with shorter delays while maintaining reliability.
|
|
/ok-to-test |
chmouel
left a comment
There was a problem hiding this comment.
The comparison was done by running the full unit test suite on both the main branch and this PR branch using the same command:
make test-clean; go test ./... -v | tee /tmp/reduce-unit.log
make test-cleanensures a clean state (no leftover artifacts or cache interference).go test ./... -vruns all tests across all packages with verbose output.- Output is captured with
teefor later analysis and comparison.
The resulting logs from both runs were then compared using an LLM to identify differences in execution time and highlight performance changes across packages and test cases.
There is a small improvement in test execution time, mainly in pkg/adapter (~5% faster), driven by a slightly faster Test_listener_detectIncoming path (notably the not_git_provider_type_provided case).
However, the gain remains marginal (on the order of tens of milliseconds) and does not change the overall performance profile. The test suite is still dominated by the same slow path, and no broader optimization is visible.
This likely needs further work to be considered a meaningful improvement.
Fixes #2594
Reduced test suite duration by replacing artificially long sleeps with shorter delays while maintaining reliability.