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

Intermittent "OSError: [Errno 12] Cannot allocate memory" during linux WPT tests #25530

Open
jdm opened this issue Jan 15, 2020 · 1 comment
Open

Comments

@jdm
Copy link
Member

@jdm jdm commented Jan 15, 2020

  ▶ ERROR [expected OK] /css/css-fonts/parsing/font-weight-valid.html
  │   → Traceback (most recent call last):
  │   →   File "/repo/tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/executors/base.py", line 256, in run_test
  │   →     result = self.do_test(test)
  │   →   File "/repo/tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/executors/executorservo.py", line 108, in do_test
  │   →     self.proc.run()
  │   →   File "/repo/python/_virtualenv2.7/lib/python2.7/site-packages/mozprocess/processhandler.py", line 785, in run
  │   →     self.proc = self.Process([self.cmd] + self.args, **args)
  │   →   File "/repo/python/_virtualenv2.7/lib/python2.7/site-packages/mozprocess/processhandler.py", line 123, in __init__
  │   →     universal_newlines, startupinfo, creationflags)
  │   →   File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
  │   →     errread, errwrite)
  │   →   File "/usr/lib/python2.7/subprocess.py", line 938, in _execute_child
  │   →     self.pid = os.fork()
  └   → OSError: [Errno 12] Cannot allocate memory
  ▶ ERROR [expected OK] /referrer-policy/gen/top.meta/strict-origin-when-cross-origin/fetch/same-http.keep-origin.http.html
  │   → Traceback (most recent call last):
  │   →   File "/repo/tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/executors/base.py", line 256, in run_test
  │   →     result = self.do_test(test)
  │   →   File "/repo/tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/executors/executorservo.py", line 108, in do_test
  │   →     self.proc.run()
  │   →   File "/repo/python/_virtualenv2.7/lib/python2.7/site-packages/mozprocess/processhandler.py", line 785, in run
  │   →     self.proc = self.Process([self.cmd] + self.args, **args)
  │   →   File "/repo/python/_virtualenv2.7/lib/python2.7/site-packages/mozprocess/processhandler.py", line 123, in __init__
  │   →     universal_newlines, startupinfo, creationflags)
  │   →   File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
  │   →     errread, errwrite)
  │   →   File "/usr/lib/python2.7/subprocess.py", line 938, in _execute_child
  │   →     self.pid = os.fork()
  └   → OSError: [Errno 12] Cannot allocate memory

The answer here may be to run fewer processes on linux.

@SimonSapin
Copy link
Member

@SimonSapin SimonSapin commented Jan 15, 2020

If we’re actually running out of available RAM (as opposed to this error being a symptom of some other issue), another option is to change the machine type in https://github.com/mozilla/community-tc-config/blob/7aa0cac71031313b9cd6549b968d4c74ff4b1322/config/projects.yml#L394-L412

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.