-
Notifications
You must be signed in to change notification settings - Fork 116
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
feat: make router-tests less flaky #1484
Open
alepane21
wants to merge
47
commits into
main
Choose a base branch
from
ale/eng-6219-make-router-tests-less-flaky
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
3e55410
fix: wrong increment in "subscribe ws with filter"
alepane21 e1454c5
chore: remove retry integration tests
alepane21 6bb7887
fix: stricter condition on test
alepane21 f05a5dd
fix: force max timeout on nats shutdown
alepane21 d03a4fc
fix: less strict condition on test
alepane21 1727feb
Merge branch 'refs/heads/main' into ale/eng-6219-make-router-tests-le…
alepane21 e91500e
fix: less strict condition on test
alepane21 f3ce9c9
fix: stricter condition on test
alepane21 51ec7b8
fix: stricter condition on test
alepane21 c1f79de
chore: change a require to an assert to see next assertion value
alepane21 70f34c8
chore: try a different order of the checks for subscribe sync
alepane21 42ca681
Merge branch 'main' into ale/eng-6219-make-router-tests-less-flaky
alepane21 82f7408
Merge branch 'main' into ale/eng-6219-make-router-tests-less-flaky
alepane21 eeda567
Merge branch 'main' into ale/eng-6219-make-router-tests-less-flaky
alepane21 a0d380a
Merge branch 'main' into ale/eng-6219-make-router-tests-less-flaky
alepane21 7af651e
fix: use fixed graphql-go-tools
alepane21 14f2622
fix: use specified metric reader
alepane21 b17e17c
chore: limit parallelization
alepane21 4158be9
chore: changed flaky test to give more details when an error occurs
alepane21 e3f5d59
fix: always call the env Shutdown
alepane21 440f2e1
fix: static check
alepane21 d794103
Merge branch 'main' into ale/eng-6219-make-router-tests-less-flaky
alepane21 478b768
fix: set higher timeout default on events checks
alepane21 bab0852
fix: add WaitForTriggerCount
alepane21 4b3499e
Merge branch 'refs/heads/main' into ale/eng-6219-make-router-tests-le…
alepane21 3101301
Merge branch 'main' into ale/eng-6219-make-router-tests-less-flaky
alepane21 f2c6d40
feat: now the nats provider can log errors
alepane21 6f05f79
feat: try less time sensitive approach with multipart tests
alepane21 233207a
chore: wait before publishing second message
alepane21 907043c
fix: deflake ws connections
alepane21 3accd1c
fix: deflake subscribe sse with filter
alepane21 985522a
fix: make retry waiting time grow each iteration
alepane21 51c47b2
fix: make deflake functions return the error
alepane21 8e8353e
fix: deflake "subscribe sync sse works without query param"
alepane21 a220066
Merge branch 'refs/heads/main' into ale/eng-6219-make-router-tests-le…
alepane21 c726296
fix: add Shutdown to cleanup methods also on error
alepane21 a7c4426
fix: unflake two hot reload test
alepane21 6d3b17c
chore: try to execute only flaky test with retry
alepane21 afdae6a
chore: more readable regexp
alepane21 6af87ed
Merge branch 'main' into ale/eng-6219-make-router-tests-less-flaky
alepane21 6e7714b
chore: make flaky test less parallel, to see if the behave better
alepane21 d68a4a2
chore: try different deflake params
alepane21 79103b8
chore: retry flaky tests
alepane21 34b46fd
Merge branch 'main' into ale/eng-6219-make-router-tests-less-flaky
alepane21 af74896
chore: use updated graphql-go-tools
alepane21 7d81d64
fix: waiting URL
alepane21 6dfc928
Merge branch 'main' into ale/eng-6219-make-router-tests-less-flaky
alepane21 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
router-tests/events_config_test.go → router-tests/events/events_config_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package integration_test | ||
package events_test | ||
|
||
import ( | ||
"github.com/stretchr/testify/assert" | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we use
assert
, rather thanrequire
here?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I know, you should use the require only if you don't want the next assertion to run. In this instance I wanted to see the next assertion result to help me debug the issue when the test fails.