Figured I'd get this issue started as I've run into some questions regarding it while creating a mock function for the grading endpoint.
-
How will we relate the filepaths in a submission's content to the autograders that need to be run on them? In other words, when iterating through the files included in the submission's content, how will we know which container autograder to run on each file?
-
Am I correct to assume each file will have a single autograder run to produce all of its SubmissionProblemScores? If yes, in what format will we return the scores from the autograder's grading function to the grader service? How will we associate the returned results to each assignmentProblem? The non-container autograders can do this quite easily by finding an assignmentProblem with the same problemName as the grader's question, but how will we accomplish this with container autograders?
-
Currently, all the grader service is doing is iterating through the files listed in the submission's content, finding the ContainerAutoGrader associated with each file, and calling the grading function with the submission filepath and the grader object as parameters. Actually obtaining the file is left up to the autograder's grading function and isn't directly handled by the grader service. The grading function is assumed to just return scores and feedback and creating the SubmissionProblemScores is left up to the grader service. Is this the way we want to structure this?
@SantarinX @jessehartloff
Figured I'd get this issue started as I've run into some questions regarding it while creating a mock function for the grading endpoint.
How will we relate the filepaths in a submission's content to the autograders that need to be run on them? In other words, when iterating through the files included in the submission's content, how will we know which container autograder to run on each file?
Am I correct to assume each file will have a single autograder run to produce all of its SubmissionProblemScores? If yes, in what format will we return the scores from the autograder's grading function to the grader service? How will we associate the returned results to each assignmentProblem? The non-container autograders can do this quite easily by finding an assignmentProblem with the same problemName as the grader's question, but how will we accomplish this with container autograders?
Currently, all the grader service is doing is iterating through the files listed in the submission's content, finding the ContainerAutoGrader associated with each file, and calling the grading function with the submission filepath and the grader object as parameters. Actually obtaining the file is left up to the autograder's grading function and isn't directly handled by the grader service. The grading function is assumed to just return scores and feedback and creating the SubmissionProblemScores is left up to the grader service. Is this the way we want to structure this?
@SantarinX @jessehartloff