Skip to content

Commit 3e65dee

Browse files
Copilotkwannoel
andauthored
feat(risedev): add sqlsmith-reducer risedev command (#23606)
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: kwannoel <[email protected]>
1 parent bc5d07d commit 3e65dee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,7 +1510,7 @@ cargo build --bin sqlsmith-reducer \
15101510
alias = "sql-reduce-short"
15111511

15121512
[tasks.sql-reduce-short]
1513-
category = "Risedev - Reduce"
1513+
category = "RiseDev - Reduce"
15141514
description = "Reduce a failing SQL query while preserving error"
15151515
dependencies = ["pre-start-dev", "build-sqlsmith-reducer"]
15161516
script = '''
@@ -1527,18 +1527,18 @@ fi
15271527
mkdir -p '.sqlsmith'
15281528
echo "Shrinking: $INPUT_FILE"
15291529
1530-
RUST_LOG=info target/debug/sqlsmith-reducer --input-file "$INPUT_FILE" --output-file "$OUTPUT_FILE" --run-rw-cmd "./risedev k && ./risedev d" 1>"$LOG_FILE" 2>&1
1530+
RUST_LOG=info target/${RISEDEV_BUILD_TARGET_DIR}${BUILD_MODE_DIR}/sqlsmith-reducer --input-file "$INPUT_FILE" --output-file "$OUTPUT_FILE" --run-rw-cmd "./risedev k && ./risedev d" 1>"$LOG_FILE" 2>&1
15311531
15321532
echo "Shrunk file: $OUTPUT_FILE"
15331533
echo "Log file: $LOG_FILE"
15341534
'''
15351535

15361536
[tasks.sql-reduce-full]
1537-
category = "Risedev - Reduce"
1537+
category = "RiseDev - Reduce"
15381538
description = "Reduce a failing SQL query while preserving error"
15391539
dependencies = ["pre-start-dev", "build-sqlsmith-reducer"]
15401540
script = '''
15411541
#!/usr/bin/env bash
15421542
1543-
target/debug/sqlsmith-reducer "$@"
1543+
target/${RISEDEV_BUILD_TARGET_DIR}${BUILD_MODE_DIR}/sqlsmith-reducer "$@"
15441544
'''

0 commit comments

Comments
 (0)