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

Constantly calling git show causes memory issues #8

Open
renatav opened this issue Sep 13, 2019 · 0 comments
Open

Constantly calling git show causes memory issues #8

renatav opened this issue Sep 13, 2019 · 0 comments

Comments

@renatav
Copy link
Collaborator

renatav commented Sep 13, 2019

 File "manage.py", line 19, in <module>
    execute_from_command_line(sys.argv)
  File "/opt/portal/venv/lib/python3.6/site-packages/django/core/management/__init__.py", line 371, in execute_from_command_line
    utility.execute()
  File "/opt/portal/venv/lib/python3.6/site-packages/django/core/management/__init__.py", line 365, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/opt/portal/venv/lib/python3.6/site-packages/django/core/management/base.py", line 288, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/opt/portal/venv/lib/python3.6/site-packages/django/core/management/base.py", line 335, in execute
    output = self.handle(*args, **options)
  File "/opt/portal/venv/lib/python3.6/site-packages/olaaf_django/management/commands/synchashes.py", line 13, in handle
    sync_hashes(repo_path)
  File "/opt/portal/venv/lib/python3.6/site-packages/olaaf_django/sync_hashes.py", line 81, in sync_hashes
    _insert_diff_hashes(edition, repo, prev_commit, current_commit)
  File "/opt/portal/venv/lib/python3.6/site-packages/olaaf_django/sync_hashes.py", line 144, in _insert_diff_hashes
    posix_path, file_type)
  File "/opt/portal/venv/lib/python3.6/site-packages/olaaf_django/sync_hashes.py", line 312, in _get_file_content_and_document
    file_content = repo.git.show('{}:{}'.format(commit_sha, file_path))
  File "/opt/portal/venv/lib/python3.6/site-packages/git/cmd.py", line 545, in <lambda>
    return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
  File "/opt/portal/venv/lib/python3.6/site-packages/git/cmd.py", line 1014, in _call_process
    return self.execute(call, **exec_kwargs)
  File "/opt/portal/venv/lib/python3.6/site-packages/git/cmd.py", line 735, in execute
    **subprocess_kwargs
  File "/usr/lib/python3.6/subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1295, in _execute_child
    restore_signals, start_new_session, preexec_fn)
OSError: [Errno 12] Cannot allocate memory

Is there a way to stream git show?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant