Skip to content
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

Merged
merged 1 commit into from
Nov 7, 2022

Conversation

atzoum
Copy link
Contributor

@atzoum atzoum commented Nov 3, 2022

Description

Attempting to fix a flaky test & adding some more logging

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

@atzoum atzoum marked this pull request as ready for review November 3, 2022 16:32
@codecov
Copy link

codecov bot commented Nov 3, 2022

Codecov Report

Base: 43.73% // Head: 45.31% // Increases project coverage by +1.57% 🎉

Coverage data is based on head (c55edc2) compared to base (8ac05c2).
Patch has no changes to coverable lines.

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     
Impacted Files Coverage Δ
utils/tests/matchers.go 46.15% <0.00%> (ø)
rruntime/goroutine-factory.go 50.00% <0.00%> (ø)
...outer/oauthResponseHandler/oauthResponseHandler.go 4.92% <0.00%> (ø)
services/alert/alertmanager.go 38.09% <0.00%> (ø)
testhelper/destination/kafka.go 78.23% <0.00%> (ø)
processor/integrations/integrations.go 59.18% <0.00%> (ø)
warehouse/identity/identity.go 0.45% <0.00%> (ø)
enterprise/replay/dumpsloader.go 1.16% <0.00%> (ø)
app/app.go 55.42% <0.00%> (ø)
testhelper/rand/randString.go 100.00% <0.00%> (ø)
... and 169 more

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.
📢 Do you have feedback about the report comment? Let us know in this issue.

@atzoum atzoum marked this pull request as draft November 3, 2022 17:43
@atzoum atzoum force-pushed the chore.rsourcesFlakyTest branch 10 times, most recently from a927921 to 50ed1a8 Compare November 3, 2022 20:50
@atzoum atzoum marked this pull request as ready for review November 4, 2022 08:53
Copy link
Collaborator

@fracasula fracasula left a 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)
Copy link
Collaborator

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 😅

Comment on lines +1024 to +1026
func randomString() string {
return strings.ReplaceAll(uuid.Must(uuid.NewV4()).String(), "-", "")
}
Copy link
Collaborator

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

@atzoum atzoum requested a review from pChondros November 7, 2022 13:07
@chandumlg chandumlg merged commit 1c49e96 into master Nov 7, 2022
@chandumlg chandumlg deleted the chore.rsourcesFlakyTest branch November 7, 2022 13:35
This was referenced Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants