Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upTestFailedStartupExitCode fails during make test-short #5063
Comments
simonpasquier
added
help wanted
component/tests
labels
Jan 7, 2019
This comment has been minimized.
This comment has been minimized.
|
It seems that it always fails since #4296 was merged. May I take this issue? |
This comment has been minimized.
This comment has been minimized.
|
@rleungx go ahead! |
This comment has been minimized.
This comment has been minimized.
|
@rleungx I had this simple fix (short test skip) in mind as well but thought it wouldn't be accepted. ;-) Thanks. |
simonpasquier
closed this
in
#5076
Jan 16, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
knweiss commentedJan 4, 2019
•
edited
Bug Report
What did you do?
I've tried to compile the
release-2.6.0branch using go1.11.4 and noticed amake test-shortfailure:What did you expect to see?
All test should pass.
What did you see instead? Under which circumstances?
TestFailedStartupExitCodefails duringmake test-short. All other tests pass.AFAICS the root cause is that
promPathis empty as it is not set inTestMain()for short tests:prometheus/cmd/prometheus/main_test.go
Lines 34 to 43 in dbd1d58
prometheus/cmd/prometheus/main_test.go
Lines 160 to 175 in dbd1d58
Environment