-
Notifications
You must be signed in to change notification settings - Fork 305
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
chore(wasm): add CI workflow #3503
Conversation
@grod220 Attempting to execute the workflow in Tagging @conorsch if you have any suggestions? |
Nice start! Looks like the new test isn't passing yet, so I'll check back when it's green. N.B. we already have a "wasm" job inside the rust workflow—perhaps this new test should be added around here: penumbra/.github/workflows/rust.yml Line 105 in b561823 Holler if you want more eyes on this. |
Ha, I hadn't seen your comment when I wrote my message. Thanks for pinging.
Can you teach me how to run this test locally? I see the new command added to both the wasm crate's README and the CI job:
which is odd, because I definitely don't have |
You're running it properly! Since it's an interactive browser, you need to open |
Yup, same here, that command fails. Likely we'll have to prepare a
That's a start, at least! |
This was backlogged in favor of more higher priority web related work. @conorsch Strangely We can pick this up after the holidays ~ |
tagging @grod220 |
That's not clear to me, either, but FWIW I can definitely reproduce the behavior you describe. There are changes to the wasm tests in this diff, but even copying |
Sadly, won't be able to dive into this before my holiday given other high-priority rpc changes before we freeze those. Think we can de-prioritize this and revisit later. |
As of merge of #3586, I'm able to run |
@conorsch might need webdriver.json config to satisfy CI? |
I've made sure I can run the wasm-pack headless test command on both my local workstation, and also on a truly headless setup (rented cloud box), and no problems in either place. So there's something different about the GHA context that we're overlooking. I'll dig into this more. |
196a3b5
to
f7d46e3
Compare
Finally sorted out the weirdness between local env and CI env: the WIP CI job didn't have lfs=true, so the proving keys being included in the tests weren't real. The error was occurring on penumbra/crates/wasm/tests/test_build.rs Line 57 in 9a5bb7f
penumbra/crates/wasm/tests/test_build.rs Line 45 in 9a5bb7f
Then simply adding |
cc @grod220 |
Squashed the following commits by @TalDerei: * update wasm readme and add action workflow file * trigger workflow on pull-request * add assertion check to wasm unit test * modify path in ci workflow * attemp to pass CI * add wasm-pack binary to workflow * attempt to run in headless browser mode * add firefox execution environment We struggled a bit in getting the test to pass CI, but it was as simple as ensuring that lfs=true on the repo checkout. Closes #3475.
wow! amazing work 🎊 |
References #3475