Skip to content

test: scan 100000 chained terms in the WASM depth test - #24

Merged
devin-ai-integration[bot] merged 5 commits into
18-constructivefrom
feat/wasm-depth-scan
Nov 26, 2026
Merged

devin-ai-integration[bot] merged 5 commits into
18-constructivefrom
feat/wasm-depth-scan

Conversation

@pyramation

@pyramation pyramation commented Nov 26, 2026 •

Copy link
Copy Markdown

Summary

test/wasm_depth.c runs deep inputs through pg_query_parse, pg_query_parse_plpgsql and pg_query_normalize; #23 adds pg_query_fingerprint. The one entry point libpg-query-node calls that had no case is pg_query_scan_tokens. This adds it:

ok &= check_scan_depth("scan 100000 chained terms", 100000);

check_scan_depth scans SELECT 1+1+… and expects no error and exactly 2 * depth tokens. The scanner does not recurse, so the size is 100,000 terms rather than a few thousand.

Stacked on #22 (it uses that PR's nested_query helper); merge that first and this retargets to 18-constructive. No library code and no build or stack setting changes.

Local run (emsdk 6.0.3, same flags as CI): all seven cases pass, including PASS scan 100000 chained terms: scanned successfully.


libpg-query and parser opened this PR for Dan
Implemented in session Find why regressions slip past our release process
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 adds a single new test file that stress-tests deeply nested expression parsing under WebAssembly: it builds a query with 100000 chained + terms, runs it through the parse API, and asserts the token count matches expectations.

Files Change
test/wasm_depth.c New depth-stress test asserting token arithmetic for a 100000-term chained + expression and proper error/overflow handling.

Reviewed commit: d0e65ce

@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: b535b237-16cc-4109-a783-38cf08a615e0

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 changed the base branch from chore/wasm-depth-test-one-builder to 18-constructive November 26, 2026 08:07
@devin-ai-integration
devin-ai-integration Bot merged commit 9ac9836 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