Skip to content

fix(feedback_deliver): skip un-clonable repo instead of aborting the run - #24

Merged
agiacalone merged 1 commit into
mainfrom
fix/feedback-deliver-skip-missing-repo
Jun 28, 2026
Merged

fix(feedback_deliver): skip un-clonable repo instead of aborting the run#24
agiacalone merged 1 commit into
mainfrom
fix/feedback-deliver-skip-missing-repo

Conversation

@agiacalone

Copy link
Copy Markdown
Owner

Problem

When gh repo clone failed (a non-submission whose Classroom repo was never created), dest was never created and the next open(dest/FEEDBACK.md,"w") raised FileNotFoundError, aborting the entire cohort delivery mid-run — every repo after the missing one was left undelivered. Hit live on the CECS 378 Lab 2 push (crashed at the first non-submission; 14/27 had delivered, the rest were stranded).

Fix

Guard on the clone + checkout-feedback exit codes: record the repo as main_state="no-repo" and continue. A single missing/empty repo no longer halts the cohort. Idempotent re-runs then complete cleanly.

Test

test_execute_skips_unclonable_repo_and_continues — a failing clone is recorded as no-repo and the next repo still delivers. Full suite green — 399 passed.

🤖 Generated with Claude Code

https://claude.ai/code/session_015cY2osrcunEXb5a8xtTy2V

If `gh repo clone` failed (a non-submission whose repo was never created),
`dest` didn't exist and the next `open(dest/FEEDBACK.md, "w")` raised
FileNotFoundError, aborting the ENTIRE cohort delivery mid-run — every repo
after the missing one was silently left undelivered. Guard on the clone +
checkout-feedback exit codes: record the repo as `main_state="no-repo"` and
continue. One missing repo no longer halts the cohort.

Regression test: test_execute_skips_unclonable_repo_and_continues.
Full suite green (399 passed).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015cY2osrcunEXb5a8xtTy2V
@agiacalone
agiacalone merged commit 4dd6928 into main Jun 28, 2026
@agiacalone
agiacalone deleted the fix/feedback-deliver-skip-missing-repo branch June 28, 2026 23:33
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