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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flapy integration test #910

Closed
dB2510 opened this issue Aug 4, 2022 · 3 comments
Closed

Flapy integration test #910

dB2510 opened this issue Aug 4, 2022 · 3 comments

Comments

@dB2510
Copy link
Contributor

dB2510 commented Aug 4, 2022

馃悶 Bug Report

Description

We have some integration tests that are slow, which is why they run CI builds. However, some of these tests require some condition to satisfy within a specific duration. If condition isn't satisfied in that duration the test will fail with error:
Condition never satisfied.

Has this worked before in a previous version?

We have observed this flapping of test in previous versions as well.

馃敩 Minimal Reproduction

This is a non-deterministic test which uses assert.Eventually to trigger a condition within a specific duration and a ticker:

ok := assert.Eventually(t, func() bool {

We can reproduce it by running it multiple times on local system.

馃敟 Error

https://github.com/ObolNetwork/charon/runs/7656657905?check_suite_focus=true


--- FAIL: TestPingCluster (75.01s)
    --- FAIL: TestPingCluster/bootnode_and_stale_enrs (64.00s)
        app_test.go:220: 
            	Error Trace:	/home/runner/work/charon/charon/app/app_test.go:324
            	            				/home/runner/work/charon/charon/app/app_test.go:367
            	            				/home/runner/work/charon/charon/app/app_test.go:220
            	            				/home/runner/work/charon/charon/app/errgroup.go:75
            	            				/home/runner/work/charon/charon/app/asm_amd64.s:1571
            	Error:      	Condition never satisfied
            	Test:       	TestPingCluster/bootnode_and_stale_enrs
        app_test.go:111: 
            	Error Trace:	/home/runner/work/charon/charon/app/app_test.go:231
            	            				/home/runner/work/charon/charon/app/app_test.go:111
            	Error:      	Received unexpected error:
            	            	Timeout waiting for callbacks, expect=6, actual=4: map[0-1:true 1-0:true 1-2:true 2-1:true]
            	Test:       	TestPingCluster/bootnode_and_stale_enrs

obol-bulldozer bot pushed a commit that referenced this issue Aug 8, 2022
Disables flapping monitoring API test until it is fixed. This isn't a critical test either.

category: test
ticket: #910
@corverroos
Copy link
Contributor

When last did this flap?

@dB2510
Copy link
Contributor Author

dB2510 commented Aug 17, 2022

When last did this flap?

https://github.com/ObolNetwork/charon/runs/7656657905?check_suite_focus=true
This was 14 days ago. I don't remember more latest than this.

@corverroos
Copy link
Contributor

Lets close it then until we can find another occurrence

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants