Commit fe797ff4 authored by Kevin Daudt's avatar Kevin Daudt 💻 Committed by Leo
Browse files

community/grafana: disable test that modifies files

Tests for github.com/grafana/grafana/pkg/tests/api/metrics seem to
modify public/views/index{,-template}.html (making them equal).

This only seems to happen on LXC containers (the builders run in LXC).

Disable these tests for now to fix the issue on the builders until this
is fixed.

See #12427
parent 6bcf466f
......@@ -29,28 +29,23 @@ export GOTMPDIR=${GOTMPDIR:-$srcdir}
# - CVE-2019-15043
build() {
# index-template.html somehow overwrites index.html on alpine builder,
# this is a temporary check to debug this issue.
test -n "$(diff public/views/index*)"
local ldflags="-X main.version=$pkgver -X main.commit=$_commit -X main.buildstamp=$_stamp"
go build -ldflags "$ldflags" -v github.com/grafana/grafana/pkg/cmd/grafana-server
go build -ldflags "$ldflags" -v github.com/grafana/grafana/pkg/cmd/grafana-cli
}
check() {
local pkgs="./..."
local pkgs="$(go list ./... | grep -Ev '(pkg/tests/api/metrics)$')"
case "$CARCH" in
# https://github.com/grafana/grafana/issues/26389
x86) pkgs="$(go list ./... | grep -Ev '(pkg/tsdb$)')" ;;
x86) pkgs="$(go list ./... | grep -Ev '(pkg/tsdb|pkg/tests/api/metrics)$')" ;;
# https://github.com/grafana/grafana/issues/26390
s390x) pkgs="$(go list ./... | grep -Ev '(pkg/tsdb/influxdb/flux$)')" ;;
s390x) pkgs="$(go list ./... | grep -Ev '(pkg/tsdb/influxdb/flux|pkg/tests/api/metrics)$')" ;;
esac
go test $pkgs
# See above
test -n "$(diff public/views/index*)"
}
package() {
......@@ -61,9 +56,6 @@ package() {
install -Dm644 "$builddir/conf/sample.ini" "$pkgdir/etc/grafana.ini"
install -dm755 "$pkgdir/usr/share/grafana"
cp -r "$builddir/conf" "$builddir/public" "$pkgdir/usr/share/$pkgname/"
# See above
test -n "$(diff "$pkgdir"/usr/share/$pkgname/public/views/index*)"
}
sha512sums="72be76b646706e6d38f7206d2e558efb3ad818419cb3e39922454423409e59a27ca4d7b9c6d1663d9eb79cf86dd3e674e954fa6e196b891afa7f752dd3b6f77d grafana-7.4.1.tar.gz
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment