Skip to content

Release build inputs for libpg-query 17.7.4 WASM provenance #170

Closed

Description

@corriecjvv

I am documenting source-to-WASM provenance for libpg-query 17.7.4; this is not a bug or security allegation. npm metadata identifies wrapper commit dc6f90d. At that commit, versions/17/package.json names libpgQueryTag 17-6.1.0, while the Makefile clones constructive-io/libpg_query at 17-constructive and the Docker command uses an unpinned emscripten/emsdk image.

Could you provide the immutable C-source commit, exact Emscripten SDK/image digest and build environment/command that produced the 17.7.4 WASM and JS loaders, or a release-specific build-provenance statement linking those inputs to the npm artifact? Does the no-Docker 3.1.59 workflow describe this release's build, or a different target? An existing public manifest or reference would be sufficient; no new build or release is requested.

Activity

  1. added a commit that references this issue on Oct 23, 2026
  2. pyramation commented on Oct 24, 2026

    @pyramation
    Collaborator

    Thanks for asking. Here are the inputs that produced libpg-query@17.7.4:

    • Wrapper: constructive-io/libpg-query-node @ dc6f90d41ba4d383df859e8638dfe240abf16660 (the npm gitHead), built in versions/17.
    • C source: constructive-io/libpg_query, branch 17-constructive @ c7fb07ad0b1910c72d28d445e0904e7a738f71c8. The libpgQueryTag: 17-6.1.0 in that commit's package.json was stale metadata; the Makefile's 17-constructive clone is what was built.
    • Toolchain: emscripten/emsdk:6.0.3, via docker run --rm -v $(pwd):/src -u $(id -u):$(id -g) emscripten/emsdk:6.0.3 emmake make build.
    • Outputs: rebuilding from those inputs gives files byte-identical to the npm tarball:
      • wasm/libpg-query.wasm 06fbfc24bcc98298770019a0bc4b715726a6b8fdbf1fcc1a4476a77512b000ac
      • wasm/libpg-query.js b6c1a60cfe748dfc359172c409dbd4cb37e2114e4135271305b74c01e235683d
    • The no-Docker emsdk 3.1.59 workflow is a separate, stale v18-only build and did not produce this release.

    As of #174, each versions/<n>/package.json pins libpgQueryRepo, libpgQueryTag and libpgQueryCommit in x-publish, and the build uses exactly those. Published packages also record x-publish.wasmSha256. Starting with today's releases (13.8.0–18.2.0), npm view libpg-query@<version> x-publish gives you everything needed to rebuild and compare. For example, libpg-query@17.8.0 records fork commit 1ade880fd1bbc6e89c33ea2424ddc366c41c1408 and the WASM hash above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions