Compare commits

..

2 Commits

Author SHA1 Message Date
c6e2c63024
fix: cli time format
All checks were successful
build / build (push) Successful in 2m2s
build / trigger-build-image (push) Successful in 8s
2025-06-18 09:19:52 -04:00
cae592c5cf
test: update cases 2025-06-18 09:17:14 -04:00
17 changed files with 30 additions and 28 deletions

View File

@ -96,9 +96,9 @@ def get_teapot_check_args(repo_conf: repo.Config, task_conf: task.Config) -> Lis
) )
res.extend(["--group-config", group_config]) res.extend(["--group-config", group_config])
if task_conf.time.begin: if task_conf.time.begin:
res.extend(["--begin-time", task_conf.time.begin.isoformat()]) res.extend(["--begin-time", task_conf.time.begin.strftime("%Y-%m-%dT%H:%M:%S")])
if task_conf.time.end: if task_conf.time.end:
res.extend(["--end-time", task_conf.time.end.isoformat()]) res.extend(["--end-time", task_conf.time.end.strftime("%Y-%m-%dT%H:%M:%S")])
return res return res

View File

@ -1,8 +1,8 @@
{ {
"name": "hw7 ex2", "name": "hw7 ex2",
"logPath": "/home/tt/.cache/joj3/joj3.log", "logPath": "/home/tt/.cache/joj3/joj3.log",
"expireUnixTimestamp": 1735574399, "expireUnixTimestamp": 0,
"effectiveUnixTimestamp": 1735487999, "effectiveUnixTimestamp": 0,
"actorCsvPath": "/home/tt/.config/joj/students.csv", "actorCsvPath": "/home/tt/.config/joj/students.csv",
"maxTotalScore": 10245871, "maxTotalScore": 10245871,
"stage": { "stage": {
@ -76,7 +76,9 @@
"--grading-repo-name", "--grading-repo-name",
"ece280-joj", "ece280-joj",
"--group-config", "--group-config",
"Manuel=500:24,Boming=501:48,Nuvole=502:72" "Manuel=500:24,Boming=501:48,Nuvole=502:72",
"--end-time",
"2024-12-30T23:59:59"
], ],
"env": [ "env": [
"REPOS_DIR=/home/tt/.cache", "REPOS_DIR=/home/tt/.cache",

View File

@ -2,7 +2,7 @@
task.name = "hw7 ex2" # task name task.name = "hw7 ex2" # task name
max-total-score = 10245871 max-total-score = 10245871
release.end-time = 2024-12-30 23:59:59+08:00 time.end = 2024-12-30 23:59:59+08:00
release.begin-time = 2024-12-29 23:59:59+08:00 release.begin-time = 2024-12-29 23:59:59+08:00
[groups] [groups]

View File

@ -1,8 +1,8 @@
{ {
"name": "hw7 ex2", "name": "hw7 ex2",
"logPath": "/home/tt/.cache/joj3/joj3.log", "logPath": "/home/tt/.cache/joj3/joj3.log",
"expireUnixTimestamp": 1735574399, "expireUnixTimestamp": 0,
"effectiveUnixTimestamp": 1735487999, "effectiveUnixTimestamp": 0,
"actorCsvPath": "/home/tt/.config/joj/students.csv", "actorCsvPath": "/home/tt/.config/joj/students.csv",
"maxTotalScore": 100, "maxTotalScore": 100,
"stage": { "stage": {

View File

@ -1,7 +1,7 @@
# general task configuration # general task configuration
task.name = "hw7 ex2" # task name task.name = "hw7 ex2" # task name
release.end-time = 2024-12-30 23:59:59+08:00 time.end = 2024-12-30 23:59:59+08:00
release.begin-time = 2024-12-29 23:59:59+08:00 release.begin-time = 2024-12-29 23:59:59+08:00
[[stages]] [[stages]]

View File

@ -1,8 +1,8 @@
{ {
"name": "hw7 ex2", "name": "hw7 ex2",
"logPath": "/home/tt/.cache/joj3/joj3.log", "logPath": "/home/tt/.cache/joj3/joj3.log",
"expireUnixTimestamp": 1735574399, "expireUnixTimestamp": 0,
"effectiveUnixTimestamp": 1735487999, "effectiveUnixTimestamp": 0,
"actorCsvPath": "/home/tt/.config/joj/students.csv", "actorCsvPath": "/home/tt/.config/joj/students.csv",
"maxTotalScore": 100, "maxTotalScore": 100,
"stage": { "stage": {

View File

@ -1,8 +1,8 @@
# general task configuration # general task configuration
task.name = "hw7 ex2" # task name task.name = "hw7 ex2" # task name
release.end-time = 2024-12-30 23:59:59+08:00 time.end = 2024-12-30 23:59:59+08:00
release.begin-time = 2024-12-29 23:59:59+08:00 time.begin = 2024-12-29 23:59:59+08:00
[[stages]] [[stages]]
name = "[cq] Cppcheck" name = "[cq] Cppcheck"

View File

@ -1,8 +1,8 @@
{ {
"name": "hw7 ex2", "name": "hw7 ex2",
"logPath": "/home/tt/.cache/joj3/joj3.log", "logPath": "/home/tt/.cache/joj3/joj3.log",
"expireUnixTimestamp": 1735574399, "expireUnixTimestamp": 0,
"effectiveUnixTimestamp": 1735487999, "effectiveUnixTimestamp": 0,
"actorCsvPath": "/home/tt/.config/joj/students.csv", "actorCsvPath": "/home/tt/.config/joj/students.csv",
"maxTotalScore": 100, "maxTotalScore": 100,
"stage": { "stage": {

View File

@ -1,7 +1,7 @@
# general task configuration # general task configuration
task.name = "hw7 ex2" # task name task.name = "hw7 ex2" # task name
release.end-time = 2024-12-30 23:59:59+08:00 time.end = 2024-12-30 23:59:59+08:00
release.begin-time = 2024-12-29 23:59:59+08:00 release.begin-time = 2024-12-29 23:59:59+08:00
[[stages]] [[stages]]

View File

@ -1,8 +1,8 @@
{ {
"name": "hw7 ex2", "name": "hw7 ex2",
"logPath": "/home/tt/.cache/joj3/joj3.log", "logPath": "/home/tt/.cache/joj3/joj3.log",
"expireUnixTimestamp": 1735574399, "expireUnixTimestamp": 0,
"effectiveUnixTimestamp": 1735487999, "effectiveUnixTimestamp": 0,
"actorCsvPath": "/home/tt/.config/joj/students.csv", "actorCsvPath": "/home/tt/.config/joj/students.csv",
"maxTotalScore": 100, "maxTotalScore": 100,
"stage": { "stage": {

View File

@ -1,7 +1,7 @@
# general task configuration # general task configuration
task.name = "hw7 ex2" # task name task.name = "hw7 ex2" # task name
release.end-time = 2024-12-30 23:59:59+08:00 time.end = 2024-12-30 23:59:59+08:00
release.begin-time = 2024-12-29 23:59:59+08:00 release.begin-time = 2024-12-29 23:59:59+08:00
[[stages]] [[stages]]

View File

@ -1,8 +1,8 @@
{ {
"name": "hw7 ex2", "name": "hw7 ex2",
"logPath": "/home/tt/.cache/joj3/joj3.log", "logPath": "/home/tt/.cache/joj3/joj3.log",
"expireUnixTimestamp": 1735574399, "expireUnixTimestamp": 0,
"effectiveUnixTimestamp": 1735487999, "effectiveUnixTimestamp": 0,
"actorCsvPath": "/home/tt/.config/joj/students.csv", "actorCsvPath": "/home/tt/.config/joj/students.csv",
"maxTotalScore": 100, "maxTotalScore": 100,
"stage": { "stage": {

View File

@ -1,7 +1,7 @@
# general task configuration # general task configuration
task.name = "hw7 ex2" # task name task.name = "hw7 ex2" # task name
release.end-time = 2024-12-30 23:59:59+08:00 time.end = 2024-12-30 23:59:59+08:00
release.begin-time = 2024-12-29 23:59:59+08:00 release.begin-time = 2024-12-29 23:59:59+08:00
[[stages]] [[stages]]

View File

@ -1,8 +1,8 @@
{ {
"name": "hw7 ex2", "name": "hw7 ex2",
"logPath": "/home/tt/.cache/joj3/joj3.log", "logPath": "/home/tt/.cache/joj3/joj3.log",
"expireUnixTimestamp": 1735574399, "expireUnixTimestamp": 0,
"effectiveUnixTimestamp": 1735487999, "effectiveUnixTimestamp": 0,
"actorCsvPath": "/home/tt/.config/joj/students.csv", "actorCsvPath": "/home/tt/.config/joj/students.csv",
"maxTotalScore": 100, "maxTotalScore": 100,
"stage": { "stage": {

View File

@ -1,7 +1,7 @@
# general task configuration # general task configuration
task.name = "hw7 ex2" # task name task.name = "hw7 ex2" # task name
release.end-time = 2024-12-30 23:59:59+08:00 time.end = 2024-12-30 23:59:59+08:00
release.begin-time = 2024-12-29 23:59:59+08:00 release.begin-time = 2024-12-29 23:59:59+08:00
[[stages]] [[stages]]

View File

@ -1,8 +1,8 @@
{ {
"name": "hw7 ex2", "name": "hw7 ex2",
"logPath": "/home/tt/.cache/joj3/joj3.log", "logPath": "/home/tt/.cache/joj3/joj3.log",
"expireUnixTimestamp": 1735574399, "expireUnixTimestamp": 0,
"effectiveUnixTimestamp": 1735487999, "effectiveUnixTimestamp": 0,
"actorCsvPath": "/home/tt/.config/joj/students.csv", "actorCsvPath": "/home/tt/.config/joj/students.csv",
"maxTotalScore": 100, "maxTotalScore": 100,
"stage": { "stage": {

View File

@ -1,7 +1,7 @@
# general task configuration # general task configuration
task.name = "hw7 ex2" # task name task.name = "hw7 ex2" # task name
release.end-time = 2024-12-30 23:59:59+08:00 time.end = 2024-12-30 23:59:59+08:00
release.begin-time = 2024-12-29 23:59:59+08:00 release.begin-time = 2024-12-29 23:59:59+08:00
[[stages]] [[stages]]