• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

source-academy / backend / c8b8567f1e52bb9e95b6346a1ae6ee6bf801c6dc
90%

Build:
DEFAULT BRANCH: master
Ran 10 Aug 2026 02:17PM UTC
Jobs 2
Files 165
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Aug 2026 02:11PM UTC coverage: 87.5% (+0.02%) from 87.481%
c8b8567f1e52bb9e95b6346a1ae6ee6bf801c6dc

push

github

web-flow
Fix 422 on grading save when no AI comment log exists (#1381)

update_final_comment/2 returned {:error, :not_found} whenever an
answer had no AI-comment log row (i.e. the grader never used the
AI-assisted commenting feature), which is the case for the vast
majority of submissions. The controller treated any {:error, _} as a
changeset failure and returned 422, so saving grading changes from
the Grading tab failed with "Error while communicating with backend:
422" on essentially every submission, since the frontend calls
save-final-comment on every grading save regardless of whether AI
comments were ever generated.

Treat a missing AI comment log as a no-op success instead of an
error, since there's nothing to attach the final comment to.

Fixes source-academy/frontend#4233


Claude-Session: https://claude.ai/code/session_011Lfqxf3TfRtt4PLB92u11S

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>

0 of 1 new or added line in 1 file covered. (0.0%)

2 existing lines in 2 files now uncovered.

3997 of 4568 relevant lines covered (87.5%)

13786.1 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
54.55
4.55% lib/cadet/ai_comments.ex

Coverage Regressions

Lines Coverage ∆ File
1
54.55
4.55% lib/cadet/ai_comments.ex
1
78.57
-1.02% lib/cadet/logger/cloudwatch_logger.ex
Jobs
ID Job ID Ran Files Coverage
1 c8b8567f1e52bb9e95b6346a1ae6ee6bf801c6dc.1 10 Aug 2026 02:17PM UTC 165
87.48
GitHub Action Run
2 c8b8567f1e52bb9e95b6346a1ae6ee6bf801c6dc.2 10 Aug 2026 02:52PM UTC 165
87.5
GitHub Action Run
Source Files on build c8b8567f1e52bb9e95b6346a1ae6ee6bf801c6dc
  • Tree
  • List 165
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • c8b8567f on github
  • Prev Build on master (#056556E4...)
  • Next Build on master (#2ABE8F41...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc