-
Notifications
You must be signed in to change notification settings - Fork 69
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
Otter assign - tests fail when answers are correct, "Error: object not found" #259
Comments
Apologizes for the double post -- I have updated my issue with a reproducible master Rmd file (please see the attached ZIP in original post) |
Hi @jerrybonnell -- sorry for the long wait. I think the issue here is that your dependencies aren't installing correctly. For some reason, packages won't install on Gradescope unless you specify a CRAN mirror. Try adding |
Thank you @chrispyles! That fixes it. There is one more issue we are experiencing which is that the results from the hidden tests remain hidden on Gradescope even after the grades are published -- students only get to see how they did on the public tests. We tried the following settings in the assignment header but no dice:
Let me know if it would be best to post this problem as a separate issue. Thanks again! |
I don't think this is possible with the latest stable release of ottr. This is something that should be fixed with the new releases of Otter v3 and Ottr v1 (which should be in beta shortly). |
Although IIRC there should be a dataframe printed out summarizing scores by test case (incl. hidden tests) which can be shown to students by setting |
I've actually just released Otter 3.0.0.b0 and Ottr 1.0.0.b0. If you want to install these you can test out the new behavior. $ pip install otter-grader==3.0.0.b0 devtools::install_github("ucbds-infra/ottr@1.0.0.b0") |
Perfect -- yes, this works.
I tried the new version, but the autograder errored when building. It looks like it had trouble installing the "stringi" package. |
Can you paste the error message @jerrybonnell? |
Here is what I get (full log is here:
This is after running on the example Archive.zip in my original post and with Otter version 3.0.0.b0. |
@jerrybonnell I've just released Otter v3.0.0.b1 which should fix this issue. Can you install and let me know if that works? |
@chrispyles I installed Otter v3.0.0.b1 and can confirm the "stringi" issue is fixed. However, I tried testing the built autograder with the student file that has no solutions (in Thanks so much for your help! |
@jerrybonnell Thanks for pointing this out. I forgot to mention some changes to the Rmd format for Otter Assign that this new version brings. I'm attaching an updated Rmd file but the the basic difference is that test cells should now just raise errors, not be wrapped in calls to |
@chrispyles Thanks for this -- yes that fixed it. There are two minor issues I am having now:
|
|
Perfect -- thanks a lot! Is there any way to know when v3.0.0.b2 will be released? |
Shortly (tonight 🤞). I've got another feature to add but it shouldn't be a big one, then it can be released. |
Just released v3.0.0.b2. Also, you may want to follow #302 which is the issue that will track adding PDF support for R. |
@jerrybonnell did v3.0.0.b2 resolve your issue? |
@chrispyles Thanks for checking in -- sorry for my late reply. Yes, v3.0.0.b2 fixed the points issue and everything looks in order 👍 I will reach out when we come across more issues. I followed #302 for PDF support. |
Describe the bug
I am following the otter sample at https://github.com/ucbds-infra/ottr-sample to create an assignment, and all of my tests are failing on Gradescope in the tested Rmd submission (a submission with all correct solutions). It is notable that all tests pass successfully when testing locally using
otter run lab04.Rmd
. I am attaching a ZIP file containing the master notebook file that I am using and a screenshot of the failing tests. It seems that the tests are unable to recognize any of the variables that are created in the immediately preceding solution cell.Archive.zip
To Reproduce
Steps to reproduce the behavior:
otter assign lab04.Rmd dist
. Note that the header of the master notebook has the following:dist/autograder
to Gradescope.Expected behavior
All tests should pass successfully for the tested submission .Rmd file on Gradescope.
Versions
Python version: 3.9.5
Otter-Grader version: 2.2.2
The text was updated successfully, but these errors were encountered: