chore: download tsi1 testdata with go generate (#18972)
* chore: remove tsi1 testdata and add go generate file to download * chore: fix testdata url and rename gen file * fix: add testdata generate command to Makefile * chore: add testdata dir to gitignore * refactor(tsdb): improve error message when missing testdata * refactor(tsdb): tagged testdata and avoid stacktrace when missingpull/18980/head
parent
009e113dc8
commit
ef3ee96eea
|
@ -57,6 +57,9 @@ chronograf/dist/dist_gen.go
|
|||
chronograf/server/swagger_gen.go
|
||||
http/swagger_gen.go
|
||||
|
||||
# Ignore TSM testdata binary files
|
||||
tsdb/tsi/testdata
|
||||
|
||||
# The rest of the file is the .gitignore from the original influxdb repository,
|
||||
# copied here to prevent mistakenly checking in any binary files
|
||||
# that may be present but previously ignored if you cloned/developed before v2.
|
||||
|
|
1
Makefile
1
Makefile
|
@ -137,6 +137,7 @@ test-js: node_modules
|
|||
make -C ui test
|
||||
|
||||
test-go:
|
||||
$(GO_GENERATE) ./tsdb/tsi1/gen_test.go
|
||||
$(GO_TEST) ./...
|
||||
|
||||
test-promql-e2e:
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
//go:generate sh -c "curl -L https://github.com/influxdata/testdata/raw/2020.07.17.0/tsi1testdata.tar.gz | tar xz"
|
||||
package tsi1_test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
)
|
||||
|
||||
func init() {
|
||||
if _, err := os.Stat("./testdata"); err != nil {
|
||||
fmt.Println("Run go generate to download testdata directory.")
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
|
@ -1,38 +0,0 @@
|
|||
{
|
||||
"levels": [
|
||||
{},
|
||||
{
|
||||
"m": 33554432,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 33554432,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 67108864,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 134217728,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 268435456,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 536870912,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 1073741824,
|
||||
"k": 6
|
||||
}
|
||||
],
|
||||
"files": [
|
||||
"L0-00000002.tsl",
|
||||
"L1-00000001.tsi"
|
||||
],
|
||||
"version": 1
|
||||
}
|
Binary file not shown.
Binary file not shown.
|
@ -1,38 +0,0 @@
|
|||
{
|
||||
"levels": [
|
||||
{},
|
||||
{
|
||||
"m": 33554432,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 33554432,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 67108864,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 134217728,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 268435456,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 536870912,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 1073741824,
|
||||
"k": 6
|
||||
}
|
||||
],
|
||||
"files": [
|
||||
"L0-00000002.tsl",
|
||||
"L1-00000001.tsi"
|
||||
],
|
||||
"version": 1
|
||||
}
|
Binary file not shown.
Binary file not shown.
|
@ -1,38 +0,0 @@
|
|||
{
|
||||
"levels": [
|
||||
{},
|
||||
{
|
||||
"m": 33554432,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 33554432,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 67108864,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 134217728,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 268435456,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 536870912,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 1073741824,
|
||||
"k": 6
|
||||
}
|
||||
],
|
||||
"files": [
|
||||
"L0-00000002.tsl",
|
||||
"L1-00000001.tsi"
|
||||
],
|
||||
"version": 1
|
||||
}
|
Binary file not shown.
Binary file not shown.
|
@ -1,38 +0,0 @@
|
|||
{
|
||||
"levels": [
|
||||
{},
|
||||
{
|
||||
"m": 33554432,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 33554432,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 67108864,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 134217728,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 268435456,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 536870912,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 1073741824,
|
||||
"k": 6
|
||||
}
|
||||
],
|
||||
"files": [
|
||||
"L0-00000002.tsl",
|
||||
"L1-00000001.tsi"
|
||||
],
|
||||
"version": 1
|
||||
}
|
Binary file not shown.
Binary file not shown.
|
@ -1,38 +0,0 @@
|
|||
{
|
||||
"levels": [
|
||||
{},
|
||||
{
|
||||
"m": 33554432,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 33554432,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 67108864,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 134217728,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 268435456,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 536870912,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 1073741824,
|
||||
"k": 6
|
||||
}
|
||||
],
|
||||
"files": [
|
||||
"L0-00000002.tsl",
|
||||
"L1-00000001.tsi"
|
||||
],
|
||||
"version": 1
|
||||
}
|
Binary file not shown.
Binary file not shown.
|
@ -1,38 +0,0 @@
|
|||
{
|
||||
"levels": [
|
||||
{},
|
||||
{
|
||||
"m": 33554432,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 33554432,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 67108864,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 134217728,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 268435456,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 536870912,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 1073741824,
|
||||
"k": 6
|
||||
}
|
||||
],
|
||||
"files": [
|
||||
"L0-00000002.tsl",
|
||||
"L1-00000001.tsi"
|
||||
],
|
||||
"version": 1
|
||||
}
|
Binary file not shown.
Binary file not shown.
|
@ -1,38 +0,0 @@
|
|||
{
|
||||
"levels": [
|
||||
{},
|
||||
{
|
||||
"m": 33554432,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 33554432,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 67108864,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 134217728,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 268435456,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 536870912,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 1073741824,
|
||||
"k": 6
|
||||
}
|
||||
],
|
||||
"files": [
|
||||
"L0-00000002.tsl",
|
||||
"L1-00000001.tsi"
|
||||
],
|
||||
"version": 1
|
||||
}
|
Binary file not shown.
Binary file not shown.
|
@ -1,38 +0,0 @@
|
|||
{
|
||||
"levels": [
|
||||
{},
|
||||
{
|
||||
"m": 33554432,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 33554432,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 67108864,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 134217728,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 268435456,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 536870912,
|
||||
"k": 6
|
||||
},
|
||||
{
|
||||
"m": 1073741824,
|
||||
"k": 6
|
||||
}
|
||||
],
|
||||
"files": [
|
||||
"L0-00000002.tsl",
|
||||
"L1-00000001.tsi"
|
||||
],
|
||||
"version": 1
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue