Skip to content

test: reproduce callback struct metadata collision in standalone tests - #2012

Merged
mrousavy merged 1 commit into
hannojg/fix-swift-struct-callback-metadatafrom
hannojg/repro-callback-metadata
Oct 28, 2026
Merged

mrousavy merged 1 commit into
hannojg/fix-swift-struct-callback-metadatafrom
hannojg/repro-callback-metadata

Conversation

@hannojg

@hannojg hannojg commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Adds a callback-bearing struct to nitro-test-external with the same callback signature as JsStyleStruct in nitro-test. The normal iOS test build now reproduces the duplicate Swift metadata error.

The new interop case round-trips a native callback through both modules, runs GC, then invokes the returned callback across all four implementation pairs.

The iOS build and all 11 JavaScript suites pass with the fix:

@vercel

vercel Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
nitro-docs Skipped Skipped Oct 28, 2026 10:52am UTC

Request Review

@hannojg

hannojg commented Oct 27, 2026

Copy link
Copy Markdown
Member Author

Agents suggestion to address this:

@hannojg hannojg changed the title repro(swift): cross-module callback metadata collision test: reproduce callback struct metadata collision in standalone tests Oct 27, 2026
@mrousavy
mrousavy marked this pull request as ready for review October 28, 2026 10:49
@mrousavy
mrousavy changed the base branch from v1 to hannojg/fix-swift-struct-callback-metadata October 28, 2026 10:50
@mrousavy
mrousavy added this pull request to stack #2014 October 28, 2026 10:50
@mrousavy
mrousavy force-pushed the hannojg/repro-callback-metadata branch from efaeced to 80f223b Compare October 28, 2026 10:51
@mrousavy
mrousavy marked this pull request as draft October 28, 2026 10:52
@mrousavy
mrousavy force-pushed the hannojg/repro-callback-metadata branch from 80f223b to 809aae7 Compare October 28, 2026 10:52
@mrousavy
mrousavy marked this pull request as ready for review October 28, 2026 10:52
@mrousavy
mrousavy merged commit 621dd69 into v1 Oct 28, 2026
12 of 14 checks passed

This branch was previously deployed

1 inactive deployment
Preview — 809aae7a Deployed Oct 28, 2026 by vercel[bot]
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.

2 participants