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

test(melange): add (emit_stdlib false) to supported melange tests #10288

Merged

Conversation

anmonteiro
Copy link
Collaborator

  • (emit_stdlib false) disables emitting all the JS targets for the melange stdlib
  • this should speed up the tests quite a bit (tens of seconds)

Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>
@anmonteiro anmonteiro force-pushed the anmonteiro/emit-stdlib-false-for-melange-test branch from fb751f2 to b089e1f Compare March 20, 2024 03:10
@anmonteiro
Copy link
Collaborator Author

This is around 15-20s faster on linux. hard to tell on macOS

@jchavarri
Copy link
Collaborator

Do you know if there's a way to set this at the env variable level? So we can set it once and any future tests added (where we/I might forget about adding emit_stdlib false) don't run into the same performance costs.

@anmonteiro
Copy link
Collaborator Author

I'm not sure. I also don't know whether we'd want this to be the default in tests, but probably yes? 🤔

@anmonteiro anmonteiro enabled auto-merge (squash) March 20, 2024 23:30
@anmonteiro anmonteiro merged commit 2de1ee3 into ocaml:main Mar 20, 2024
1 of 2 checks passed
@anmonteiro anmonteiro deleted the anmonteiro/emit-stdlib-false-for-melange-test branch March 20, 2024 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants