From e9f6b9bcc1aebb652cd16afe3e9e53def1484ecd Mon Sep 17 00:00:00 2001 From: Krishna Pai Date: Thu, 11 Jan 2024 10:20:23 -0800 Subject: [PATCH] Ensure that server logs are archived. --- .github/workflows/experimental.yml | 6 +++++- scripts/start-prestojava.sh | 7 ++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/experimental.yml b/.github/workflows/experimental.yml index 0c2a7f0b6b6e..f72c610906df 100644 --- a/.github/workflows/experimental.yml +++ b/.github/workflows/experimental.yml @@ -117,7 +117,10 @@ jobs: - name: "Run Aggregate Fuzzer" run: | - /opt/start-prestojava.sh 2>&1 >> /tmp/server.log & + /opt/start-prestojava.sh > /tmp/server.log 2>&1 & + sleep 60 + echo 'CREATE SCHEMA hive.tpch;' > /tmp/hive_create.sql + /opt/presto-cli --server 127.0.0.1:8080 --file /tmp/hive_create.sql mkdir -p /tmp/aggregate_fuzzer_repro/ rm -rfv /tmp/aggregate_fuzzer_repro/* chmod -R 777 /tmp/aggregate_fuzzer_repro @@ -139,6 +142,7 @@ jobs: name: aggregate-fuzzer-failure-artifacts path: | /tmp/aggregate_fuzzer_repro + /tmp/server.log linux-spark-fuzzer-run: runs-on: ubuntu-latest diff --git a/scripts/start-prestojava.sh b/scripts/start-prestojava.sh index 7057131a1e5d..416af62185fe 100755 --- a/scripts/start-prestojava.sh +++ b/scripts/start-prestojava.sh @@ -15,8 +15,5 @@ set -e -nohup $PRESTO_HOME/bin/launcher --pid-file=/tmp/pidfile run > /tmp/server.log -#wait a few seconds for presto to start -sleep 60 -echo 'CREATE SCHEMA hive.tpch;' > /tmp/hive_create.sql -/opt/presto-cli --server 127.0.0.1:8080 --file /tmp/hive_create.sql +$PRESTO_HOME/bin/launcher --pid-file=/tmp/pidfile run +