Skip to content

Commit ca1a0b1

Browse files
committed
fix initialization of numpy benchmarks
1 parent 4ec594a commit ca1a0b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mx.graalpython/mx_graalpython_python_benchmarks.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,9 @@ def _vmRun(self, vm, workdir, command, benchmarks, bmSuiteArgs):
429429
if artifact := os.environ.get("NUMPY_BENCHMARKS_DIR"):
430430
shutil.copytree(artifact, npdir)
431431
mx.run(["git", "init", "."], cwd=npdir, nonZeroIsFatal=False)
432+
mx.run(["git", "config", "user.email", "[email protected]"])
433+
mx.run(["git", "config", "user.name", "YourName"])
434+
mx.run(["git", "commit", "--allow-empty", "-m", "init"], cwd=npdir, nonZeroIsFatal=False)
432435
mx.run(["git", "branch", self.VERSION], cwd=npdir, nonZeroIsFatal=False)
433436
else:
434437
mx.warn("NUMPY_BENCHMARKS_DIR is not set, cloning numpy repository")

0 commit comments

Comments
 (0)