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

Memory error while running mocha tests on a Windows 2019 agent #2642

Closed
1 of 7 tasks
waldekmastykarz opened this issue Feb 6, 2021 · 5 comments
Closed
1 of 7 tasks
Assignees
Labels
investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: Windows

Comments

@waldekmastykarz
Copy link

Description

Memory error while running mocha tests on a Windows 2019 agent

Bug:

Virtual environments affected

  • Ubuntu 16.04
  • Ubuntu 18.04
  • Ubuntu 20.04
  • macOS 10.15
  • macOS 11.0
  • Windows Server 2016 R2
  • Windows Server 2019

Image version

20210121.0

Expected behavior

Run tests without any errors

Actual behavior

While running, mocha tests are failing at some point with the following error:

# Fatal error in , line 0
# Fatal process out of memory: Zone
#FailureMessage Object: 0000000E08BF9C50

Repro steps

See this workflow run: https://github.com/waldekmastykarz/cli-githubactions/runs/1844914810?check_suite_focus=true
In the same repo you can find previous runs where I tried adjusting different Node settings without any result. I also tried to run the same tests on a Standard DS2 v2 Azure VM with Win 2019 and there the code runs as expected.

The same tests work just fine on the Ubuntu and macOS agents.

@dibir-magomedsaygitov dibir-magomedsaygitov added OS: Windows investigate Collect additional information, like space on disk, other tool incompatibilities etc. and removed needs triage labels Feb 8, 2021
@al-cheb al-cheb self-assigned this Feb 8, 2021
@al-cheb
Copy link
Contributor

al-cheb commented Feb 8, 2021

Hello, @waldekmastykarz
Could you please try to increase swap at runtime?

- name: configure Pagefile
  uses: al-cheb/configure-pagefile-action@v1.2
  with:
      minimum-size: 16GB
      maximum-size: 16GB
      disk-root: "C:"

@waldekmastykarz
Copy link
Author

Thank you for the tip! Will give it a try and let you know if it helped 👍

@waldekmastykarz
Copy link
Author

Works like a charm! Does this mean this is the recommended way forward?

@al-cheb
Copy link
Contributor

al-cheb commented Feb 9, 2021

Does this mean this is the recommended way forward?

Yep, currently we don't have any plans to change a vm size or the default settings for a pagefile.

@waldekmastykarz
Copy link
Author

Thank you! Appreciate your help and quick reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: Windows
Projects
None yet
Development

No branches or pull requests

3 participants