Skip to content

Cleanup python run_fuzzer#59

Merged
Tmonster merged 6 commits intoduckdb:mainfrom
c-herrewijn:cleanup
Nov 14, 2025
Merged

Cleanup python run_fuzzer#59
Tmonster merged 6 commits intoduckdb:mainfrom
c-herrewijn:cleanup

Conversation

@c-herrewijn
Copy link
Copy Markdown
Member

  • fix syntax error: expected_error does not exist in function run_queries_until_crash_mp
  • don't print stdout and stderr if fuzzer finds no bugs (to prevent clutter in CI logs)
  • in case of error, print all queries before the reducer takes effect, so be able to verify if the reducer works correctly
  • reintroduce function sanitize_error() - it was removed in 1f4773a , but it is still useful, since the stack trace needs to be sanitized different from the actual error msg.
  • add function get_internal_exception_msg() to isolate the actual internal exception error. In case of a multi statement it can be somewhere in the middle of the stderr output (e.g. preceded by 'harmless' Binder errors, and followed by the stack trace.)

Copy link
Copy Markdown
Member

@Tmonster Tmonster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! A couple of questions

Comment thread scripts/reduce_sql.py Outdated
Comment thread scripts/reduce_sql.py
else:
print(f"last statement {last_statement} produces no error")
if fuzzer_helper.is_internal_error(stderr) and len(expected_error) > 0:
if returncode < 0 or fuzzer_helper.is_internal_error(stderr):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can return code be less than 0?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread scripts/run_fuzzer.py Outdated
@Tmonster
Copy link
Copy Markdown
Member

Thanks!

@Tmonster Tmonster merged commit 597f0ac into duckdb:main Nov 14, 2025
23 checks passed
@c-herrewijn c-herrewijn deleted the cleanup branch November 25, 2025 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants