Skip to content

mailman: commit raw patches when patchset is corrupt#252

Merged
charliemirabile merged 3 commits into
masterfrom
commit_corrupt_patches
May 22, 2025
Merged

mailman: commit raw patches when patchset is corrupt#252
charliemirabile merged 3 commits into
masterfrom
commit_corrupt_patches

Conversation

@theyoyojo

@theyoyojo theyoyojo commented May 21, 2025

Copy link
Copy Markdown
Contributor

When a student submits a corrupt patchset, only the cover letter makes it to the grading repository so if an instructor wishes to examine the patch they must dig into the containers and find the email file.

When mailman fails to apply a patch, the email patch file and all subsequent patchset in the patchset are committed to the repository as files and the resulting tag will contain these commits.

Fixes: #251

@charliemirabile

Copy link
Copy Markdown
Contributor

this probably should be three different commits 1) refactor out duplicate pathlib code 2) add suffix to each message to indicate severity 3) commit corrupt patch sets. The code looks good to me though.

theyoyojo added 3 commits May 22, 2025 11:40
Signed-off-by: Joel Savitz <joel@underground.software>
No problem: .
Warning: ?
Rejected: !

Signed-off-by: Joel Savitz <joel@underground.software>
When a student submits a corrupt patchset, only the cover letter
makes it to the grading repository so if an instructor wishes to examine
the patch they must dig into the containers and find the email file.

When mailman fails to apply a patch, the email patch file and all
subsequent patchset in the patchset are committed to the repository as
files and the resulting tag will contain these commits.

Fixes: #251

Signed-off-by: Joel Savitz <joel@underground.software>
@theyoyojo theyoyojo force-pushed the commit_corrupt_patches branch from a048be3 to 0e29fbf Compare May 22, 2025 15:42

@charliemirabile charliemirabile left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@charliemirabile charliemirabile merged commit f199ced into master May 22, 2025
1 check passed
@charliemirabile charliemirabile deleted the commit_corrupt_patches branch May 22, 2025 16:16
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.

provide simple mechanism for viewing patchsets that fail to apply

2 participants