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

🚧 Segmentation fault in jest/mocha #116

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

janjakubnanista
Copy link
Contributor

In this PR

There is a nasty problem with test runners - using dynamic import inside of a test run triggers a segmentation fault. This prevented a lot of good stuff from happening, namely having a way more sophisticated output in the console (the required modules are ESM and require us to load them using await import().

The error has been reported many times and fixed in node itself after causing many headaches in tests

The solution consists of two things - updating the base node image and not caching jest test runs (jest cache is slow anyways).

To add a feature to a bugfix I made the base node version controllable using NODE_VERSION build argument so we can test with any compatible node versions if we want (matrix tests will possibly soon be necessary).

(I also dropped an unused YAML template)

@ryandgoulding ryandgoulding merged commit 0c28371 into main Dec 13, 2023
1 check passed
@ryandgoulding ryandgoulding deleted the ominchain-config--21--segmentation-fault branch December 13, 2023 23:15
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.

2 participants