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

feat(iroh-net-report): Support wasm32 building & running #3139

Merged
merged 13 commits into from
Feb 14, 2025

Conversation

matheus23
Copy link
Member

@matheus23 matheus23 commented Jan 20, 2025

Description

This makes iroh-net-report compile to Wasm. We make sure it's likely to work by grepping the generated Wasm file for "env" imports (which would make it not work in browsers).
Mostly this will disable functionality in iroh-net-report for the browser target - specifically, it disables STUN, QAD, ICMP and all other probes besides HTTPS to relays.
I've experimentally verified this code works with an integration test, it's really hard to come up with a good strategy for automating this testing due to requiring running cross-languages.
I'd like to do that as a follow-up once #3145 is merged.

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.

@matheus23 matheus23 self-assigned this Jan 20, 2025
@matheus23 matheus23 changed the title Matheus23/iroh net report browser feat(iroh-net-report): Support wasm32 building & running Jan 20, 2025
Copy link

github-actions bot commented Jan 20, 2025

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh/pr/3139/docs/iroh/

Last updated: 2025-02-14T09:30:33Z

Copy link

github-actions bot commented Jan 20, 2025

Netsim report & logs for this PR have been generated and is available at: LOGS
This report will remain available for 3 days.

Last updated for commit: 9866c4f

@matheus23 matheus23 force-pushed the matheus23/iroh-net-report-browser branch from 2b9f228 to 942d4ac Compare January 20, 2025 16:41
@matheus23
Copy link
Member Author

The only thing that iroh-net-report would be doing in Wasm is running HTTPS probes.
Turns out we don't actually use them in iroh.

I have a browser version of iroh working that doesn't depend on iroh-net-report at all. This makes stuff a lot simpler.

So, I'm going to close this.

@matheus23 matheus23 closed this Jan 24, 2025
@matheus23 matheus23 reopened this Jan 24, 2025
@matheus23 matheus23 changed the base branch from main to matheus23/iroh-relay-browser January 24, 2025 08:35
@matheus23 matheus23 closed this Jan 24, 2025
@matheus23
Copy link
Member Author

Hm, what I wrote above is incorrect. We do need the relay latencies to decide which relay to connect to.

@matheus23 matheus23 reopened this Jan 24, 2025
@matheus23 matheus23 force-pushed the matheus23/iroh-net-report-browser branch 3 times, most recently from 19fc5ba to 4a84051 Compare January 28, 2025 15:24
Base automatically changed from matheus23/iroh-relay-browser to main January 28, 2025 16:21
@matheus23 matheus23 force-pushed the matheus23/iroh-net-report-browser branch from 4a84051 to 5191a9c Compare January 28, 2025 17:10
@matheus23 matheus23 force-pushed the matheus23/iroh-net-report-browser branch from 5286020 to d4149ba Compare January 29, 2025 10:07
@matheus23 matheus23 changed the base branch from main to matheus23/n0-future January 29, 2025 10:07
@matheus23 matheus23 force-pushed the matheus23/iroh-net-report-browser branch 2 times, most recently from 13b0ae0 to 3fd7585 Compare January 29, 2025 10:58
Base automatically changed from matheus23/n0-future to main January 29, 2025 15:46
@matheus23 matheus23 force-pushed the matheus23/iroh-net-report-browser branch from 3fd7585 to f9a3720 Compare January 29, 2025 15:48
@matheus23 matheus23 force-pushed the matheus23/iroh-net-report-browser branch from f9a3720 to 059ec18 Compare February 6, 2025 16:58
@matheus23 matheus23 force-pushed the matheus23/iroh-net-report-browser branch from 059ec18 to 85ea312 Compare February 11, 2025 14:56
@matheus23 matheus23 marked this pull request as ready for review February 12, 2025 11:06
@matheus23 matheus23 added this to the v0.33.0 milestone Feb 13, 2025
@matheus23 matheus23 added this pull request to the merge queue Feb 14, 2025
Merged via the queue into main with commit 6f923a3 Feb 14, 2025
26 checks passed
@matheus23 matheus23 deleted the matheus23/iroh-net-report-browser branch February 14, 2025 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants