Contents:
To turn in your assignment:
hwN-final
tag to mark the final commit for assignment N
. You can do this from the command line or from the GitLab webpage.
git tag -a -f hwN-final -m "HW N submission" git push --tags
The same command works if the tag already exists and you want to move it. (CSE 331 policy states that you are not allowed to move a tag across days.)
hwN-final
(where you replace N by a number)HW N submission
(don't skip this part)
If the tag already exists and you want to move it, first delete the tag and then follow the instructions again. (CSE 331 policy states that you are not allowed to move a tag across days.)
Once you have committed and pushed the hwN-final
tag, your assignment has been submitted.
The staff will grade the files in your repository that are labeled with that tag.
To use a late day, just don't tag your repository on the day it is due. Be sure to tag your repository when you complete the homework, though!
Optionally, you can double-check your submission, using the following two steps.
./gradlew validateRemote
git pull && ./gradlew checkNoUncommittedChanges checkNoUnpushedCommits validateWorkingCopy
Here is an example of your code passing the validation tests (note the GREEN checkmark):
hwN-final
tag by
browsing
to https://gitlab.cs.washington.edu/cse331-18au-students/cse331-18au-MyCSENetID/tags.
Validating your code checks it for common errors, such as forgetting to commit a required file, or your code not compiling or not passing tests. Such errors could prevent you from receiving credit for your code. However, validation is not guaranteed to catch all errors in your code.
Validation happens every time you push commits to GitLab. You will receive email if your code fails validation, but no email if it passes. You may also perform validation at other times, if you wish. You may perform validation on your own computer on or a CSE-managed computer such as attu.
To validate your code, run one of these three commands
./gradlew validateWorkingCopy
./gradlew validateLocalRepo
./gradlew validateRemote
If the validate output indicates errors, you should fix them before the deadline, or you will lose points on your assignment.
The validation script tests your code against
your own test suite. Your
hwN.test.SpecificationTests
initially contains the public test suite.
However, it is your responsibility to retain those tests in
hwN.test.SpecificationTests
if you want the validation script
to check your code against the public tests.
GitLab is a useful and usually reliable service, but occasionally it fails. That is, occasionally your jobs may fail because of a GitLab problem rather than a problem with your code.
When you have a GitLab problem, please follow this process:
https://gitlab.cs.washington.edu/cse331-18au-students/cse331-18au-MyCSENetID/-/jobs/452877
,
and also show the command you ran on attu and its output (as when
reporting any problem with a command-line tool, cut-and-paste the output,
don't take a screenshot).
Back to the CSE 331 handouts home page.