Skip to content

CI: Fix node tests failure#1805

Merged
certik merged 2 commits intolfortran:mainfrom
ubaidsk:fix_ci_node_tests_failure
Jun 12, 2023
Merged

CI: Fix node tests failure#1805
certik merged 2 commits intolfortran:mainfrom
ubaidsk:fix_ci_node_tests_failure

Conversation

@ubaidsk
Copy link
Copy Markdown
Member

@ubaidsk ubaidsk commented Jun 12, 2023

fixes #1790

@ubaidsk ubaidsk force-pushed the fix_ci_node_tests_failure branch from 19192fe to 225fcd2 Compare June 12, 2023 21:10
@ubaidsk ubaidsk force-pushed the fix_ci_node_tests_failure branch from 225fcd2 to 1292f28 Compare June 12, 2023 21:19
@ubaidsk
Copy link
Copy Markdown
Member Author

ubaidsk commented Jun 12, 2023

It seems some checks are being cancelled at the CI. I am unsure what is causing them to cancel.

Is there some limit on the GitHub CI jobs? Did we exhaust some limit (in case it exists)?

if (HAVE_BUILD_TO_WASM)
set(WASM_COMPILE_FLAGS "-g0 -fexceptions")
set(WASM_LINK_FLAGS
"-Oz -g0 -fexceptions -Wall -Wextra -s ASSERTIONS -s ALLOW_MEMORY_GROWTH=1 -s WASM_BIGINT"
Copy link
Copy Markdown
Member Author

@ubaidsk ubaidsk Jun 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Providing -Oz seems to fix the issue. Other flags are provided just to be extra-safe. I think -Oz is more for reducing the size of the generated file. Thus, I am unsure how it fixes the memory utilization. I also experienced this similar behaviour of high memory usage when -Oz is not provided to lfortran while pursuing #658.

@ubaidsk
Copy link
Copy Markdown
Member Author

ubaidsk commented Jun 12, 2023

Jobs at the CI are getting cancelled (for some reason). The CI passed in the 3rd attempt. This is ready.

Copy link
Copy Markdown
Contributor

@certik certik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is good!

Thanks @Shaikh-Ubaid for this. Let's merge it and see if this helps.

@certik certik merged commit ff213aa into lfortran:main Jun 12, 2023
@certik
Copy link
Copy Markdown
Contributor

certik commented Jun 12, 2023

I've seen the Windows build being canceled a lot on my PR as well. Maybe the GitHub Actions are unstable today.

@ubaidsk ubaidsk deleted the fix_ci_node_tests_failure branch June 13, 2023 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: Build LFortran to WASM and Upload Fails Often

2 participants