Skip to content

Run against Postgres regression tests, add memory leak test and fix some DDL - #46

Merged
levkk merged 3 commits into
mainfrom
levkk-test-harness
Aug 7, 2026
Merged

Run against Postgres regression tests, add memory leak test and fix some DDL#46
levkk merged 3 commits into
mainfrom
levkk-test-harness

Conversation

@levkk

@levkk levkk commented Aug 7, 2026

Copy link
Copy Markdown
Contributor
  • Run parse and deparse against the Postgres regression tests suite
  • Run it again with valgrind to make sure nothing leaks
  • Fix GRANT and CREATE STATISTICS handling

TIL:

  • pg_query runs itself against Postgres regression tests; we do that now too
  • they already did the work to check for memory leaks, we use their valgrind suppression config to do the same 🙇 🙏

@levkk levkk changed the title test: add postgres regression tests and valgrind memory leak check Run against Postgres regression tests, add memory leak test and fix some DDL Aug 7, 2026
@levkk
levkk marked this pull request as ready for review August 7, 2026 19:03
@levkk
levkk requested a review from sgrif August 7, 2026 19:03
@levkk

levkk commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

@sgrif gonna merge this one, seems solid, ping me if you need any changes here

@levkk
levkk merged commit a2e4c13 into main Aug 7, 2026
1 check passed
@levkk
levkk deleted the levkk-test-harness branch August 7, 2026 19:07
Comment thread build.rs
.allowlist_item("pg_query_split_with_scanner")
.allowlist_item("pg_query_free_split_result")
.allowlist_item("wrapped_raw_expression_tree_walker_impl")
.override_abi(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What's the reasoning for removing this? This will result in panics turning into process aborts

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh oops! Not sure, let me double check. Would of been good to have a test to catch this one.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Yeah, surprised they didn't. I remember having explicit tests for this

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Ah, it's because we have the catch_unwind in a different spot now. So this change shouldn't break anything, but still seems unrelated to everything else in the PR

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh I see what happened. It wasn't linking on Mac (but links on Linux). Not sure why though.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Putting it back in #47

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