#4798 test_view_issue_custom_field_user_ticket failed with "Too many open files"
Opened 4 years ago by sergiodj. Modified 4 years ago

I'm running the full testsuite on a pristine Debian sid chroot, and I noticed that test_view_issue_custom_field_user_ticket failed:

======================================================================
ERROR: test_view_issue_custom_field_user_ticket (tests.test_pagure_flask_ui_issues_open_access.PagureFlaskIssuesOpenAccesstests): Test the view_issue endpoint.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_pagure/build/tests/__init__.py", line 554, in tearDown
    super(Modeltests, self).tearDown()
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_pagure/build/tests/__init__.py", line 445, in tearDown
    shutil.rmtree(self.path)
  File "/usr/lib/python3.7/shutil.py", line 494, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/usr/lib/python3.7/shutil.py", line 432, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  File "/usr/lib/python3.7/shutil.py", line 432, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  File "/usr/lib/python3.7/shutil.py", line 432, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  [Previous line repeated 2 more times]
  File "/usr/lib/python3.7/shutil.py", line 413, in _rmtree_safe_fd
    onerror(os.scandir, path, sys.exc_info())
  File "/usr/lib/python3.7/shutil.py", line 409, in _rmtree_safe_fd
    with os.scandir(topfd) as scandir_it:
OSError: [Errno 24] Too many open files: '/tmp/pagure-tests-path-d3ioucm0/repos/somenamespace/test3.git/refs/heads'
-------------------- >> begin captured logging << --------------------
pagure.utils: INFO: logging already setup
pagure.lib.notify: INFO: Sending blinker signal to: pagure - topic: issue.new
pagure.lib.tasks_services: INFO: No URLs set: None
celery.app.trace: INFO: Task pagure.lib.tasks_services.webhook_notification[8cb7cb31-cdcd-4f86-8828-4ecca41dc2b5] succeeded in 1.01097731012851s: None
pagure.lib.notify: INFO: Sending blinker signal to: pagure - topic: project.user.added
pagure.lib.tasks_services: INFO: No URLs set: None
celery.app.trace: INFO: Task pagure.lib.tasks_services.webhook_notification[39f01198-2ff6-44db-a6ba-e55186175ef2] succeeded in 1.012698361184448s: None
--------------------- >> end captured logging << ---------------------

This is with Pagure 5.9. I don't remember seeing this before, so it may very well be a non-determinism creeping in.


Blech. This is a somewhat random problem caused by pygit2 itself. It doesn't always happen, so re-running it usually causes it to clear up.

Metadata Update from @pingou:
- Issue tagged with: bug

4 years ago

Login to comment on this ticket.

Metadata