Skip to content

Commit cc81e4b

Browse files
Fix VCS errors in daily serverless tests (#3924)
* tinker with build issues * re-add build line * tinkering with strings * add env var to build * try changing workdir * try to build from beats dir * add debug statements * remove level arg to git * remote commented-out block
1 parent dcc6493 commit cc81e4b

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.buildkite/scripts/steps/beats_tests.sh

+13-6
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,19 @@ source .buildkite/scripts/common.sh
1212
STACK_PROVISIONER="${1:-"serverless"}"
1313

1414
run_test_for_beat(){
15+
export GOFLAGS='-buildvcs=false'
1516
local beat_name=$1
1617

1718
#build
18-
export WORKSPACE="build/beats/x-pack/${beat_name}"
19+
export WORKSPACE="/tmp/beats-build/beats/x-pack/${beat_name}"
20+
pushd $WORKSPACE
21+
whoami
22+
ls -la
1923
SNAPSHOT=true PLATFORMS=linux/amd64 PACKAGES=tar.gz,zip mage package
24+
popd
2025

2126
#run
22-
export AGENT_BUILD_DIR="build/beats/x-pack/${beat_name}/build/distributions"
27+
export AGENT_BUILD_DIR="/tmp/beats-build/beats/x-pack/${beat_name}/build/distributions"
2328
export WORKSPACE=$(pwd)
2429

2530
set +e
@@ -33,11 +38,13 @@ run_test_for_beat(){
3338
#the setup scripts will do a few things that assume we're running out of elastic-agent and will break things for beats, so run before we do actual setup
3439
mage -l
3540

36-
mkdir -p build
37-
cd build
41+
# mkdir -p build
42+
# cd build
43+
mkdir -p /tmp/beats-build
44+
pushd /tmp/beats-build
3845

39-
git clone --filter=tree:0 [email protected]:elastic/beats.git
40-
cd ..
46+
git clone [email protected]:elastic/beats.git
47+
popd
4148

4249
# export WORKSPACE=beats/x-pack/metricbeat
4350

0 commit comments

Comments
 (0)