Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json-from-wast: Include binary form of text files where possible #1775

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

alexcrichton
Copy link
Member

This commit is aimed at addressing #1771 by including a new binary_filename field in the JSON which is populated when the test itself is module quote, or a textual module, but the module parse successfully. This should help avoid the need for a text parser for external users using the tool while still reflecting the test case itself where it's text-based.

Closes #1771

alexcrichton added a commit to alexcrichton/wasm-tools that referenced this pull request Sep 10, 2024
The very large diffs from errors in development bytecodealliance#1775 caused OOMs so I
figured now's as good a time as any to switch over to using
`pretty_assertions` which other crates in the workspace are already using.
This commit is aimed at addressing bytecodealliance#1771 by including a new
`binary_filename` field in the JSON which is populated when the test
itself is `module quote`, or a textual module, but the module parse
successfully. This should help avoid the need for a text parser for
external users using the tool while still reflecting the test case
itself where it's text-based.

Closes bytecodealliance#1771
@alexcrichton
Copy link
Member Author

Looks like Windows was stack overflowing due to an invalid module being encoded. The invalid module stack overflows in debug mode but presents a first-class error in release mode. Instead of going too deep into fixing that I've updated this to skip encode() for assert_malformed modules

github-merge-queue bot pushed a commit that referenced this pull request Sep 11, 2024
The very large diffs from errors in development #1775 caused OOMs so I
figured now's as good a time as any to switch over to using
`pretty_assertions` which other crates in the workspace are already using.
@fitzgen fitzgen added this pull request to the merge queue Sep 12, 2024
Merged via the queue into bytecodealliance:main with commit ba02e8f Sep 12, 2024
30 checks passed
@alexcrichton alexcrichton deleted the include-binary-form branch September 12, 2024 20:47
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.

JsonFromWast issue with the latest testsuite
2 participants