Skip to content

Revert fingerprint noinline helper and bump WASM CI to Node 22 - #25

Merged
devin-ai-integration[bot] merged 1 commit into
18-constructivefrom
chore/revert-fingerprint-noinline
Nov 26, 2026
Merged

devin-ai-integration[bot] merged 1 commit into
18-constructivefrom
chore/revert-fingerprint-noinline

Conversation

@pyramation

@pyramation pyramation commented Nov 26, 2026 •

Copy link
Copy Markdown

Summary

Reverts the Node 20-only _fingerprintCall (pg_noinline) workaround from #23 and bumps build_wasm CI from Node 20 to Node 22.

  • Restores direct _fingerprint<NodeType>(...) calls in scripts/generate_fingerprint_outfuncs.rb and src/include/pg_query_fingerprint_conds.c, and removes _fingerprintCall / FingerprintFunc from src/pg_query_fingerprint.c.
  • Keeps test/wasm_depth.c's fingerprint depth test and the node --no-liftoff test/wasm_depth.js fingerprint CI step so TurboFan fingerprint depth stays verified on Node 22+.
  • No WASM memory or stack setting changes.

Verified locally with native make test and Emscripten 6.0.3 wasm_depth.js (including --no-liftoff fingerprint) on Node v22.23.5 and Node v24.22.3.


libpg-query and parser opened this PR for Dan
Implemented in session Drop Node 20 and revert fingerprint noinline helper
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 ✅.


The change replaces the indirect _fingerprintCall trampoline with direct _fingerprint* calls to reduce stack-frame size in WASM builds, and bumps the CI runner from Node 20 to Node 22. Verified findings confirm the inlining is byte-neutral for fingerprint output and the generator stays in sync with the generated C.

Files Change
src/pg_query_fingerprint.c Removes the FingerprintFunc typedef and pg_noinline _fingerprintCall trampoline; dispatch now calls _fingerprint* functions directly
src/include/pg_query_fingerprint_conds.c Regenerated dispatch calls the _fingerprint* functions directly instead of through the removed trampoline
scripts/generate_fingerprint_outfuncs.rb Generator updated to emit the direct-call form so generated C matches
.github/workflows/ci.yml Bumps the Node runtime from 20 to 22

One low-severity note remains: the deleted comment documented a Node 20/V8 stack-exhaustion workaround, and the new minimum runtime is not documented anywhere in the repo.

Reviewed commit: ecd18fc

@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: bd323f0e-a2eb-4793-a5e1-89bb032c4271

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 4fcb786 into 18-constructive Nov 26, 2026
36 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