I'm here for a discussion around Prometheus test which is failing on my local master.
I wanted to start with a couple of Issues and wanted to have all the test pass first so that I can be sure that none of my changes are breaking the Test Cases
>> running all tests
GO111MODULE=on go test -race -mod=vendor ./...
discovery/digitalocean/digitalocean_test.go:45:3: t.Cleanup undefined (type *testing.T has no field or method Cleanup)
note: module requires Go 1.14
discovery/dockerswarm/mock_test.go:58:5: m.t.Cleanup undefined (type *testing.T has no field or method Cleanup)
note: module requires Go 1.14
discovery/hetzner/mock_test.go:46:5: m.t.Cleanup undefined (type *testing.T has no field or method Cleanup)
note: module requires Go 1.14
discovery/openstack/mock_test.go:46:5: m.t.Cleanup undefined (type *testing.T has no field or method Cleanup)
note: module requires Go 1.14
tsdb/chunks/head_chunks_test.go:369:3: t.Cleanup undefined (type *testing.T has no field or method Cleanup)
note: module requires Go 1.14
tsdb/db_test.go:69:3: t.Cleanup undefined (type testing.TB has no field or method Cleanup)
tsdb/db_test.go:2739:3: t.Cleanup undefined (type *testing.T has no field or method Cleanup)
tsdb/head_test.go:54:3: t.Cleanup undefined (type testing.TB has no field or method Cleanup)
tsdb/repair_test.go:32:3: t.Cleanup undefined (type *testing.T has no field or method Cleanup)
note: module requires Go 1.14
web/web_test.go:453:3: t.Cleanup undefined (type *testing.T has no field or method Cleanup)
note: module requires Go 1.14
--- FAIL: TestWALSegmentSizeBounds (0.30s)
main_test.go:211: panic: reflect.StructOf: StructOf does not allow unexported fields [recovered]
panic: reflect.StructOf: StructOf does not allow unexported fields [recovered]
panic: reflect.StructOf: StructOf does not allow unexported fields [recovered]
panic: reflect.StructOf: StructOf does not allow unexported fields
goroutine 1 [running]:
panic(0x3f3ab20, 0x4b57b70)
/usr/local/Cellar/go/1.13.7/libexec/src/runtime/panic.go:679 +0x1b2
panic(0x3f3ab20, 0x4b57b70)
/usr/local/Cellar/go/1.13.7/libexec/src/runtime/panic.go:679 +0x1b2
panic(0x3f3ab20, 0x4b57b70)
/usr/local/Cellar/go/1.13.7/libexec/src/runtime/panic.go:679 +0x1b2
reflect.runtimeStructField(0xc000147300, 0x18, 0x3dda243, 0x27, 0x4c6dce0, 0x40653c0, 0x0, 0x0, 0x0, 0x0, ...)
/usr/local/Cellar/go/1.13.7/libexec/src/reflect/type.go:2754 +0x1d4
reflect.StructOf(0xc000440000, 0x18, 0x19, 0x0, 0x0)
/usr/local/Cellar/go/1.13.7/libexec/src/reflect/type.go:2362 +0x2549
main.main()
_testmain.go:54 +0x224
main_test.go:233:
exp: 1
got: 2
--- FAIL: TestStartupInterrupt (5.06s)
main_unix_test.go:66: prometheus didn't start in the specified timeout
FAIL
--- FAIL: TestYAMLRoundtrip (0.01s)
panic: reflect.StructOf: StructOf does not allow unexported fields [recovered]
panic: reflect.StructOf: StructOf does not allow unexported fields [recovered]
panic: reflect.StructOf: StructOf does not allow unexported fields [recovered]
panic: reflect.StructOf: StructOf does not allow unexported fields [recovered]
panic: reflect.StructOf: StructOf does not allow unexported fields
goroutine 58 [running]:
testing.tRunner.func1(0xc000158500)
/usr/local/Cellar/go/1.13.7/libexec/src/testing/testing.go:874 +0x69f
panic(0x3314f60, 0x3c2cf60)
/usr/local/Cellar/go/1.13.7/libexec/src/runtime/panic.go:679 +0x1b2
panic(0x3314f60, 0x3c2cf60)
/usr/local/Cellar/go/1.13.7/libexec/src/runtime/panic.go:679 +0x1b2
panic(0x3314f60, 0x3c2cf60)
/usr/local/Cellar/go/1.13.7/libexec/src/runtime/panic.go:679 +0x1b2
panic(0x3314f60, 0x3c2cf60)
/usr/local/Cellar/go/1.13.7/libexec/src/runtime/panic.go:679 +0x1b2
reflect.runtimeStructField(0xc00033a8c0, 0x18, 0x3225ae3, 0x27, 0x3d09680, 0x33dfdc0, 0x0, 0x0, 0x0, 0x0, ...)
/usr/local/Cellar/go/1.13.7/libexec/src/reflect/type.go:2754 +0x1d4
reflect.StructOf(0xc0002dc000, 0x17, 0x19, 0x0, 0x0)
/usr/local/Cellar/go/1.13.7/libexec/src/reflect/type.go:2362 +0x2549
testing.tRunner(0xc000158500, 0x380b208)
/usr/local/Cellar/go/1.13.7/libexec/src/testing/testing.go:909 +0x19a
created by testing.(*T).Run
/usr/local/Cellar/go/1.13.7/libexec/src/testing/testing.go:960 +0x652
--- FAIL: TestReload (0.00s)
panic: reflect.StructOf: StructOf does not allow unexported fields [recovered]
panic: reflect.StructOf: StructOf does not allow unexported fields [recovered]
panic: reflect.StructOf: StructOf does not allow unexported fields [recovered]
panic: reflect.StructOf: StructOf does not allow unexported fields [recovered]
panic: reflect.StructOf: StructOf does not allow unexported fields
goroutine 74 [running]:
testing.tRunner.func1(0xc000412200)
/usr/local/Cellar/go/1.13.7/libexec/src/testing/testing.go:874 +0x69f
panic(0x1a7ca60, 0x1cad350)
/usr/local/Cellar/go/1.13.7/libexec/src/runtime/panic.go:679 +0x1b2
panic(0x1a7ca60, 0x1cad350)
/usr/local/Cellar/go/1.13.7/libexec/src/runtime/panic.go:679 +0x1b2
panic(0x1a7ca60, 0x1cad350)
/usr/local/Cellar/go/1.13.7/libexec/src/runtime/panic.go:679 +0x1b2
panic(0x1a7ca60, 0x1cad350)
/usr/local/Cellar/go/1.13.7/libexec/src/runtime/panic.go:679 +0x1b2
reflect.runtimeStructField(0xc0002b20e0, 0x18, 0x1a3cb03, 0x27, 0x1cdf6e0, 0x1aab9a0, 0x0, 0x0, 0x0, 0x0, ...)
/usr/local/Cellar/go/1.13.7/libexec/src/reflect/type.go:2754 +0x1d4
reflect.StructOf(0xc000094380, 0x8, 0x8, 0x0, 0x0)
/usr/local/Cellar/go/1.13.7/libexec/src/reflect/type.go:2362 +0x2549
testing.tRunner(0xc000412200, 0x1bbdd18)
/usr/local/Cellar/go/1.13.7/libexec/src/testing/testing.go:909 +0x19a
created by testing.(*T).Run
/usr/local/Cellar/go/1.13.7/libexec/src/testing/testing.go:960 +0x652
--- FAIL: TestManagerApplyConfig (0.00s)
panic: reflect.StructOf: StructOf does not allow unexported fields [recovered]
panic: reflect.StructOf: StructOf does not allow unexported fields [recovered]
panic: reflect.StructOf: StructOf does not allow unexported fields [recovered]
panic: reflect.StructOf: StructOf does not allow unexported fields
goroutine 33 [running]:
testing.tRunner.func1(0xc000168700)
/usr/local/Cellar/go/1.13.7/libexec/src/testing/testing.go:874 +0x69f
panic(0x1a356a0, 0x1c67440)
/usr/local/Cellar/go/1.13.7/libexec/src/runtime/panic.go:679 +0x1b2
panic(0x1a356a0, 0x1c67440)
/usr/local/Cellar/go/1.13.7/libexec/src/runtime/panic.go:679 +0x1b2
panic(0x1a356a0, 0x1c67440)
/usr/local/Cellar/go/1.13.7/libexec/src/runtime/panic.go:679 +0x1b2
reflect.runtimeStructField(0xc0000f1040, 0x18, 0x19f5763, 0x27, 0x1c99920, 0x1a621e0, 0x0, 0x0, 0x0, 0x0, ...)
/usr/local/Cellar/go/1.13.7/libexec/src/reflect/type.go:2754 +0x1d4
reflect.StructOf(0xc00022e700, 0xf, 0x11, 0x0, 0x0)
/usr/local/Cellar/go/1.13.7/libexec/src/reflect/type.go:2362 +0x2549
testing.tRunner(0xc000168700, 0x1b75db0)
/usr/local/Cellar/go/1.13.7/libexec/src/testing/testing.go:909 +0x19a
created by testing.(*T).Run
/usr/local/Cellar/go/1.13.7/libexec/src/testing/testing.go:960 +0x652
FAIL
make: *** [common-test] Error 2