• Andrii Vorobiov's avatar
    ui: (fix) OOM exception on ui-test build · b982643b
    Andrii Vorobiov authored
    It is one more attempt to fix OOM issue on ui test runs.
    Previous fixes were based mainly on suggestion that the
    root cause of issue is source maps generated during builds
    by karma.
    
    Actually the problem was in webpack and the way it preprocess
    files by karma `preprocessors: [...]`.
    Before we provided a bunch of files (source and test files) and
    webpack processed each matched file separately what caused
    memory consumption overhead.
    
    Current solution:
    - removes source files from karma configuration entirely.
    Required sources are already imported in test files so they
    will be included as well.
    - added `tests-loader` file as a single entry point for all
    test files. It allows us to provide and preprocess one file
    with all required test file at once.
    
    Current fix is based on found work around:
    https://github.com/karma-runner/karma/issues/1868#issuecomment-296071567
    
    Release note: None
    
    Release justification: non-production code changes
    b982643b
Name
Last commit
Last update
.github Loading commit data...
build Loading commit data...
c-deps Loading commit data...
cloud Loading commit data...
docs Loading commit data...
githooks Loading commit data...
licenses Loading commit data...
monitoring Loading commit data...
pkg Loading commit data...
scripts Loading commit data...
vendor @ 96685713 Loading commit data...
.editorconfig Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.node-version Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
Gopkg.lock Loading commit data...
Gopkg.toml Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...