diff --git a/.github/workflows/TestDebug.yml b/.github/workflows/TestDebug.yml new file mode 100644 index 0000000..9900cf0 --- /dev/null +++ b/.github/workflows/TestDebug.yml @@ -0,0 +1,42 @@ +name: Test Debug +on: + workflow_dispatch: + pull_request: + push: + branches: + - '**' + - '!main' + +jobs: + build-duckdb: + name: Build DuckDB + runs-on: ubuntu-latest + timeout-minutes: 120 + outputs: + duckdb-hash: ${{ steps.find-hash.outputs.hash }} + env: + BUILD_ICU: 1 + BUILD_JSON: 1 + BUILD_TPCH: 1 + BUILD_TPCDS: 1 + BUILD_PARQUET: 1 + BUILD_JEMALLOC: 1 + CRASH_ON_ASSERT: 1 + + steps: + - name: Dependencies + shell: bash + run: sudo apt-get update -y -qq && sudo apt-get install -y -qq ninja-build ccache + + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + submodules: recursive + + - name: Setup Ccache + uses: hendrikmuhs/ccache-action@main + + - name: Build and Test + shell: bash + run: | + make test_debug diff --git a/duckdb b/duckdb index 5be7060..5bdb091 160000 --- a/duckdb +++ b/duckdb @@ -1 +1 @@ -Subproject commit 5be70607225453016b36361f56c832517b1cdb8a +Subproject commit 5bdb091a5d67460da3ca3a89f21b7cdc588d4544 diff --git a/scripts/run_fuzzer.py b/scripts/run_fuzzer.py index a0bdac3..cfc2aee 100644 --- a/scripts/run_fuzzer.py +++ b/scripts/run_fuzzer.py @@ -16,6 +16,7 @@ dry = False max_queries = 1000 verification = False + for param in sys.argv: if param == '--sqlsmith': fuzzer = 'sqlsmith' @@ -108,6 +109,9 @@ def run_shell_command(cmd): else: current_errors = fuzzer_helper.extract_github_issues(shell, perform_checks) +# Don't go on and fuzz if perform checks = true +if perform_checks: + exit(0) last_query_log_file = 'sqlsmith.log' complete_log_file = 'sqlsmith.complete.log' @@ -118,6 +122,7 @@ def run_shell_command(cmd): ==========================================''' ) + load_script = create_db_script(db) fuzzer_name = get_fuzzer_name(fuzzer) fuzzer = ( diff --git a/test/sql/call_fuzzyduck.test b/test/sql/call_fuzzyduck.test new file mode 100644 index 0000000..3964217 --- /dev/null +++ b/test/sql/call_fuzzyduck.test @@ -0,0 +1,11 @@ +# name: test/sql/call_fuzzyduck.test +# description: Test fuzzyduck +# group: [fuzzyduck] + +require sqlsmith + +statement ok +call fuzzyduck(max_queries=2, verbose_output=1, log='sqlsmith.log', complete_log='sqlsmith.complete.log', enable_verification=True); + +statement ok +call fuzzyduck(max_queries=2, verbose_output=1, log='__TEST_DIR__/logs.txt', complete_log='__TEST_DIR__/clog.txt', enable_verification=false); diff --git a/test/sql/sql_reduce.test b/test/sql/sql_reduce.test index 1bfb3b1..c261974 100644 --- a/test/sql/sql_reduce.test +++ b/test/sql/sql_reduce.test @@ -1,4 +1,4 @@ -# name: test/sql_reduce.test +# name: test/sql/sql_reduce.test # description: Test reduce SQL statement # group: [sqlsmith]