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

[Flaky Test]: TestWaitForWatcher/Runaround_path:_marker_is_jumping_around_and_landing_on_watching – Received unexpected error: watcher did not start in time context deadline exceeded #4385

Closed
pchila opened this issue Mar 8, 2024 · 6 comments · Fixed by #4397 or #4425
Assignees
Labels
flaky-test Unstable or unreliable test cases. Team:Elastic-Agent Label for the Agent team

Comments

@pchila
Copy link
Member

pchila commented Mar 8, 2024

Failing test case

TestWaitForWatcher

Error message

watcher did not start in time: context deadline exceeded

Build

https://buildkite.com/elastic/elastic-agent/builds/7644#018e1da8-4fc5-495e-8922-98f4a839d52f

OS

Mac

Stacktrace and notes

=== FAIL: internal/pkg/agent/application/upgrade TestWaitForWatcher/Runaround_path:_marker_is_jumping_around_and_landing_on_watching (0.69s)
    upgrade_test.go:856:
        	Error Trace:	/Users/admin/builds/bk-agent-prod-orka-1709894562206733848/elastic/elastic-agent/internal/pkg/agent/application/upgrade/upgrade_test.go:856
        	Error:      	Received unexpected error:
        	            	watcher did not start in time
        	            	context deadline exceeded
        	Test:       	TestWaitForWatcher/Runaround_path:_marker_is_jumping_around_and_landing_on_watching
        	Messages:   	waitForWatcher /tmp/TestWaitForWatcherRunaround_path_marker_is_jumping_around_and_landing_on_watching576010915/001/.update-marker, [UPG_REQUESTED UPG_SCHEDULED UPG_DOWNLOADING UPG_EXTRACTING UPG_REPLACING UPG_RESTARTING UPG_WATCHING], 1ms, 500ms)
=== FAIL: internal/pkg/agent/application/upgrade TestWaitForWatcher (1.78s)

It seems that sometimes Mac runner is too slow to manage the update marker within 500ms, will extend the timeout

@pchila pchila added Team:Elastic-Agent Label for the Agent team flaky-test Unstable or unreliable test cases. labels Mar 8, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent (Team:Elastic-Agent)

@pchila pchila self-assigned this Mar 8, 2024
@rdner
Copy link
Member

rdner commented Mar 9, 2024

@pchila
Copy link
Member Author

pchila commented Mar 14, 2024

@pchila pchila reopened this Mar 14, 2024
@rdner
Copy link
Member

rdner commented Mar 14, 2024

@rdner
Copy link
Member

rdner commented Mar 18, 2024

@rdner
Copy link
Member

rdner commented Mar 18, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaky-test Unstable or unreliable test cases. Team:Elastic-Agent Label for the Agent team
Projects
None yet
3 participants