Skip to content

Commit

Permalink
sqllogictest: Fix the Nightly SLT test
Browse files Browse the repository at this point in the history
make a dedicated workflow in test/sqllogictest/mzcompose.yml
the way one existed for the sql-fast test
  • Loading branch information
philip-stoev authored and ruchirK committed Jun 21, 2021
1 parent b540cbe commit df7d083
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
3 changes: 2 additions & 1 deletion ci/slt/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
# by the Apache License, Version 2.0.

steps:
- command: ci/slt/slt.sh
- id: sqllogictest
label: ":bulb: SQL logic tests"
timeout_in_minutes: 300
artifact_paths: target/slt-summary.json
plugins:
Expand Down
12 changes: 0 additions & 12 deletions ci/slt/slt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,6 @@

set -euo pipefail

. misc/shlib/shlib.bash

if [[ ! "${BUILDKITE-}" ]]; then
sqllogictest() {
cargo run --release --bin sqllogictest -- "$@"
}
fi

if [[ "${BUILDKITE-}" ]]; then
await_postgres -h postgres -p 5432
fi

export RUST_BACKTRACE=full

mkdir -p target
Expand Down
13 changes: 11 additions & 2 deletions test/sqllogictest/mzcompose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ mzworkflows:
dbname: postgres
- step: run
service: sqllogictest-svc
entrypoint: ci/test/slt-fast.sh

sqllogictest:
steps:
- step: start-services
services: [postgres]
- step: wait-for-postgres
dbname: postgres
- step: run
service: sqllogictest-svc
entrypoint: ci/slt/slt.sh

services:
sqllogictest-svc:
Expand All @@ -31,8 +42,6 @@ services:
- PGHOST=postgres
- PGPASSWORD=postgres
depends_on: [postgres]
entrypoint:
- ci/test/slt-fast.sh
postgres:
image: postgres:11.4
ports:
Expand Down

0 comments on commit df7d083

Please sign in to comment.