Open julian-christl opened 3 years ago
I'd prefer a solution that tells the build system which commit it should use when building the submission. A "Rebuild last graded commit"-function could also be helpful when you allow additional non-graded submissions after the due date.
Describe the bug
This exercise had a manual test execution after the deadline was activated. The student worked close to the deadline, one push was < 1min after the deadline which was displayed as "graded", this might be some grace period of probably one minute? the last push, the one after the previous, was within 2 mins after the deadline which was not graded. When the tests got executed, they triggered the build plan which obviously checked out the latest commit. Therefore the test ran on the latest instead of the latest graded commit.
For displaying the information to the student, however, the latest graded commit gets taken which doesn't have any results because no tests were executed for it.
To Reproduce
Expected behavior
Either make sure that the grace period ends after every repository was locked (preferred) => double-check or something. Or try to tell bamboo which commit to use for the build
Screenshots
No response
What browsers are you seeing the problem on?
Chrome
Additional context
My solution was to remove the commit (had to temporarily remove the "rewrite history"-protection) and rerun the test.
Apparently, it also worked when removing the commit from Artemis and retriggering the build. Somehow the commit is then reinserted but now graded. However, this is not ideal because then the student gets an unfair advantage over the others because a usually not graded commit counts.
This issue occurred to me the first time in 1.5 years so I assume this occurs only very rarely. It needs fixing anyway, though.
Relevant log output
No response