-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
CI: Build LFortran to WASM and Upload Fails Often #1790
Comments
Thanks. Let's assume that Let's investigate the memory requirement and how much memory is available, and see if this is the problem. |
Please see emscripten-core/emsdk#829 (comment) and emscripten-core/emsdk#829 (comment). |
How much memory does the test_lfortran executable use when run as a native binary? It looks like in Node it takes about 20GB, and it might be too much for the Action runner. I think 20GB is way too much. I would expect 1GB to be reasonable (even that seems a lot). It could be that memory is not deallocated between tests, or we have some large test that takes a lot of memory. TODO:
|
I think it does not use much memory when run as a native binary. My ram usage stays (almost) the same despite multiple runs. I am (parallelly) checking my memory usage in I previously checked it on Ubuntu as well emscripten-core/emsdk#829 (comment). |
Let's make progress on this, it seems we are now frequently hitting this bug at our PRs. I tried to measure the memory consumption of the Clang compiled test on macOS by running: while true; do; ./src/lfortran/tests/test_lfortran; done And checking total memory usage in Then we need to do the same for Is there a way to print these numbers from node js, so that we can see the usage at the CI? Can we run a subset of tests reliably? Is there one test that is somehow large in memory usage? |
Examples:
The error we receive is
This operation was cancelled
. The previous discussion related to this is here emscripten-core/emsdk#829. It seems that the failure happens because on runningnode src/lfortran/tests/test_lfortran.js
, it occupies the whole memory/ram available, there by leading to a termination of the job.The text was updated successfully, but these errors were encountered: