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

Pass through --weak-refs --reference-types flags to bindgen #937

Merged
merged 2 commits into from
Jan 14, 2023

Conversation

serprex
Copy link
Contributor

@serprex serprex commented Nov 19, 2020

Fixes #930
Closes #888

I'm wondering if it'd make sense to have a --bind-gen-opts flag which allows the user to manually specify args to pass through

@mattcollier
Copy link

mattcollier commented Nov 29, 2020

@serprex Thank you for putting this together. It appears that a patch is also required to wasm-opt?

I've been successfully building my project using:

cargo build --target wasm32-unknown-unknown
wasm-bindgen ./target/wasm32-unknown-unknown/release/wasm_test.wasm --out-dir pkg --target web --reference-types

But when I attempt to build with your fork I get:

matt@matt-X570-AORUS-ELITE:~/rust/wasm_test$ ~/rust/wasm-pack/target/debug/wasm-pack build --target web --reference-types
[INFO]: Checking for the Wasm target...
[INFO]: Compiling to Wasm...
    Finished release [optimized] target(s) in 0.01s
:-) [WARN]: origin crate has no README
[INFO]: Installing wasm-bindgen...
[INFO]: Optimizing wasm binaries with `wasm-opt`...
[parse exception: Only 1 table definition allowed in MVP (at 0:467)]
Fatal: error in parsing input
Error: failed to execute `wasm-opt`: exited with exit code: 1
  full command: "/home/matt/.cache/.wasm-pack/wasm-opt-4d7a65327e9363b7/wasm-opt" "/home/matt/rust/wasm_test/pkg/wasm_test_bg.wasm" "-o" "/home/matt/rust/wasm_test/pkg/wasm_test_bg.wasm-opt.wasm" "-O"
To disable `wasm-opt`, add `wasm-opt = false` to your package metadata in your `Cargo.toml`.

@serprex
Copy link
Contributor Author

serprex commented Nov 29, 2020

Yes, I've disabled wasm-opt in my project because it raises errors about mutable global state not being allowed. I added reference-types since that exists in wasm bindgen, but am only actually using --weak-refs

@lights0123
Copy link

@serprex https://stackoverflow.com/a/64507864

@felipellrocha
Copy link

Any updates on this. This could be really useful.

@ZhaoXiangXML
Copy link

Can this one be merged? It could be really helpful.

@matheus23
Copy link
Contributor

We've moved from running wasm-pack to running wasm-bindgen and wasm-opt directly and just hand-coding the package.json and LICENSE file, etc. because we're missing the --weak-refs feature in wasm-pack.

I used this opportunity to test out why wasm-opt was failing, as @mattcollier noticed above.
This PR would simply need a change to pass --enable-reference-types to wasm-opt in order for it to run through.

Perhaps that's the change needed in this PR to get this merging? @serprex are you interested in adjusting this PR with my suggested change?
And @ the maintainers of wasm-pack: Would you merge this PR once it works with wasm-opt enabled?

@serprex
Copy link
Contributor Author

serprex commented Jul 29, 2022

@matheus23 updated. Unfortunately like you I've moved to bypassing wasm-pack in my build process a long time ago. Are you able to test this change is effective?

@matheus23
Copy link
Contributor

@serprex Yes, confirming that this works 👍

Copy link
Member

@drager drager left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks a lot!

@RaminKav
Copy link

RaminKav commented Aug 5, 2022

Any updates on this PR? Running into this issue as well and would love to be able to pass in --weak-refs to wasm-bindgen

@matheus23
Copy link
Contributor

Yes, I'd love to see this merged & released as well!
Is there some remaining work to be done?

The tests seem to be failing due to this:

thread 'build::build_different_profiles' panicked at 'called Result::unwrap() on an Err value: ErrorMessage { msg: "received a bad HTTP status code (404) when requesting https://github.com/WebAssembly/binaryen/releases/download/version_108/binaryen-version_108-x86-linux.tar.gz" }

But that error happens with all recent PRs.

Is there something else To-Do? Do we need to bump the version/write docs? Anything we can do to help this get pushed over the finish line?

@drager
Copy link
Member

drager commented Aug 11, 2022

Yes, I'd love to see this merged & released as well! Is there some remaining work to be done?

The tests seem to be failing due to this:

thread 'build::build_different_profiles' panicked at 'called Result::unwrap() on an Err value: ErrorMessage { msg: "received a bad HTTP status code (404) when requesting https://github.com/WebAssembly/binaryen/releases/download/version_108/binaryen-version_108-x86-linux.tar.gz" }

But that error happens with all recent PRs.

Is there something else To-Do? Do we need to bump the version/write docs? Anything we can do to help this get pushed over the finish line?

I think the tests just need to be fixed in order to create a new release with this and the other recently merged PRs. If someone would be interesting in debugging and make the tests pass it would be really nice! I don't got much time to debug it right now unfortunately... Another solution would be to revert the PR that caused the failing tests...

@matheus23
Copy link
Contributor

Another solution would be to revert the PR that caused the failing tests...

I actually think there wasn't a PR that caused the failing tests, it was just the URLs for the binaryen stuff changing under our feet:

Before/after:
https://github.com/WebAssembly/binaryen/releases/download/version_108/binaryen-version_108-x86-linux.tar.gz
https://github.com/WebAssembly/binaryen/releases/download/version_108/binaryen-version_108-x86_64-linux.tar.gz

You can see that the top URL fails to load (it's the one from the failing test) and the bottom one loads successfully.

I can see if I can create a PR.

@dtzxporter
Copy link

Any chance this can be merged soon? Kinda a waste to have to just bypass wasm-pack if features aren't available...

@bouk
Copy link

bouk commented Sep 22, 2022

For those coming across this issue, you can also set WASM_BINDGEN_WEAKREF=1 and WASM_BINDGEN_EXTERNREF=1 environment flags and they will be passed down to wasm-bindgen

@drager drager merged commit 5656554 into rustwasm:master Jan 14, 2023
@serprex serprex deleted the weakref branch January 14, 2023 17:17
Teebor-Choka added a commit to hoprnet/hoprnet that referenced this pull request Apr 17, 2023
Memory issues might be caused by an explicit need to deallocate JS objects on the Rust side, as per https://rustwasm.github.io/docs/wasm-bindgen/contributing/design/exporting-rust-struct.html. Given the proposal's (https://github.com/tc39/proposal-weakrefs) acceptance and wasm-pack supporting the flag (rustwasm/wasm-pack#937), it'd be future-proof and safer to use the --weak-ref flag for building every package.
Teebor-Choka added a commit to hoprnet/hoprnet that referenced this pull request Apr 17, 2023
Memory issues might be caused by an explicit need to deallocate JS objects on the Rust side, as per https://rustwasm.github.io/docs/wasm-bindgen/contributing/design/exporting-rust-struct.html. Given the proposal's (https://github.com/tc39/proposal-weakrefs) acceptance and wasm-pack supporting the flag (rustwasm/wasm-pack#937), it'd be future-proof and safer to use the --weak-ref flag for building every package.

(cherry picked from commit 31a4792)
Teebor-Choka added a commit to hoprnet/hoprnet that referenced this pull request Apr 17, 2023
Memory issues might be caused by an explicit need to deallocate JS objects on the Rust side, as per https://rustwasm.github.io/docs/wasm-bindgen/contributing/design/exporting-rust-struct.html. Given the proposal's (https://github.com/tc39/proposal-weakrefs) acceptance and wasm-pack supporting the flag (rustwasm/wasm-pack#937), it'd be future-proof and safer to use the --weak-ref flag for building every package.

(cherry picked from commit 31a4792)
Teebor-Choka added a commit to hoprnet/hoprnet that referenced this pull request Apr 17, 2023
Memory issues might be caused by an explicit need to deallocate JS objects on the Rust side, as per https://rustwasm.github.io/docs/wasm-bindgen/contributing/design/exporting-rust-struct.html. Given the proposal's (https://github.com/tc39/proposal-weakrefs) acceptance and wasm-pack supporting the flag (rustwasm/wasm-pack#937), it'd be future-proof and safer to use the --weak-ref flag for building every package.
Teebor-Choka added a commit to hoprnet/hoprnet that referenced this pull request Apr 17, 2023
Memory issues might be caused by an explicit need to deallocate JS objects on the Rust side, as per https://rustwasm.github.io/docs/wasm-bindgen/contributing/design/exporting-rust-struct.html. Given the proposal's (https://github.com/tc39/proposal-weakrefs) acceptance and wasm-pack supporting the flag (rustwasm/wasm-pack#937), it'd be future-proof and safer to use the --weak-ref flag for building every package.
Teebor-Choka added a commit to hoprnet/hoprnet that referenced this pull request Apr 18, 2023
Memory issues might be caused by an explicit need to deallocate JS objects on the Rust side, as per https://rustwasm.github.io/docs/wasm-bindgen/contributing/design/exporting-rust-struct.html. Given the proposal's (https://github.com/tc39/proposal-weakrefs) acceptance and wasm-pack supporting the flag (rustwasm/wasm-pack#937), it'd be future-proof and safer to use the --weak-ref flag for building every package.
Teebor-Choka added a commit to hoprnet/hoprnet that referenced this pull request Apr 18, 2023
Memory issues might be caused by an explicit need to deallocate JS objects on the Rust side, as per https://rustwasm.github.io/docs/wasm-bindgen/contributing/design/exporting-rust-struct.html. Given the proposal's (https://github.com/tc39/proposal-weakrefs) acceptance and wasm-pack supporting the flag (rustwasm/wasm-pack#937), it'd be future-proof and safer to use the --weak-ref flag for building every package.
Teebor-Choka added a commit to hoprnet/hoprnet that referenced this pull request Apr 18, 2023
Memory issues might be caused by an explicit need to deallocate JS objects on the Rust side, as per https://rustwasm.github.io/docs/wasm-bindgen/contributing/design/exporting-rust-struct.html. Given the proposal's (https://github.com/tc39/proposal-weakrefs) acceptance and wasm-pack supporting the flag (rustwasm/wasm-pack#937), it'd be future-proof and safer to use the --weak-ref flag for building every package.

(cherry picked from commit bc4876e)
Teebor-Choka added a commit to hoprnet/hoprnet that referenced this pull request Apr 19, 2023
Memory issues might be caused by an explicit need to deallocate JS objects on the Rust side, as per https://rustwasm.github.io/docs/wasm-bindgen/contributing/design/exporting-rust-struct.html. Given the proposal's (https://github.com/tc39/proposal-weakrefs) acceptance and wasm-pack supporting the flag (rustwasm/wasm-pack#937), it'd be future-proof and safer to use the --weak-ref flag for building every package.
robertkiel pushed a commit to hoprnet/hoprnet that referenced this pull request May 12, 2023
* Port changes in PR#4833 to release Bratislava to unblock CICD (#4880)

* ci: Fix invocation of test runs

* ci: Fix remaining test execution

---------

Co-authored-by: Tino Breddin <t@tolbrino.com>

* chore(release): publish 1.93.1-next.7

* chore(release): publish Avado 0.200.0

* port: Release update riga/v1.92.12 (#4714) (#4888)

* chore(release): publish 1.93.1

* Re-generate API docs for packages

* chore(release): publish Avado 1.93.1

* Release update riga/v1.92.12 (#4714)

* enhance address sorting (#4684)

* chore(release): update smart contract deployments

* chore(release): publish 1.92.11-next.1

* Docker: expose udp ports (#4686)

* change Dockerfile and docker run commands

* remove linting

* remove linting

* chore(release): update smart contract deployments

* chore(release): publish 1.92.11-next.2

* enhance dht and libp2p config (#4685)

* enhance dht and libp2p config

* add CHANGELOG entries

* incorporate feedback

* restore previous protocols

* chore(release): update smart contract deployments

* chore(release): publish 1.92.12-next.0

* Fix NAT detection when running in GCP (#4692)

* enhance dht and libp2p config

* add CHANGELOG entries

* incorporate feedback

* restore previous protocols

* fix gcp NAT detection

* add changelog entry

* chore(release): update smart contract deployments

* chore(release): publish 1.92.12-next.1

* use native hopr STUN servers (#4703)

* chore(release): update smart contract deployments

* chore(release): publish 1.92.12-next.2

---------

Co-authored-by: HOPR CI robot <noreply@hoprnet.org>
Co-authored-by: Tino Breddin <tino@hoprnet.org>
Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com>

* remove docs

---------

Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com>
Co-authored-by: HOPR CI robot <noreply@hoprnet.org>
Co-authored-by: Tino Breddin <tino@hoprnet.org>
Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com>

* Ignore errors if cachix fails

(cherry picked from commit 0c61fbe)

* Return the Riga version of webRTC

* Add yarn changes

* chore(release): publish 1.93.1-next.8

* chore(release): publish Avado 0.200.0

* chore(release): publish 1.93.1-next.9

* Release upgrade bratislava/v1.93.1 (#4895)

* Port changes in PR#4833 to release Bratislava to unblock CICD (#4880)

* ci: Fix invocation of test runs

* ci: Fix remaining test execution

---------

Co-authored-by: Tino Breddin <t@tolbrino.com>

* chore(release): publish 1.93.1-next.7

* chore(release): publish Avado 0.200.0

* port: Release update riga/v1.92.12 (#4714) (#4888)

* chore(release): publish 1.93.1

* Re-generate API docs for packages

* chore(release): publish Avado 1.93.1

* Release update riga/v1.92.12 (#4714)

* enhance address sorting (#4684)

* chore(release): update smart contract deployments

* chore(release): publish 1.92.11-next.1

* Docker: expose udp ports (#4686)

* change Dockerfile and docker run commands

* remove linting

* remove linting

* chore(release): update smart contract deployments

* chore(release): publish 1.92.11-next.2

* enhance dht and libp2p config (#4685)

* enhance dht and libp2p config

* add CHANGELOG entries

* incorporate feedback

* restore previous protocols

* chore(release): update smart contract deployments

* chore(release): publish 1.92.12-next.0

* Fix NAT detection when running in GCP (#4692)

* enhance dht and libp2p config

* add CHANGELOG entries

* incorporate feedback

* restore previous protocols

* fix gcp NAT detection

* add changelog entry

* chore(release): update smart contract deployments

* chore(release): publish 1.92.12-next.1

* use native hopr STUN servers (#4703)

* chore(release): update smart contract deployments

* chore(release): publish 1.92.12-next.2

---------

Co-authored-by: HOPR CI robot <noreply@hoprnet.org>
Co-authored-by: Tino Breddin <tino@hoprnet.org>
Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com>

* remove docs

---------

Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com>
Co-authored-by: HOPR CI robot <noreply@hoprnet.org>
Co-authored-by: Tino Breddin <tino@hoprnet.org>
Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com>

* Ignore errors if cachix fails

(cherry picked from commit 0c61fbe)

* Return the Riga version of webRTC

* Add yarn changes

* chore(release): publish 1.93.1-next.8

* chore(release): publish Avado 0.200.0

* chore(release): publish 1.93.1-next.9

---------

Co-authored-by: Tino Breddin <t@tolbrino.com>
Co-authored-by: HOPR CI robot <noreply@hoprnet.org>
Co-authored-by: Robert Kiel <robert.kiel@hoprnet.org>
Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com>
Co-authored-by: Tino Breddin <tino@hoprnet.org>
Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com>
Co-authored-by: Tibor Csóka <csokat@gmail.com>

* Re-generate API docs for packages

* chore(release): publish 1.93.2

* chore(release): publish Avado 1.93.2

* Revert "Merge pull request #4892 from hoprnet/kauki/use-older-wbrtc-without-apple-sillicon-support-to-fix-inconsistencies"

This reverts commit df5794d, reversing
changes made to 0e5b0d9.

* chore(release): publish 1.93.1-next.10

* chore(release): publish Avado 0.200.0

* [hotfix/bratislava] Use superlance to monitor hoprd memory usage (#4898)

* chore(release): publish 1.93.1

* Re-generate API docs for packages

* chore(release): publish Avado 1.93.1

* Use superlance to monitor hoprd memory usage

* Updated CHANGELOG.md

* Updated .env file for docker-compose setup for Bratislava

---------

Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com>
Co-authored-by: HOPR CI robot <noreply@hoprnet.org>

* chore(release): publish 1.93.1-next.11

* chore(release): publish Avado 0.200.0

* Staging upgrade bratislava (#4896)

* chore(release): publish 1.93.1

* Re-generate API docs for packages

* chore(release): publish Avado 1.93.1

* Release upgrade bratislava/v1.93.1 (#4895)

* Port changes in PR#4833 to release Bratislava to unblock CICD (#4880)

* ci: Fix invocation of test runs

* ci: Fix remaining test execution

---------

Co-authored-by: Tino Breddin <t@tolbrino.com>

* chore(release): publish 1.93.1-next.7

* chore(release): publish Avado 0.200.0

* port: Release update riga/v1.92.12 (#4714) (#4888)

* chore(release): publish 1.93.1

* Re-generate API docs for packages

* chore(release): publish Avado 1.93.1

* Release update riga/v1.92.12 (#4714)

* enhance address sorting (#4684)

* chore(release): update smart contract deployments

* chore(release): publish 1.92.11-next.1

* Docker: expose udp ports (#4686)

* change Dockerfile and docker run commands

* remove linting

* remove linting

* chore(release): update smart contract deployments

* chore(release): publish 1.92.11-next.2

* enhance dht and libp2p config (#4685)

* enhance dht and libp2p config

* add CHANGELOG entries

* incorporate feedback

* restore previous protocols

* chore(release): update smart contract deployments

* chore(release): publish 1.92.12-next.0

* Fix NAT detection when running in GCP (#4692)

* enhance dht and libp2p config

* add CHANGELOG entries

* incorporate feedback

* restore previous protocols

* fix gcp NAT detection

* add changelog entry

* chore(release): update smart contract deployments

* chore(release): publish 1.92.12-next.1

* use native hopr STUN servers (#4703)

* chore(release): update smart contract deployments

* chore(release): publish 1.92.12-next.2

---------

Co-authored-by: HOPR CI robot <noreply@hoprnet.org>
Co-authored-by: Tino Breddin <tino@hoprnet.org>
Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com>

* remove docs

---------

Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com>
Co-authored-by: HOPR CI robot <noreply@hoprnet.org>
Co-authored-by: Tino Breddin <tino@hoprnet.org>
Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com>

* Ignore errors if cachix fails

(cherry picked from commit 0c61fbe)

* Return the Riga version of webRTC

* Add yarn changes

* chore(release): publish 1.93.1-next.8

* chore(release): publish Avado 0.200.0

* chore(release): publish 1.93.1-next.9

---------

Co-authored-by: Tino Breddin <t@tolbrino.com>
Co-authored-by: HOPR CI robot <noreply@hoprnet.org>
Co-authored-by: Robert Kiel <robert.kiel@hoprnet.org>
Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com>
Co-authored-by: Tino Breddin <tino@hoprnet.org>
Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com>
Co-authored-by: Tibor Csóka <csokat@gmail.com>

* Re-generate API docs for packages

* chore(release): publish 1.93.2

* chore(release): publish Avado 1.93.2

---------

Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com>
Co-authored-by: HOPR CI robot <noreply@hoprnet.org>
Co-authored-by: Tino Breddin <t@tolbrino.com>
Co-authored-by: Robert Kiel <robert.kiel@hoprnet.org>
Co-authored-by: Tino Breddin <tino@hoprnet.org>
Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com>
Co-authored-by: Tibor Csóka <csokat@gmail.com>
Co-authored-by: Lukas <lukas.pohanka@inina.net>

* chore(release): update smart contract deployments

* chore(release): publish 1.93.3-next.0

* chore(release): publish Avado 0.200.0

* Add --weak-ref to wasm-bindgen

Memory issues might be caused by an explicit need to deallocate JS objects on the Rust side, as per https://rustwasm.github.io/docs/wasm-bindgen/contributing/design/exporting-rust-struct.html. Given the proposal's (https://github.com/tc39/proposal-weakrefs) acceptance and wasm-pack supporting the flag (rustwasm/wasm-pack#937), it'd be future-proof and safer to use the --weak-ref flag for building every package.

(cherry picked from commit bc4876e)

* Add extern ref to the definitions

* Revert "Migrate server-side relay code to Rust (#4726)"

This reverts commit 3119cc5.

* Fixes to make everything buildable

* wasm: Enable external references

* Add RelayState cleanup and set 2000 limit

* ci: Add missing nix develop

* chore(release): publish 1.93.3-next.1

* chore(release): publish Avado 0.200.0

* Added changelog entry

* chore(release): publish 1.93.3-next.2

* chore(release): publish Avado 0.200.0

* Fix cachix install using nix

* chore(release): publish 1.93.3-next.3

* chore(release): publish Avado 0.200.0

* Fix bug in recording metrics

The metric was canceled, rather than properly recorded.

* Remove inactive relay connections during the relay's keep-alive rounds (#4916)

* Add relay connection pruning in the relay keepalive rounds

* Fix inactive entry eviction

* Updated CHANGELOG.md

* Run linter

* Add metric to monitor the inactive connection eviction rate

* chore(release): publish 1.93.3-next.4

* chore(release): publish Avado 0.200.0

* chore(release): publish 1.93.3

* Re-generate API docs for packages

* chore(release): publish Avado 1.93.3

* chore(release): publish 1.93.4-next.0

* chore(release): publish Avado 0.200.0

* Fix `memmon` to properly monitor memory usage of HOPRd on Avado (#4944)

* chore(release): publish 1.93.4-next.1

* wipe address manager cache (#4958)

* wipe address manager cache

* wipe observed addresses

* Enforce closing and clean-up of libp2p2 connections (#4957)

* Enforce closing of libp2p2 connection

* Updated changelog

* chore(release): publish 1.93.4-next.2

* add changelog entry (#4959)

* chore(release): publish 1.93.4-next.3

* Set default value for DRY_RUN env variable in Avado build (#4960)

* chore(release): publish 1.93.4-next.4

* chore(release): publish Avado 0.200.0

* enhance dialing logs (#5004)

* enhance dialing logs

* add changelog entry

* Add metrics & logs relevant for RPCh debugging (#4995)

* Add metrics & logs relevant for RPCh debugging

* Update CHANGELOG

* Reformat files

* chore(release): publish 1.93.4-next.5

* chore(release): publish 1.93.4-next.6

* update contract addresses for stake season 7

* make prettier

* Staking Season 7 contracts (#4906)

* Stake season 7 and tests

* update chainid to u64

* update start and end timestamp

* block the same set of NFTs on start, as in s6

* Update readme with instruction on stake season transition

* correct typo

* replace specific contract address with general contract name

* update test cases

* hotfix fuzzy test

* fix more tests due to foundry/#4827

* fix unit test suite (#5013)

* chore(release): publish 1.93.4-next.7

* chore(release): publish 1.93.4-next.8

* chore(release): publish 1.93.4-next.9

* chore(release): publish 1.93.4

* Re-generate API docs for packages

* Remove additional  in install-toolchain.sh (#5024)

* chore(release): publish 1.93.5

* chore(release): publish Avado 1.93.5

* remove libp2p

* update cargo vendor

* update cargo vendor

* remove vendor

* remove vendor

* add vendor

---------

Co-authored-by: QYuQianchen <10935300+QYuQianchen@users.noreply.github.com>
Co-authored-by: Tino Breddin <t@tolbrino.com>
Co-authored-by: HOPR CI robot <noreply@hoprnet.org>
Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com>
Co-authored-by: Tino Breddin <tino@hoprnet.org>
Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com>
Co-authored-by: Tibor Csóka <csokat@gmail.com>
Co-authored-by: Lukas <lukas.pohanka@inina.net>
robertkiel pushed a commit to hoprnet/hoprnet that referenced this pull request May 17, 2023
* Port changes in PR#4833 to release Bratislava to unblock CICD (#4880)

* ci: Fix invocation of test runs

* ci: Fix remaining test execution

---------

Co-authored-by: Tino Breddin <t@tolbrino.com>

* chore(release): publish 1.93.1-next.7

* chore(release): publish Avado 0.200.0

* port: Release update riga/v1.92.12 (#4714) (#4888)

* chore(release): publish 1.93.1

* Re-generate API docs for packages

* chore(release): publish Avado 1.93.1

* Release update riga/v1.92.12 (#4714)

* enhance address sorting (#4684)

* chore(release): update smart contract deployments

* chore(release): publish 1.92.11-next.1

* Docker: expose udp ports (#4686)

* change Dockerfile and docker run commands

* remove linting

* remove linting

* chore(release): update smart contract deployments

* chore(release): publish 1.92.11-next.2

* enhance dht and libp2p config (#4685)

* enhance dht and libp2p config

* add CHANGELOG entries

* incorporate feedback

* restore previous protocols

* chore(release): update smart contract deployments

* chore(release): publish 1.92.12-next.0

* Fix NAT detection when running in GCP (#4692)

* enhance dht and libp2p config

* add CHANGELOG entries

* incorporate feedback

* restore previous protocols

* fix gcp NAT detection

* add changelog entry

* chore(release): update smart contract deployments

* chore(release): publish 1.92.12-next.1

* use native hopr STUN servers (#4703)

* chore(release): update smart contract deployments

* chore(release): publish 1.92.12-next.2

---------

Co-authored-by: HOPR CI robot <noreply@hoprnet.org>
Co-authored-by: Tino Breddin <tino@hoprnet.org>
Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com>

* remove docs

---------

Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com>
Co-authored-by: HOPR CI robot <noreply@hoprnet.org>
Co-authored-by: Tino Breddin <tino@hoprnet.org>
Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com>

* Ignore errors if cachix fails

(cherry picked from commit 0c61fbe)

* Return the Riga version of webRTC

* Add yarn changes

* chore(release): publish 1.93.1-next.8

* chore(release): publish Avado 0.200.0

* chore(release): publish 1.93.1-next.9

* Release upgrade bratislava/v1.93.1 (#4895)

* Port changes in PR#4833 to release Bratislava to unblock CICD (#4880)

* ci: Fix invocation of test runs

* ci: Fix remaining test execution

---------

Co-authored-by: Tino Breddin <t@tolbrino.com>

* chore(release): publish 1.93.1-next.7

* chore(release): publish Avado 0.200.0

* port: Release update riga/v1.92.12 (#4714) (#4888)

* chore(release): publish 1.93.1

* Re-generate API docs for packages

* chore(release): publish Avado 1.93.1

* Release update riga/v1.92.12 (#4714)

* enhance address sorting (#4684)

* chore(release): update smart contract deployments

* chore(release): publish 1.92.11-next.1

* Docker: expose udp ports (#4686)

* change Dockerfile and docker run commands

* remove linting

* remove linting

* chore(release): update smart contract deployments

* chore(release): publish 1.92.11-next.2

* enhance dht and libp2p config (#4685)

* enhance dht and libp2p config

* add CHANGELOG entries

* incorporate feedback

* restore previous protocols

* chore(release): update smart contract deployments

* chore(release): publish 1.92.12-next.0

* Fix NAT detection when running in GCP (#4692)

* enhance dht and libp2p config

* add CHANGELOG entries

* incorporate feedback

* restore previous protocols

* fix gcp NAT detection

* add changelog entry

* chore(release): update smart contract deployments

* chore(release): publish 1.92.12-next.1

* use native hopr STUN servers (#4703)

* chore(release): update smart contract deployments

* chore(release): publish 1.92.12-next.2

---------

Co-authored-by: HOPR CI robot <noreply@hoprnet.org>
Co-authored-by: Tino Breddin <tino@hoprnet.org>
Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com>

* remove docs

---------

Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com>
Co-authored-by: HOPR CI robot <noreply@hoprnet.org>
Co-authored-by: Tino Breddin <tino@hoprnet.org>
Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com>

* Ignore errors if cachix fails

(cherry picked from commit 0c61fbe)

* Return the Riga version of webRTC

* Add yarn changes

* chore(release): publish 1.93.1-next.8

* chore(release): publish Avado 0.200.0

* chore(release): publish 1.93.1-next.9

---------

Co-authored-by: Tino Breddin <t@tolbrino.com>
Co-authored-by: HOPR CI robot <noreply@hoprnet.org>
Co-authored-by: Robert Kiel <robert.kiel@hoprnet.org>
Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com>
Co-authored-by: Tino Breddin <tino@hoprnet.org>
Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com>
Co-authored-by: Tibor Csóka <csokat@gmail.com>

* Re-generate API docs for packages

* chore(release): publish 1.93.2

* chore(release): publish Avado 1.93.2

* Revert "Merge pull request #4892 from hoprnet/kauki/use-older-wbrtc-without-apple-sillicon-support-to-fix-inconsistencies"

This reverts commit df5794d, reversing
changes made to 0e5b0d9.

* chore(release): publish 1.93.1-next.10

* chore(release): publish Avado 0.200.0

* [hotfix/bratislava] Use superlance to monitor hoprd memory usage (#4898)

* chore(release): publish 1.93.1

* Re-generate API docs for packages

* chore(release): publish Avado 1.93.1

* Use superlance to monitor hoprd memory usage

* Updated CHANGELOG.md

* Updated .env file for docker-compose setup for Bratislava

---------

Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com>
Co-authored-by: HOPR CI robot <noreply@hoprnet.org>

* chore(release): publish 1.93.1-next.11

* chore(release): publish Avado 0.200.0

* Staging upgrade bratislava (#4896)

* chore(release): publish 1.93.1

* Re-generate API docs for packages

* chore(release): publish Avado 1.93.1

* Release upgrade bratislava/v1.93.1 (#4895)

* Port changes in PR#4833 to release Bratislava to unblock CICD (#4880)

* ci: Fix invocation of test runs

* ci: Fix remaining test execution

---------

Co-authored-by: Tino Breddin <t@tolbrino.com>

* chore(release): publish 1.93.1-next.7

* chore(release): publish Avado 0.200.0

* port: Release update riga/v1.92.12 (#4714) (#4888)

* chore(release): publish 1.93.1

* Re-generate API docs for packages

* chore(release): publish Avado 1.93.1

* Release update riga/v1.92.12 (#4714)

* enhance address sorting (#4684)

* chore(release): update smart contract deployments

* chore(release): publish 1.92.11-next.1

* Docker: expose udp ports (#4686)

* change Dockerfile and docker run commands

* remove linting

* remove linting

* chore(release): update smart contract deployments

* chore(release): publish 1.92.11-next.2

* enhance dht and libp2p config (#4685)

* enhance dht and libp2p config

* add CHANGELOG entries

* incorporate feedback

* restore previous protocols

* chore(release): update smart contract deployments

* chore(release): publish 1.92.12-next.0

* Fix NAT detection when running in GCP (#4692)

* enhance dht and libp2p config

* add CHANGELOG entries

* incorporate feedback

* restore previous protocols

* fix gcp NAT detection

* add changelog entry

* chore(release): update smart contract deployments

* chore(release): publish 1.92.12-next.1

* use native hopr STUN servers (#4703)

* chore(release): update smart contract deployments

* chore(release): publish 1.92.12-next.2

---------

Co-authored-by: HOPR CI robot <noreply@hoprnet.org>
Co-authored-by: Tino Breddin <tino@hoprnet.org>
Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com>

* remove docs

---------

Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com>
Co-authored-by: HOPR CI robot <noreply@hoprnet.org>
Co-authored-by: Tino Breddin <tino@hoprnet.org>
Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com>

* Ignore errors if cachix fails

(cherry picked from commit 0c61fbe)

* Return the Riga version of webRTC

* Add yarn changes

* chore(release): publish 1.93.1-next.8

* chore(release): publish Avado 0.200.0

* chore(release): publish 1.93.1-next.9

---------

Co-authored-by: Tino Breddin <t@tolbrino.com>
Co-authored-by: HOPR CI robot <noreply@hoprnet.org>
Co-authored-by: Robert Kiel <robert.kiel@hoprnet.org>
Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com>
Co-authored-by: Tino Breddin <tino@hoprnet.org>
Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com>
Co-authored-by: Tibor Csóka <csokat@gmail.com>

* Re-generate API docs for packages

* chore(release): publish 1.93.2

* chore(release): publish Avado 1.93.2

---------

Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com>
Co-authored-by: HOPR CI robot <noreply@hoprnet.org>
Co-authored-by: Tino Breddin <t@tolbrino.com>
Co-authored-by: Robert Kiel <robert.kiel@hoprnet.org>
Co-authored-by: Tino Breddin <tino@hoprnet.org>
Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com>
Co-authored-by: Tibor Csóka <csokat@gmail.com>
Co-authored-by: Lukas <lukas.pohanka@inina.net>

* chore(release): update smart contract deployments

* chore(release): publish 1.93.3-next.0

* chore(release): publish Avado 0.200.0

* Add --weak-ref to wasm-bindgen

Memory issues might be caused by an explicit need to deallocate JS objects on the Rust side, as per https://rustwasm.github.io/docs/wasm-bindgen/contributing/design/exporting-rust-struct.html. Given the proposal's (https://github.com/tc39/proposal-weakrefs) acceptance and wasm-pack supporting the flag (rustwasm/wasm-pack#937), it'd be future-proof and safer to use the --weak-ref flag for building every package.

(cherry picked from commit bc4876e)

* Add extern ref to the definitions

* Revert "Migrate server-side relay code to Rust (#4726)"

This reverts commit 3119cc5.

* Fixes to make everything buildable

* wasm: Enable external references

* Add RelayState cleanup and set 2000 limit

* ci: Add missing nix develop

* chore(release): publish 1.93.3-next.1

* chore(release): publish Avado 0.200.0

* Added changelog entry

* chore(release): publish 1.93.3-next.2

* chore(release): publish Avado 0.200.0

* Fix cachix install using nix

* chore(release): publish 1.93.3-next.3

* chore(release): publish Avado 0.200.0

* Fix bug in recording metrics

The metric was canceled, rather than properly recorded.

* Remove inactive relay connections during the relay's keep-alive rounds (#4916)

* Add relay connection pruning in the relay keepalive rounds

* Fix inactive entry eviction

* Updated CHANGELOG.md

* Run linter

* Add metric to monitor the inactive connection eviction rate

* chore(release): publish 1.93.3-next.4

* chore(release): publish Avado 0.200.0

* chore(release): publish 1.93.3

* Re-generate API docs for packages

* chore(release): publish Avado 1.93.3

* chore(release): publish 1.93.4-next.0

* chore(release): publish Avado 0.200.0

* Fix `memmon` to properly monitor memory usage of HOPRd on Avado (#4944)

* chore(release): publish 1.93.4-next.1

* wipe address manager cache (#4958)

* wipe address manager cache

* wipe observed addresses

* Enforce closing and clean-up of libp2p2 connections (#4957)

* Enforce closing of libp2p2 connection

* Updated changelog

* chore(release): publish 1.93.4-next.2

* add changelog entry (#4959)

* chore(release): publish 1.93.4-next.3

* Set default value for DRY_RUN env variable in Avado build (#4960)

* chore(release): publish 1.93.4-next.4

* chore(release): publish Avado 0.200.0

* enhance dialing logs (#5004)

* enhance dialing logs

* add changelog entry

* Add metrics & logs relevant for RPCh debugging (#4995)

* Add metrics & logs relevant for RPCh debugging

* Update CHANGELOG

* Reformat files

* chore(release): publish 1.93.4-next.5

* chore(release): publish 1.93.4-next.6

* update contract addresses for stake season 7

* make prettier

* Staking Season 7 contracts (#4906)

* Stake season 7 and tests

* update chainid to u64

* update start and end timestamp

* block the same set of NFTs on start, as in s6

* Update readme with instruction on stake season transition

* correct typo

* replace specific contract address with general contract name

* update test cases

* hotfix fuzzy test

* fix more tests due to foundry/#4827

* fix unit test suite (#5013)

* chore(release): publish 1.93.4-next.7

* chore(release): publish 1.93.4-next.8

* chore(release): publish 1.93.4-next.9

* chore(release): publish 1.93.4

* Re-generate API docs for packages

* Remove additional  in install-toolchain.sh (#5024)

* coerce libp2p addrs (#5020)

* coerce to short addresses

* update yarn files

* add changelog entry

* chore(release): publish 1.93.5

* chore(release): publish 1.93.4-next.10

* chore(release): publish Avado 1.93.5

* Staging upgrade Release Bratislava (#5027)

* chore(release): publish 1.93.3

* Re-generate API docs for packages

* chore(release): publish Avado 1.93.3

* chore(release): publish 1.93.4

* Re-generate API docs for packages

* Remove additional  in install-toolchain.sh (#5024)

* chore(release): publish 1.93.5

* chore(release): publish Avado 1.93.5

---------

Co-authored-by: HOPR CI robot <noreply@hoprnet.org>
Co-authored-by: Tibor Csóka <csokat@gmail.com>
Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com>

* chore(release): publish 1.93.6-next.0

* migrate core (#4963)

* initial commit

* finish logic

* cleanup

* various enhancements

* dynamic mutability

* minor fixes

* e2e tests working

* cleanup & enhanced debugging

* enhance debuggability

* incorporate feedback

* incorporate feedback

* fix test

* version bump

* minor enhancements

* incorporate feedback

* chore(release): publish 1.93.4-next.10

---------

Co-authored-by: HOPR CI robot <noreply@hoprnet.org>

* chore(release): publish 1.93.6-next.1

* fix libp2p address store (#5037)

* fix libp2p address store

* update yarn.lock

* chore(release): publish 1.93.6-next.2

* tests: Add ws send recv test

* api: Add send message over websocket

* Update tests

* Fix an issue with documentation error

* Fix an issue file renaming

* chore(release): publish 1.93.6-next.3

* [hotfix/bratislava] connect: Ensure public relay nodes don't create relay connections (#5023)

* connect: Ensure public nodes don't create relay connections to public relay nodes

* Update changelog

* connect: Do not expose local and private addresses to DHT

* core: Remove enabling dht server mode at runtime

* Revert "core: Remove enabling dht server mode at runtime"

This reverts commit 930454d63667f66a99d18ebbbd8ba3b43a240acf.

* disable

* api: Add websocket ping/pong heartbeat

* Added changelog entry

* fix comments & add cli argument

---------

Co-authored-by: Robert Kiel <robert.kiel@hoprnet.org>

* Revert "migrate core (#4963)" (#5050)

This reverts commit 9f428f8.

* chore(release): publish 1.93.6-next.4

* Increase memory limit for Avado to 2GB (#5051)

* chore(release): publish 1.93.6-next.5

* prepare 1.93.6 (#5052)

* dedupe and README fix

* remove private folder names

* chore(release): publish 1.93.6-next.6

* make known developmet private key explicit (#5057)

* make known developmet private key explicit

* improve SC test in response to strict order in event emission

* chore(release): publish 1.93.6-next.7

* chore(release): publish 1.93.6-next.8

* release 1.93.6 (#5053)

* coerce libp2p addrs (#5020)

* coerce to short addresses

* update yarn files

* add changelog entry

* chore(release): publish 1.93.4-next.10

* Staging upgrade Release Bratislava (#5027)

* chore(release): publish 1.93.3

* Re-generate API docs for packages

* chore(release): publish Avado 1.93.3

* chore(release): publish 1.93.4

* Re-generate API docs for packages

* Remove additional  in install-toolchain.sh (#5024)

* chore(release): publish 1.93.5

* chore(release): publish Avado 1.93.5

---------

Co-authored-by: HOPR CI robot <noreply@hoprnet.org>
Co-authored-by: Tibor Csóka <csokat@gmail.com>
Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com>

* chore(release): publish 1.93.6-next.0

* migrate core (#4963)

* initial commit

* finish logic

* cleanup

* various enhancements

* dynamic mutability

* minor fixes

* e2e tests working

* cleanup & enhanced debugging

* enhance debuggability

* incorporate feedback

* incorporate feedback

* fix test

* version bump

* minor enhancements

* incorporate feedback

* chore(release): publish 1.93.4-next.10

---------

Co-authored-by: HOPR CI robot <noreply@hoprnet.org>

* chore(release): publish 1.93.6-next.1

* fix libp2p address store (#5037)

* fix libp2p address store

* update yarn.lock

* chore(release): publish 1.93.6-next.2

* tests: Add ws send recv test

* api: Add send message over websocket

* Update tests

* Fix an issue with documentation error

* Fix an issue file renaming

* chore(release): publish 1.93.6-next.3

* [hotfix/bratislava] connect: Ensure public relay nodes don't create relay connections (#5023)

* connect: Ensure public nodes don't create relay connections to public relay nodes

* Update changelog

* connect: Do not expose local and private addresses to DHT

* core: Remove enabling dht server mode at runtime

* Revert "core: Remove enabling dht server mode at runtime"

This reverts commit 930454d63667f66a99d18ebbbd8ba3b43a240acf.

* disable

* api: Add websocket ping/pong heartbeat

* Added changelog entry

* fix comments & add cli argument

---------

Co-authored-by: Robert Kiel <robert.kiel@hoprnet.org>

* Revert "migrate core (#4963)" (#5050)

This reverts commit 9f428f8.

* chore(release): publish 1.93.6-next.4

* Increase memory limit for Avado to 2GB (#5051)

* chore(release): publish 1.93.6-next.5

* prepare 1.93.6 (#5052)

* dedupe and README fix

* remove private folder names

* revert version bump

---------

Co-authored-by: HOPR CI robot <noreply@hoprnet.org>
Co-authored-by: Lukas <lukas.pohanka@inina.net>
Co-authored-by: Tibor Csóka <csokat@gmail.com>
Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com>
Co-authored-by: Tino Breddin <t@tolbrino.com>
Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com>

* chore(release): publish 1.93.6

* chore(release): publish 1.93.7-next.0

* attempt1:  add hopli to pluto

* pluto: Fix docker image build

* chore(release): publish 1.93.7-next.1

* npm: Stop publishing packages for hoprd

* chore(release): publish 1.93.7-next.2

* chore(release): publish Avado 0.200.0

* chore(release): publish 1.93.7

* Re-generate API docs for packages

* chore(release): publish Avado 1.93.7

* update vendor

* update vendor

* fix build

* add all vendor files

* fix gitignore & cargo vendor

* fix gitignore & cargo vendor

* fix code comment

* fix build

* fix build

* fix python

* make linter happy

* fix makefile

* fix unit test

---------

Co-authored-by: QYuQianchen <10935300+QYuQianchen@users.noreply.github.com>
Co-authored-by: Tino Breddin <t@tolbrino.com>
Co-authored-by: HOPR CI robot <noreply@hoprnet.org>
Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com>
Co-authored-by: Tino Breddin <tino@hoprnet.org>
Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com>
Co-authored-by: Tibor Csóka <csokat@gmail.com>
Co-authored-by: Lukas <lukas.pohanka@inina.net>
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.

Add support for wasm-bindgen --weak-refs flag
10 participants