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

Integration testing on Zotero's Firefox ESR #108

Merged
merged 10 commits into from
Apr 22, 2021
Merged

Integration testing on Zotero's Firefox ESR #108

merged 10 commits into from
Apr 22, 2021

Conversation

cormacrelf
Copy link
Collaborator

This fixes #84 again. Upstream wasm_bindgen@0.2.70 added a shim to avoid using mutable globals altogether, so it has been upgraded and the workarounds removed. This also means wasm-opt is back! Yay, binaries will be ever so slightly smaller again.

I wanted to be sure this wouldn't happen again, so I added an integration test using the exact version of Firefox ESR Zotero uses to GitHub CI to make sure everything runs there. As in, fetches zotero-standalone-build, uses the script to download Firefox, and uses selenium-webdriver to load up a test page and wait for it to write a success value into the DOM. It will break if fetch_xulrunner.sh is changed too much, but that's OK, I assume if that's happening then there will be some other good things happening to balance it out :)

Instructions in the js-tests README.md if you wish to to try it yourself. Caveats: may leave zombie Firefox processes lying around on your system. 60.9 is oooold, selenium is kinda shaky at killing it.

@cormacrelf cormacrelf merged commit bca3bc8 into master Apr 22, 2021
@dstillman
Copy link
Member

This is great — thanks for setting this up. (Hopefully we'll make it obsolete…soon?)

@cormacrelf cormacrelf deleted the firefox-esr branch April 23, 2021 05:06
@cormacrelf cormacrelf added A-ci Area: continuous integration A-wasm Area: wasm package on npm enhancement New feature or request labels Sep 5, 2021
@cormacrelf cormacrelf mentioned this pull request Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ci Area: continuous integration A-wasm Area: wasm package on npm enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

CompileErrror when initializing the wasm driver
2 participants