-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Programming exercises
: Reject results without commit hash
#8370
Conversation
WalkthroughThis update introduces enhancements in the handling of build notifications without a commit hash in programming exercises, ensuring that such notifications are properly rejected to maintain the integrity of the grading process. Changes
Possibly related issues
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
src/main/java/de/tum/in/www1/artemis/service/programming/ProgrammingExerciseGradingService.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successful tested on artemis-test5. I made some submissions with artemis_test_user_3 in the online editor, also one with passing the tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on TS1 with a programming exercise. Got a result ✅
Checklist
General
Server
Motivation and Context
There recently was a case where due to an error in the external CI system, Artemis would recive result notifications without any commit hash. Without a commit hash Artemis is unable to select a submission to link the result to, leading to unexpected behaviour (the creation of multiple fallback submissions).
Description
We now immedetly reject results if they do not contain a assignment commit hash.
Steps for Testing
code review, this is not really testable since this was caused by a faulty external system. You can check that the normal result processing still works.
Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Review Progress
Performance Review
Code Review
Manual Tests
Test Coverage
test added, all new branches covered.