From 2a26c014128e2d06e3715f06f46ea9d0170dece6 Mon Sep 17 00:00:00 2001 From: tison Date: Sun, 18 Feb 2024 19:51:24 +0800 Subject: [PATCH] fix: commit_short sqlness test case (#3313) * ci: debug sqlness jobs Signed-off-by: tison * fix: commit_short test case Signed-off-by: tison * fixup! fix: commit_short test case Signed-off-by: tison * fixup! fixup! fix: commit_short test case Signed-off-by: tison * revert uploading Signed-off-by: tison --------- Signed-off-by: tison --- .github/workflows/develop.yml | 6 ++++-- tests/cases/standalone/common/function/system.result | 4 ++-- tests/cases/standalone/common/function/system.sql | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index 4a56e44fb4..e819b6b54a 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -139,7 +139,8 @@ jobs: - name: Unzip binaries run: tar -xvf ./bins.tar.gz - name: Run sqlness - run: ./bins/sqlness-runner -c ./tests/cases --bins-dir ./bins + run: RUST_BACKTRACE=1 ./bins/sqlness-runner -c ./tests/cases --bins-dir ./bins + # FIXME: Logs cannot found be on failure (or even success). Need to figure out the cause. - name: Upload sqlness logs if: always() uses: actions/upload-artifact@v3 @@ -170,7 +171,8 @@ jobs: working-directory: tests-integration/fixtures/kafka run: docker compose -f docker-compose-standalone.yml up -d --wait - name: Run sqlness - run: ./bins/sqlness-runner -w kafka -k 127.0.0.1:9092 -c ./tests/cases --bins-dir ./bins + run: RUST_BACKTRACE=1 ./bins/sqlness-runner -w kafka -k 127.0.0.1:9092 -c ./tests/cases --bins-dir ./bins + # FIXME: Logs cannot be found on failure (or even success). Need to figure out the cause. - name: Upload sqlness logs if: always() uses: actions/upload-artifact@v3 diff --git a/tests/cases/standalone/common/function/system.result b/tests/cases/standalone/common/function/system.result index 04b4c1d69d..5af6bbfcd0 100644 --- a/tests/cases/standalone/common/function/system.result +++ b/tests/cases/standalone/common/function/system.result @@ -1,12 +1,12 @@ -- SQLNESS REPLACE branch:\s+.+ branch: BRANCH -- SQLNESS REPLACE commit:\s+.+ commit: COMMIT --- SQLNESS REPLACE commit+\s+short:\s+.+ commit short: COMMIT SHORT +-- SQLNESS REPLACE commit_short:\s+.+ commit_short: COMMIT_SHORT -- SQLNESS REPLACE dirty:\s+.+ dirty: DIRTY -- SQLNESS REPLACE version:\s+.+ version: VERSION -- SQLNESS REPLACE [\s\-]+ SELECT build(); -++|build()|++|branch:BRANCH|commit:COMMIT|commitshort:COMMITSHORT|dirty:DIRTY|version:VERSION++ +++|build()|++|branch:BRANCH|commit:COMMIT|commit_short:COMMIT_SHORT|dirty:DIRTY|version:VERSION++ -- SQLNESS REPLACE greptimedb-[\d\.]+ greptimedb-VERSION SELECT version(); diff --git a/tests/cases/standalone/common/function/system.sql b/tests/cases/standalone/common/function/system.sql index f87c13d514..9a4e25487c 100644 --- a/tests/cases/standalone/common/function/system.sql +++ b/tests/cases/standalone/common/function/system.sql @@ -1,6 +1,6 @@ -- SQLNESS REPLACE branch:\s+.+ branch: BRANCH -- SQLNESS REPLACE commit:\s+.+ commit: COMMIT --- SQLNESS REPLACE commit+\s+short:\s+.+ commit short: COMMIT SHORT +-- SQLNESS REPLACE commit_short:\s+.+ commit_short: COMMIT_SHORT -- SQLNESS REPLACE dirty:\s+.+ dirty: DIRTY -- SQLNESS REPLACE version:\s+.+ version: VERSION -- SQLNESS REPLACE [\s\-]+