We started seeing test failures in Remote Execution and Ansible PR testing job when trying to precompile the assets. Seems like we started crossing limits of the memory available for the job. There has been no changes in the assets for the remote execution itself for a while.
The last build without this issue I was able to find was from [Dec 21](http://ci.theforeman.org/job/foreman_ansible-pull-request/205/) and first occurrence of [Jan 2](http://ci.theforeman.org/job/foreman_ansible-pull-request/206/)
Seems like we're hitting limits of node --max_old_space_size in jenkins. The workarounds for this that I've found is to increase the limit
so that we still fit to it. Unfortunately webpack-rails doesn't provide a way how to change this and as it's not maintained anymore,
the proper fix means switching to webpacker (or something else).
As a short-term fix, we can probably provide our own webpack:compile task and set the required value there.
Fixes #25778 - increase max_old_space_size for webpack:compile
The default value started causing:
Increasing max_old_space_size should fix the issue. Unfortunately,
webpack-rails doesn't allow to set params for node. Therefore we to
override the rake task by our own. Take directly from (with extension of
the node parameter)
#1 Updated by Ivan Necas over 2 years ago
Test run for workaround fix is here https://github.com/theforeman/foreman_remote_execution/pull/404/files