-
Notifications
You must be signed in to change notification settings - Fork 335
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
test(kuma-cp): fix wait for goroutine to be done #5638
Conversation
…in cache test Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com>
@Mergifyio backport release-2.0 release-1.8 release-1.7 release-1.6 release-1.5 |
✅ Backports have been created
|
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.
Would it be easier to use sync.atomic ?
Also seems like this problem also exists with getQueries
Please use |
Are you sure it fixes the problem? According to the output here it doesn't like accessing the |
…or signal Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com>
It seems that is fixed. One of the issues was that slow action was hanging in other goroutine and waiting. Now before running the next test we wait for that goroutine to close before. I've tested by running
and had no error. |
Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com>
@lukidzi will you need to backport this too? |
Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com> (cherry picked from commit 31ae2bd) # Conflicts: # pkg/core/resources/manager/cache_test.go
Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com> (cherry picked from commit 31ae2bd) # Conflicts: # pkg/core/resources/manager/cache_test.go
Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com> (cherry picked from commit 31ae2bd) # Conflicts: # pkg/core/resources/manager/cache_test.go
Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com> (cherry picked from commit 31ae2bd) # Conflicts: # pkg/core/resources/manager/cache_test.go
Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com> (cherry picked from commit 31ae2bd) # Conflicts: # pkg/core/resources/manager/cache_test.go
Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com> (cherry picked from commit 31ae2bd) # Conflicts: # pkg/core/resources/manager/cache_test.go Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com>
Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com> (cherry picked from commit 31ae2bd) # Conflicts: # pkg/core/resources/manager/cache_test.go Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com>
Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com> (cherry picked from commit 31ae2bd) # Conflicts: # pkg/core/resources/manager/cache_test.go Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com>
Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com> (cherry picked from commit 31ae2bd) # Conflicts: # pkg/core/resources/manager/cache_test.go Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com>
Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com> (cherry picked from commit 31ae2bd) # Conflicts: # pkg/core/resources/manager/cache_test.go Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com>
* fix(kuma-cp): don't cache filtered data (#5574) Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com> (cherry picked from commit f5b8d76) Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com> * fix(kuma-cp): fixed parameters Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com> * fix(kuma-cp): fix conflict Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com> * test(kuma-cp): fix wait for goroutine to be done (backport #5638) (#5647) Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com> Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com> Co-authored-by: Łukasz Dziedziak <lukidzi@gmail.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
* fix(kuma-cp): don't cache filtered data (#5574) Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com> (cherry picked from commit f5b8d76) Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com> * fix(kuma-cp): fixed parameters Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com> * fix(kuma-cp): fix conflict Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com> * test(kuma-cp): fix wait for goroutine to be done (backport #5638) (#5646) Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com> Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com> Co-authored-by: Łukasz Dziedziak <lukidzi@gmail.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com> Signed-off-by: Bart Smykla <bartek@smykla.com>
There was some race after adding another test. Added lock for counter increment and made one test wait for the goroutine to be done before finishing the test.
syscall.Mkfifo
have equivalent implementation on the other OS --UPGRADE.md
? --> Changelog:
entry here or add aci/
label to run fewer/more tests?