Repository navigation
fix: rough edges in build errors, warnings and names - #56
Merged
Merged
Conversation
Discovered tests in the source include the hidden ones, so the panel says "tests passed", and a written question's panel no longer points to an export button the source doesn't have.
With name="HW2" the export is now HW2_submission.zip with HW2.pdf, like the HW2 zip and folder. The grader looks for the Markdown fallback under that name too.
marimo collects only cells that hold nothing but tests, so a hidden cell with data next to its tests runs on Gradescope but not under `pytest notebook.py`.
[Medium impact] The PR appears safe to merge; the reported notebook-selection failure is fixed. SummaryThis PR improves build messages, export names, question titles, and notebook selection.
Reviews (3) · Last reviewed commit: "fix(grade): skip tests/ files only when ..." · Reviewed by Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #30. One commit per item.
# HIDDENafter code in a cell: build warning that it hides the whole cell.test_row_countreports "no questionrow" and thetest_<qid>_<name>rule, not "tests of different questions share a cell".dist/student/anddist/autograder/.mogs gradeand the grader ignore.pyfiles intests/when looking for the notebook, and the error no longer calls other.pyfiles notebooks.HW2_submission.zip,HW2.pdf. The grader looks forHW2_answers.md.question6,Q6andquestion_6get the title "Question 6", likeq6.### Derive the slopeunder "Question 4: Derive the slope").import pytestwithoutpytestindependenciesfails the build.pytest notebook.pyskips a cell that has other code next to its tests, since marimo collects only cells that hold nothing but tests. The build now warns about it, and the docs say to put data in its own hidden cell.