Skip to content

feat(grader): hide hidden-test results from students - #55

Merged
wiseodd merged 2 commits into
mainfrom
feat/hidden-results
Nov 26, 2026
Merged

wiseodd merged 2 commits into
mainfrom
feat/hidden-results

Conversation

@wiseodd

@wiseodd wiseodd commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Closes #33.

Students now see only their scores and the public test results on Gradescope.

  • Each question's row is hidden from students. It keeps the question's score and lists every test with its failure message, hidden ones marked.
  • A visible 0-point "Public tests" row lists each question's public tests, or "All tests passed".
  • The top-level output shows the total and each question's score. Gradescope hides its own total once a row is hidden.
  • Notice and crash rows stay visible.

The leak checks in test_main.py and the e2e suite now look only at what students see: the top-level output and the visible rows.

make check passes. I didn't run the Docker e2e tests.

Each question's row is now hidden on Gradescope and lists every test with
its message. A visible 0-point "Public tests" row lists the public tests,
and the top-level output gives the total and each question's score, since
Gradescope hides the total once a row is hidden.

Closes #33
@greptile-apps

greptile-apps Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · The PR appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Hides question rows containing hidden-test details and shows students a score summary and public-test results.

  • Students see public test results and scores while full question rows stay hidden.

Reviews (2) · Last reviewed commit: "fix(grader): mark the Public tests row f..." · Reviewed by Greptile

Comment thread src/mogs/grader/results.py Resolved
@wiseodd
wiseodd merged commit ae1425d into main Nov 26, 2026
8 checks passed
@wiseodd
wiseodd deleted the feat/hidden-results branch November 26, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option to hide hidden-test results until grades are published

1 participant