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

TestFileSD is flakey #1001

Closed
brian-brazil opened this Issue Aug 18, 2015 · 5 comments

Comments

Projects
None yet
3 participants
@brian-brazil
Copy link
Member

brian-brazil commented Aug 18, 2015

I'm seeing failures like:

--- FAIL: TestFileSD (0.15s)
        file_test.go:89: Unexpected empty target group received: fixtures/_test.json:0
        file_test.go:89: Unexpected empty target group received: fixtures/_test.json:1
FAIL

maybe 50% of the time but I can't pin down what's causing them.

@juliusv

This comment has been minimized.

Copy link
Member

juliusv commented Aug 18, 2015

Got similar errors sometimes:

ok      _/home/julius/gosrc/src/github.com/prometheus/prometheus/retrieval  3.760s
time="2015-08-18T14:45:01+02:00" level=error msg="Error reading file \"fixtures/_test.yml\": yaml: did not find expected node content" file=file.go line=171 
time="2015-08-18T14:45:01+02:00" level=error msg="Error reading file \"fixtures/_test.yml\": yaml: did not find expected node content" file=file.go line=171 
time="2015-08-18T14:45:01+02:00" level=error msg="Error reading file \"fixtures/_test.yml\": yaml: did not find expected node content" file=file.go line=171 
time="2015-08-18T14:45:01+02:00" level=error msg="Error reading file \"fixtures/_test.json\": invalid character ']' looking for beginning of value" file=file.go line=171 
time="2015-08-18T14:45:01+02:00" level=error msg="Error reading file \"fixtures/_test.json\": invalid character ']' looking for beginning of value" file=file.go line=171 
time="2015-08-18T14:45:01+02:00" level=error msg="Error reading file \"fixtures/_test.json\": invalid character ']' looking for beginning of value" file=file.go line=171 
--- FAIL: TestFileSD (0.15s)
    file_test.go:89: Unexpected empty target group received: fixtures/_test.json:0
    file_test.go:89: Unexpected empty target group received: fixtures/_test.json:1
FAIL
FAIL    _/home/julius/gosrc/src/github.com/prometheus/prometheus/retrieval/discovery    0.178s
@juliusv

This comment has been minimized.

Copy link
Member

juliusv commented Aug 18, 2015

Ok, I guess the extra logged errors above are intentional and just show up because the test fails for other reasons.

@fabxc

This comment has been minimized.

Copy link
Member

fabxc commented Aug 18, 2015

Yes

On Tue, Aug 18, 2015 at 4:32 PM Julius Volz notifications@github.com
wrote:

Ok, I guess the extra logged errors above are intentional and just show up
because the test fails for other reasons.


Reply to this email directly or view it on GitHub
#1001 (comment)
.

@brian-brazil

This comment has been minimized.

Copy link
Member Author

brian-brazil commented Aug 31, 2015

Fixed by #1030

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.