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

Fix multiple issues on wasm32, and runs url tests in CI #886

Merged
merged 1 commit into from Apr 4, 2024

Conversation

micolous
Copy link
Contributor

@micolous micolous commented Nov 28, 2023

This fixes multiple issues on wasm32-unknown-unknown:

  • Remove Url::socket_addrs() on wasm32-unknown-unknown. That function will never work – those platform API calls are not supported.
  • Disable unit tests which won't work on wasm32-unknown-unknown.
  • Run tests using wasm_bindgen_test on wasm32-unknown-unknown.
  • Remove panic::catch_unwind from wpt tests, as that conflicts with wasm-bindgen-test's panic handler.
  • Run url tests on wasm32-unknown-unknown in CI.

Copy link

codecov bot commented Nov 28, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (main@a4dd58b). Click here to learn what that means.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #886   +/-   ##
=======================================
  Coverage        ?   81.88%           
=======================================
  Files           ?       20           
  Lines           ?     3545           
  Branches        ?        0           
=======================================
  Hits            ?     2903           
  Misses          ?      642           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@micolous micolous changed the title Fix multiple issues on wasm32, and runs Url tests in CI Fix multiple issues on wasm32, and runs url tests in CI Nov 28, 2023
@micolous
Copy link
Contributor Author

micolous commented Apr 3, 2024

Any updates?

* remove `Url::socket_addrs` on wasm32-unknown-unknown (it won't work, those
  platform API calls are not supported)

* disable unit tests which won't work on wasm32-unknown-unknown

* run tests in `wasm_bindgen_test` on wasm32-unknown-unknown

* remove `panic::catch_unwind` from wpt tests, as that conflicts with
  wasm-bindgen's panic handler

* run the tests in CI
Copy link
Collaborator

@valenting valenting left a comment

Choose a reason for hiding this comment

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

Thanks!

@valenting valenting added this pull request to the merge queue Apr 4, 2024
Merged via the queue into servo:main with commit 49eea1c Apr 4, 2024
14 checks passed
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.

None yet

2 participants