e2e: Ensure we build the grafana binary when starting up the playwright server (#108992)

* ensure we build the grafana binary as part of the playwright server startup

* only build if binary isn't there

* add comments

* handle building the binary in the start-server script
This commit is contained in:
Ashley Harrison
2025-07-31 17:18:58 +01:00
committed by GitHub
parent b990c7e7af
commit 68d7c970b5
+7
View File
@@ -22,6 +22,13 @@ fi
echo starting server
# air now deletes the binary, so we check if we need to build it before trying to start the server
# see https://github.com/air-verse/air/issues/525
# if this gets resolved, we could remove the go build and rely on the binary being present as before
if [[ ! -f ./bin/grafana ]]; then
make GO_BUILD_DEV=1 build-go-fast
fi
cp -r ./bin $RUNDIR
cp -r ./tools $RUNDIR
ln -s $(realpath ./public) $RUNDIR