-
Notifications
You must be signed in to change notification settings - Fork 1
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
Adding new tests to libzim #67
Conversation
libzim-asm
is it okay to let the GitHub actions run? I am seeing some steps where files may be updated on server |
@Jaifroid Tests are now enabled on all the build files + could you answer my question above? |
@Rishabhg71 I'm sorry, I didn't see the notifications from your previous message and query. You can run GitHub actions. "Build and publish release artefacts" (https://github.com/openzim/javascript-libzim/actions/workflows/build_libzim_wasm.yml) explains what it does in the Run Workflow dropdown. I you run it as "nightly", then it will create artefacts and upload them to the nightly server. If you run it as "release" but without a version number, then it will just build artefacts and archive them under the workflow summary. If you add a version number, then it will create a draft release in releases (which can simply be deleted if it's a test run). "Upload release assets to Kiwix" only runs after a draft release is published. So no need to worry about it if you're not actually pressing the "Publish" button on a draft release! |
Forgot to add that automatic running of workflows when changes to a PR are pushed only produce archived versions under the workflow, they don't publish them to the Kiwix server, so it's safe to let the workflow complete after push, or to re-run it. |
How do I know which functions should be passed as a parameter? I think |
@Rishabhg71 The functions for which we have written bindings are the articleCount, search, and getDirectoryByPath. We need to write some more, but they're not urgent, because we handle everything else in the backend ourselves currently, |
@Jaifroid I have added |
@Rishabhg71 I'm afraid I don't know, and I've never used that setting allowing exception catching for individual functions. I would say that if the size of the bundle is not significantly increased by the general setting, it's probably safe to use it, unless you can find some info on how to get the narrower exception catching working... |
OK, thanks, I'll review it, but in the meantime, you might want to revert the individual exception catching, which is still in the PR and is not working, right? Certainly the tests have failed, not 100% sure if it¡'s for that reason. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's all looking good to me -- well written code! Just the few queries below, and I'd like to see a run passing with both Ray Charles and Stackexchange being tested.
4ae7bb1
to
e770160
Compare
@Jaifroid Sorry I forgot to revert my changes, you can check again |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good to me, with just the two small changes below! After this is merged, we should create a new release, so that we can use officially released artefacts over at Kiwix JS.
I have added the
-s DISABLE_EXCEPTION_CATCHING=0
to compile the files properly.