-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[TT-12494] Fix flaky TestCacheEtag and related cache tests #6508
Conversation
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
API Changes no api changes detected |
c62c6cb
to
2747deb
Compare
ecad713
to
feaef40
Compare
feaef40
to
6e2f33c
Compare
6e2f33c
to
806f9eb
Compare
Quality Gate passedIssues Measures |
This considers some necessary improvements: - [x] revert test to run e2e-combined (e2e only has some CI specific issues when running, not seen on local) - [x] add cancellation group to CI tests, new commits on PR cancel old CI Tests run - [x] pass only the merged .cov file to sonarcloud (not all of them) - [x] https://tyktech.atlassian.net/browse/TT-12494 (tests issue, deleting caches, defer) The tests are flaky on account they delete the redis cache. Deleting a redis cache from a test interferes with other tests that also read/write cache data from redis. ___ enhancement, tests ___ - Added concurrency settings to the CI workflow to ensure only one runner per PR and commit, canceling old runs on new commits. - Updated the test command to `test:e2e-combined` to address CI-specific issues. - Changed the sonar coverage report path to use a merged `.cov` file (`gateway-all.cov`). - Simplified the package listing command in the test task configuration. ___ <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table> <tr> <td> <details> <summary><strong>ci-tests.yml</strong><dd><code>Enhance CI workflow with concurrency and test improvements</code></dd></summary> <hr> .github/workflows/ci-tests.yml <li>Added concurrency settings to CI tests to cancel old runs on new <br>commits.<br> <li> Changed test command to <code>test:e2e-combined</code>.<br> <li> Updated sonar coverage report path to <code>gateway-all.cov</code>.<br> </details> </td> <td><a href="https://github.com/TykTechnologies/tyk/pull/6508/files#diff-03609cb60b0c6e92fb771eb8787d6722b8c31ca4c03eabc788e147acd8c6fb43">+11/-2</a> </td> </tr> <tr> <td> <details> <summary><strong>test.yml</strong><dd><code>Simplify package listing command in test task</code> </dd></summary> <hr> .taskfiles/test.yml - Simplified the package listing command in the test task. </details> </td> <td><a href="https://github.com/TykTechnologies/tyk/pull/6508/files#diff-f1fbe7f7f14888019b8845634ed008e1c43f6e5a5c0b2707336fc7f8e15a36fb">+1/-1</a> </td> </tr> </table></td></tr></tr></tbody></table> ___ > 💡 **PR-Agent usage**: >Comment `/help` on the PR to get a list of all available PR-Agent tools and their descriptions --------- Co-authored-by: Tit Petric <tit@tyk.io>
User description
This considers some necessary improvements:
gateway_test.go: The tests are flaky on account they delete the redis cache. Deleting a redis cache from a test interferes with other tests that also read/write cache data from redis.
tests/regression: using external resources (confirmed fix)
PR Type
enhancement, tests
Description
test:e2e-combined
to address CI-specific issues..cov
file (gateway-all.cov
).Changes walkthrough 📝
ci-tests.yml
Enhance CI workflow with concurrency and test improvements
.github/workflows/ci-tests.yml
commits.
test:e2e-combined
.gateway-all.cov
.test.yml
Simplify package listing command in test task
.taskfiles/test.yml