Skip to content

Make wasm-tools mock in build metadata test cross-platform - #1885

Merged
anthony-gomez-fastly merged 1 commit into
mainfrom
make-python-tests-windows-compatible
Aug 13, 2026
Merged

Make wasm-tools mock in build metadata test cross-platform#1885
anthony-gomez-fastly merged 1 commit into
mainfrom
make-python-tests-windows-compatible

Conversation

@anthony-gomez-fastly

@anthony-gomez-fastly anthony-gomez-fastly commented Aug 13, 2026

Copy link
Copy Markdown
Member

Change summary

TestReadExistingPackageInfo mocked wasm-tools with a bash script, which exec.Command cannot run on Windows (no shebang support, no POSIX exec bits). Replace it with a small Go program compiled on the fly that emits the scenario JSON via an env var, so the test passes on windows-latest CI.

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  • Does your submission pass tests?

TestReadExistingPackageInfo mocked wasm-tools with a bash script, which
exec.Command cannot run on Windows (no shebang support, no POSIX exec
bits). Replace it with a small Go program compiled on the fly that
emits the scenario JSON via an env var, so the test passes on
windows-latest CI.
@anthony-gomez-fastly
anthony-gomez-fastly requested a review from a team as a code owner August 13, 2026 15:07
@anthony-gomez-fastly anthony-gomez-fastly added the Skip-Changelog do not add a changelog entry for this change label Aug 13, 2026

@kpfleming kpfleming left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good solution!

@anthony-gomez-fastly
anthony-gomez-fastly enabled auto-merge (squash) August 13, 2026 15:11
@anthony-gomez-fastly
anthony-gomez-fastly merged commit 25e3544 into main Aug 13, 2026
16 of 24 checks passed
@anthony-gomez-fastly
anthony-gomez-fastly deleted the make-python-tests-windows-compatible branch August 13, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Skip-Changelog do not add a changelog entry for this change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants