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

End to end test fails sometimes #105

Open
ianic opened this issue Dec 26, 2021 · 1 comment
Open

End to end test fails sometimes #105

ianic opened this issue Dec 26, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ianic
Copy link
Member

ianic commented Dec 26, 2021

For example this one.

It runs for an hour and then timeouts.
The line where it gets stuck is this.

From the action output:

github.com/mantil-io/mantil/test.testAddLogsApi(0xc0000b8420)
119
	/home/runner/work/mantil/mantil/mantil/test/ping_test.go:53 +0x2b6

it runs "mantil", "invoke", "logs/test", "-d", {"name": "Foo"} which newer finishes.

@ianic ianic added the bug Something isn't working label Dec 26, 2021
@ianic ianic changed the title end to end test is sometimes failing End to end test is sometimes failing Dec 26, 2021
@djelusic
Copy link
Contributor

djelusic commented Mar 4, 2022

Another example:
https://github.com/mantil-io/mantil/runs/5409744673?check_suite_focus=true

This one was stuck here waiting for logs from the NATS backend for 25 minutes before being killed:

goroutine 105 [chan receive, 25 minutes]:
396
github.com/mantil-io/mantil/test.testBackendInvoke.func1(0xa32f86)
397
	/home/runner/work/mantil/mantil/mantil/test/ping_test.go:83 +0x46

Code link:

for line := range ch {

Also there were some 404 errors when invoking methods in excuses/ping tests, for example:

excuses_test.go:19: [$mantil test] stdout should contain PASS, actual output: === RUN   TestExcuses
            printer.go:54: POST https://fpnrmtmfkb.execute-api.eu-central-1.amazonaws.com/excuses/clear
            reporter.go:23: 
                	Error Trace:	reporter.go:23
                	            				chain.go:21
                	            				response.go:[58](https://github.com/mantil-io/mantil/runs/5409744673?check_suite_focus=true#step:10:58)5
                	            				response.go:151
                	            				excuses_test.go:17
                	Error:      	
                	            	expected status equal to:
                	            	 "204 No Content"
                	            	
                	            	but got:
                	            	 "404 Not Found"
                	Test:       	TestExcuses

This doesn't seem to be related to the NATS logs issue because these tests finished in time and received a response.

@patko patko changed the title End to end test is sometimes failing End to end test fails sometimes Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants