-
Notifications
You must be signed in to change notification settings - Fork 318
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
chore: rsources flaky test - start services before all #2650
Conversation
Codecov ReportBase: 43.73% // Head: 45.31% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #2650 +/- ##
==========================================
+ Coverage 43.73% 45.31% +1.57%
==========================================
Files 191 287 +96
Lines 40483 47745 +7262
==========================================
+ Hits 17707 21635 +3928
- Misses 21672 24745 +3073
- Partials 1104 1365 +261
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
7fc0dc4
to
ba8d152
Compare
a927921
to
50ed1a8
Compare
50ed1a8
to
c55edc2
Compare
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.
LGTM, doesn't hurt to have it Ordered
and with a random networkID
anyway 👍
else | ||
$(eval TEST_CMD = SLOW=0 go test) | ||
$(eval TEST_OPTIONS = -p=1 -v -failfast -shuffle=on -coverprofile=profile.out -covermode=atomic -vet=all --timeout=15m) | ||
$(eval TEST_OPTIONS = -p=1 -v -failfast -shuffle=on -coverprofile=profile.out -covermode=count -coverpkg=./... -vet=all --timeout=15m) |
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.
We'll have to remember to switch it back to atomic
once we'll get to run tests in parallel. Just saying it out loud 😅
func randomString() string { | ||
return strings.ReplaceAll(uuid.Must(uuid.NewV4()).String(), "-", "") | ||
} |
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.
FYI, we got a helper for random strings, maybe it can work well in this case: https://github.com/rudderlabs/rudder-server/blob/master/testhelper/rand/randString.go
Description
Attempting to fix a flaky test & adding some more logging
Security