Skip to content

fix(cli): hide autograde from typo tips; plain error off Gradescope - #87

Merged
wiseodd merged 2 commits into
mainfrom
fix/cli-hidden-autograde
Nov 28, 2026
Merged

wiseodd merged 2 commits into
mainfrom
fix/cli-hidden-autograde

Conversation

@wiseodd

@wiseodd wiseodd commented Nov 28, 2026

Copy link
Copy Markdown
Owner

Two fixes for mogs autograde, the hidden command Gradescope runs.

  • Typo tips. clap suggested hidden subcommands too, so mogs a said "a similar subcommand exists: 'autograde'". Hidden names are now filtered out of the tip; a typo close to a visible command still gets its tip (mogs biuld → build, mogs u → build only).
  • Run outside Gradescope. With no /autograder/source, mogs autograde logged a FileNotFoundError traceback, then crashed with a PermissionError writing /autograder/results. It now prints Grading failed. and mogs autograde runs only on Gradescope: <source> not found., exits 1 and writes nothing. On Gradescope the folder always exists, so a broken bundle there still produces failure results.

First of a stack: #88 and #89 carry these commits.

@greptile-apps

greptile-apps Bot commented Nov 28, 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

The PR fixes two hidden-command behaviors:

  • Typo tips show visible commands but leave hidden commands out.
  • Autograding stops plainly when its source folder is missing.

Regression tests cover both changes. No actionable issues were found.

Intentional behavior acknowledged by wiseodd: an absent source folder returns exit code 1 and writes no results, because Gradescope supplies that folder.

Reviews (1) · Last reviewed commit: "fix(autograde): plain error outside Grad..." · Reviewed by Greptile

@wiseodd
wiseodd merged commit ae4f00d into main Nov 28, 2026
16 checks passed
@wiseodd
wiseodd deleted the fix/cli-hidden-autograde branch November 28, 2026 19:57
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.

1 participant