fix: gradingreponame schema
This commit is contained in:
parent
919a2dfb9c
commit
4e344fdc6f
|
@ -1,5 +1,5 @@
|
|||
import hashlib
|
||||
import os
|
||||
import socket
|
||||
import tempfile
|
||||
|
||||
from dotenv import load_dotenv
|
||||
|
@ -24,13 +24,8 @@ def get_temp_directory() -> str:
|
|||
|
||||
|
||||
def getGradingRepoName() -> str:
|
||||
path = os.path.expanduser("~/.config/teapot/teapot.env")
|
||||
if os.path.exists(path):
|
||||
load_dotenv(path)
|
||||
repo_name = os.environ.get("GITEA_ORG_NAME")
|
||||
if repo_name is not None:
|
||||
return f"{repo_name.split('-')[0]}-joj"
|
||||
return "ece482-joj"
|
||||
host_name = socket.gethostname()
|
||||
return f"{host_name.split('-')[0]}-joj"
|
||||
|
||||
|
||||
def getTeapotConfig(repo_conf: Repo, task_conf: Task) -> TeapotConfig:
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
"/<function",
|
||||
"get_temp_directory",
|
||||
"at",
|
||||
"0x7fc2485231a0>/repo-health-checker",
|
||||
"0x7fc3921ab1a0>/repo-health-checker",
|
||||
"-root=.",
|
||||
"-repoSize=50.5",
|
||||
"-meta=main.py",
|
||||
|
@ -71,8 +71,8 @@
|
|||
"cpuRateLimit": 0,
|
||||
"cpuSetLimit": "",
|
||||
"copyIn": {
|
||||
"//tmp/repo-checker-5xkj4dm4/repo-health-checker": {
|
||||
"src": "//tmp/repo-checker-k3fmck15/repo-health-checker",
|
||||
"//tmp/repo-checker-u3awlhwg/repo-health-checker": {
|
||||
"src": "//tmp/repo-checker-mc0n0t1l/repo-health-checker",
|
||||
"content": null,
|
||||
"fileId": null,
|
||||
"name": null,
|
||||
|
@ -1320,7 +1320,7 @@
|
|||
"logPath": "h4-ex1-joint-teapot-debug.log",
|
||||
"scoreboardPath": "h4-ex1-scoreboard.csv",
|
||||
"failedTablePath": "h4-ex1-failed-table.md",
|
||||
"gradingRepoName": "engr151-joj",
|
||||
"gradingRepoName": "Nuvole-joj",
|
||||
"skipIssue": false,
|
||||
"skipScoreboard": false,
|
||||
"skipFailedTable": false
|
||||
|
|
Loading…
Reference in New Issue
Block a user