summaryrefslogtreecommitdiff
path: root/doc/bugs
diff options
context:
space:
mode:
authorGravatar lasitus <lasitus@web>2017-02-17 03:23:46 +0000
committerGravatar admin <admin@branchable.com>2017-02-17 03:23:46 +0000
commitdd5ea01957720fdc9e9a83f904f19ca362727213 (patch)
treec552ec1c88853a9a2dedcf4b4cb74b729e32bcc3 /doc/bugs
parent5f3c23abefe99552fea18abacbf919b265b2854b (diff)
Added a comment
Diffstat (limited to 'doc/bugs')
-rw-r--r--doc/bugs/git_annex_assistant_exits_with_failure/comment_7_63b3ec113d52501237abbe6ee1ef5fa5._comment45
1 files changed, 45 insertions, 0 deletions
diff --git a/doc/bugs/git_annex_assistant_exits_with_failure/comment_7_63b3ec113d52501237abbe6ee1ef5fa5._comment b/doc/bugs/git_annex_assistant_exits_with_failure/comment_7_63b3ec113d52501237abbe6ee1ef5fa5._comment
new file mode 100644
index 000000000..9206ba313
--- /dev/null
+++ b/doc/bugs/git_annex_assistant_exits_with_failure/comment_7_63b3ec113d52501237abbe6ee1ef5fa5._comment
@@ -0,0 +1,45 @@
+[[!comment format=mdwn
+ username="lasitus"
+ avatar="http://cdn.libravatar.org/avatar/dfe778f28027aeb75876172022aa5de3"
+ subject="comment 7"
+ date="2017-02-17T03:23:46Z"
+ content="""
+Ok, I have a script that generates the error. This generates a repository and 30 GB of random binary files with many folders 2 layers deep. Just put in an empty folder and run with python. No remotes are necessary. This was run in Windows 10 in a git bash window.
+
+```
+#!/usr/bin/env python
+
+import logging
+import os
+import shutil
+import subprocess
+import uuid
+
+logging.basicConfig(level=logging.DEBUG)
+
+repositoryPath = os.path.abspath(\"./bigRepoTest\")
+os.makedirs(repositoryPath)
+
+subprocess.call(\"git init\", cwd=repositoryPath)
+subprocess.call(\"git annex init pc\", cwd=repositoryPath)
+
+def makeRandomDirectories(level1FolderCount, level2FolderCount, fileCount):
+ for directoryIndex in range(0, level1FolderCount):
+ logging.info(\"Adding top level folder \" + str(directoryIndex + 1) + \" of \" + str(level1FolderCount))
+ newDirectory = os.path.join(repositoryPath, str(uuid.uuid1()))
+ os.makedirs(newDirectory)
+ for directoryIndex in range(0, level2FolderCount):
+ newNestedDirectory = os.path.join(newDirectory, str(uuid.uuid1()))
+ os.makedirs(newNestedDirectory)
+ for fileIndex in range(0, fileCount):
+ newFile = os.path.join(newNestedDirectory, str(uuid.uuid1()) + \".bin\")
+ with open(newFile, 'wb') as fileOut:
+ fileOut.write(os.urandom(500000))
+
+makeRandomDirectories(32, 1000, 1)
+with open(os.path.join(repositoryPath, \"assistant.log\"), 'w') as output:
+ subprocess.Popen([\"git\", \"annex\", \"assistant\", \"--debug\"], cwd=repositoryPath, stdout=output, stderr=output)
+ makeRandomDirectories(32, 1000, 1)
+ subprocess.call(\"tail -f daemon.log\", cwd=os.path.join(repositoryPath, \".git\", \"annex\"))
+```
+"""]]