Skip to content

test: build the WASM depth test queries with one helper - #22

Merged
devin-ai-integration[bot] merged 2 commits into
18-constructivefrom
chore/wasm-depth-test-one-builder
Nov 26, 2026
Merged

devin-ai-integration[bot] merged 2 commits into
18-constructivefrom
chore/wasm-depth-test-one-builder

Conversation

@pyramation

@pyramation pyramation commented Nov 26, 2026 •

Copy link
Copy Markdown

Summary

Cleanup of test/wasm_depth.c (added in #18–#20); no library code and no build or stack setting changes.

check_depth and check_plpgsql_depth each built their query with their own malloc/memcpy loop and printed their own PASS/FAIL lines. Both now use:

  • nested_query(prefix, open, body, close, suffix, depth): the one place a query is built
  • check_result(name, error, has_tree, expect_error): the one place a result is judged and printed

check_depth takes the closing text (")" or "") instead of a nested flag. Same six cases at the same depths, 74 lines removed and 46 added.

A check added later (for example the normalize one in #21) needs only its own call to the library plus nested_query.

Ran natively against a build of this branch: all five parse cases and the overflow case pass; the build_wasm job runs them in WebAssembly.


libpg-query and parser opened this PR for Dan
Implemented in session Review recent WASM depth branches for cleanliness
Review with Devin · Open in Devin Desktop


@devin-ai-integration

Copy link
Copy Markdown

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@luxor-code-review

luxor-code-review Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Review complete. No issues found — approved ✅.


This PR rewrites the stack-depth regression test harness, restructuring how nested SQL/PL-pgSQL depth cases are generated, executed, and reported, with clearer pass/fail diagnostics and exit-status aggregation. No production code changes; two minor nits surfaced during review were adjudicated as below the reporting threshold.

Reviewed commit: 1d35a58

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f7706e4b-82b1-4975-a679-7b107cdacb92

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@devin-ai-integration
devin-ai-integration Bot merged commit 5f8b837 into 18-constructive Nov 26, 2026
35 checks passed
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.

1 participant