Generate grades for teaching teams (scoreboard) #15
Labels
No Label
bug
component
executor
component
framework
component
parser
component
UI
duplicate
enhancement
help wanted
invalid
priority
p0
priority
p1
priority
p2
priority
p3
question
wontfix
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: JOJ/JOJ3#15
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
simple setup:
joj: ..
orfeat: ..
commit) log the scores in the fileeg. https://focs.ji.sjtu.edu.cn/git/engr151-23fa/test/src/branch/grading
Generate grades for teaching teamsto Generate grades for teaching teams (scoreboard)Not very sure about the hierarchy. Should the generator be an independent binary?
@manuel Where is the proper place for me to put the csv scoreboard file(in the current development stage)? Maybe an empty branch in this repo, or a new empty repo?
@zjc_he maybe an empty branch in the test repo? eg. "grading"
👍
@manuel What do you mean by the test repo? The test repo for 482 was archived. Or can you open a new testing repo in FOCS-dev organization?
i meant the repo you use for joj test case suite (joj-examples)
That is a bit tricky... It's not so clean since it might not be how Boming designed
I'll put it there for now and add a check in
main_test.go
to skip that branch, @bomingzh it is good to do so?i can also create a joj-test repo... let me know what is best
Seems boming has predicted this circumstance and that branch does not break the balance! 🎉 Everything goes fine as expected
@bomingzh is too good 🎉
I'm currently adding up all scores in a single test, ingoring the details.
e.g, for the result:
I'll only write "compile/success" and total score "200" into the scoreboard(comments are trivial for scoreboard but might be used somewhere else, I'll just put here in advance)
https://focs.ji.sjtu.edu.cn/git/ece482-23fa/test/src/branch/grading/p1m3-1-joj.csv
this only contains 1,0 based on whether they pass/fail tests. it seems JOJ will be able to handle more types of score? (aside of pass/fail)
is there any logic implemented to decide eg. 2.5/5 for a test case? maybe based on memory usage and/or time?
even if we don't need it now, it might good to take this type of things into account such that the design can be easily adjusted to create 1 complete grading sheet or several for correctness, cpu/mem usage, or 1 with only a summary, eg. 2.5/5 meaning correct test but slow/too much mem (details only appearing in the posted issues).
not sure what would be best for teaching team?
Almost finished with the first version!
Question: Where is joint-teapot deployed on the server? Can I required anyone to use JOJ3/scoreboard to have an environment variable
JOINT_TEAPOT_ROOT
pointing to the root dir of joint-teapot?nice! last fall i installed joint-pot "globally" and put an
teapot.env
in the course configyou just need to source the
env
file before running teapot (which is in thePATH
, so no need to aTEAPOT_ROOT
variable i guess?)@manuel Could you please clone the JOJ3-example repo on the drone server and put it in parallel with the JOJ3 repo? Specifically here in my local client:
Or for another option, you may want to clone the JOJ3-example repo every time you want to upload the scoreboard, and then remove it?
just the grading branch?
Doesn't matter, teapot will detect and switch to the grading branch
Also for the second option cloneing and removing the repo is also done automatically by teapot
No need anymore, I implemented option 2
@manuel We are done on teapot side, can you pull the latest version of teapot so we can push forward to do testing?
It seems that there are problems finding environmental variable
ORIG_HOME
when running droneerror message from drone: https://focs.ji.sjtu.edu.cn:2222/FOCS-dev/JOJ3/322/1/4 line 328
code: https://focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/src/branch/scoreboard/internal/scoreboard/scoreboard.go#L57
soryr had not seen that... have you pulled the newest teapot?
Boming fixed for me, now it can run good on drone