Skip to content

Qualify the complete Emscripten callback catalog for static Worker Pyodide assets #780

Description

@kamilio

Poe2 integration CI found an unhandled initialization rejection while production buffered-shell Python assertions passed. Stack: reportUndefinedSymbols → addFunction → convertJsFunctionToWasm → static asset registry CompileError.

Pinned Pyodide 314.0.6 first requested the vi adapter, then vii. The recipe admitting only loader helpers/ccall/empty module omitted the initialization callback signature catalog.

Poe2 now authenticates the glue's exact size/SHA256, extracts its finite literal .sig annotations, normalizes wasm32 pointers to i32, and builds static import/re-export callback modules with the pinned padded ULEB encoding. All assets are statically precompiled; runtime admission still compares complete bytes. No dynamic compilation/unsafeEval/global engine patch is granted.

The focused production Worker test now passes with zero unhandled rejections. Please include the full callback catalog in the documented static asset recipe and upstream qualification, including an unhandled-error gate.

Reproduction: https://github.com/poe-internal/poe2/actions/runs/35409396941/job/105805774321
Clean startup qualification: https://github.com/poe-internal/poe2/actions/runs/35409969068/job/105807463304 (later failed because a newly deployed temporary probe returned404 before readiness)
Integration PR: https://github.com/poe-internal/poe2/pull/14982

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions