Using Marmoset to submit assignmentsBasic Logistics
Submitting AssignmentsIf only one file is required for an assignment question, you can submit only that file. If multiple files are required for an assignment question, you must zip all of the required files and submit the zip file. Make sure that all of the required files are named correctly; otherwise, you will receive "did not compile" error message. Tests on MarmosetThere are two types of tests that we will use on Marmoset in CS 146: public tests and release tests. Public tests are designed to test whether your program works in the most basic sense possible. They are simple tests that test for trivial cases. Release tests are designed to test whether your program is correct. You can expect these tests to test all the dark corners and special cases that can potentially break your code. After Submitting a ProgramWhen you make a submission to an assignment question on Marmoset, your submission will be automatically tested on a CSCF server. After a while (a few seconds to a few minutes, depending on the state of the server, the program and test complexity), the tests should finish and a result will be available. Interpreting Test ResultsIf your submitted program does not compile or run successfully on its own, your submission will receive a result of "did not compile" and the detailed test results will contain something similar to the error message you get if you ran your program yourself. In this case, your submission will not be tested with any of the tests. If your submitted program runs successfully on its own, it will be tested with all of the public tests. If it fails any public test, the detailed test results will display an error message for that public test. In this case, you will not have the option to view the result of the release tests. If it passes all of the public tests, you will have the option to view the result of the release tests. If you do so, you will use up one of your "release tokens" for that question. Now, for every assignment question, you are given 3 release tokens (this number may be higher for early assignments). If you use up one or more of them, one release token will regenerate once every 24 hours, until you have 3 release tokens again. Start your work early if you want to have more chances to see the results of the release tests. If you run out of tokens and you don't expect them to generate before the deadline, you can still resubmit, although you will not be able to tell how your submission did on the release tests. Marmoset automatically tests each submission with all of the release tests, in some order specified by the course staff. If you choose to use a release token on your submission, then you will be given slightly more information on how your program did. An additional information box will be made available called "releaseSummary", revealing which quintile your program scored in (0%-20%, 20%-40%, ..., 80%-100%). If your submission lies anywhere below 80%, then you will be given slightly more information as to where your program went wrong. If your program lies between 80%-100%, then no more additional information will be given. You are supposed to be testing your own code, not have Marmoset test it for you. Common Marmoset Test MessagesBelow are some possible release test results: "Success: test X passed", where X is the name of the test. You can pat yourself on the back for this one. "Error: wrong output for test X". This means that some function you were required to write did not produce the value we expected, or (later in the course) that some part of your program did not produce the output that we expected. "Error: program ran out of resources while running test X". This means that your program took too much time or too much memory during the test. The "short result" report should be ignored in the case of a timeout because we use our own timeout mechanism, not Marmoset's. "Error: program encountered error while running test X". This means that your program halted with an error during the test. "Error: program ran out of time while initializing". This happens if your program takes too much time when it is evaluated by Marmoset, before any of our tests are run. "Error: program ran out of memory while initializing" (same as above, but with memory). "Error: program failed to initialize". This happens if you use the wrong language level, if you have non-text elements in your program (such as values snipped out of the Interactions window and pasted into the Definitions window), or if you are doing something that is not permitted, such as file I/O.
GradingThere is no penalty for multiple submissions. Your best submission counts. The only thing stopping you from spamming Marmoset with many submissions is your own conscience, so don't do it. Please remember that the server is a shared resource; out of courtesy to your fellow students, do not do anything that overloads it, especially close to deadlines.
|