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

source-academy / backend / 9c2823cf899c9314fd4ccec9dd6c3b589d83e839
89%

Build:
DEFAULT BRANCH: master
Ran 04 Dec 2025 05:51PM UTC
Jobs 1
Files 158
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

04 Dec 2025 05:47PM UTC coverage: 88.716% (-0.9%) from 89.621%
9c2823cf899c9314fd4ccec9dd6c3b589d83e839

push

github

web-flow
AI-powered marking (#1248)

* feat: v1 of AI-generated comments

* feat: added logging of inputs and outputs

* Update generate_ai_comments.ex

* feat: function to save outputs to database

* Format answers json before sending to LLM

* Add LLM Prompt to question params when submitting assessment xml file

* Add LLM Prompt to api response when grading view is open

* feat: added llm_prompt from qn to raw_prompt

* feat: enabling/disabling of LLM feature by course level

* feat: added llm_grading boolean field to course creation API

* feat: added api key storage in courses & edit api key/enable llm grading

* feat: encryption for llm_api_key

* feat: added final comment editing route

* feat: added logging of chosen comments

* fix: bugs when certain fields were missing

* feat: updated tests

* formatting

* fix: error handling when calling openai API

* fix: credo issues

* formatting

* Address some comments

* Fix formatting

* rm IO.inspect

* a

* Use case instead of if

* Streamlines generate_ai_comments to only send the selected question and its relevant info + use the correct llm_prompt

* Remove unncessary field

* default: false for llm_grading

* Add proper linking between ai_comments table and submissions. Return it to submission retrieval as well

* Resolve some migration comments

* Add llm_model and llm_api_url to the DB + schema

* Moves api key, api url, llm model and course prompt to course level

* Add encryption_key to env

* Do not hardcode formatting instructions

* Add Assessment level prompts to the XML

* Return some additional info for composing of prompts

* Remove un-used 'save comments'

* Fix existing assessment tests

* Fix generate_ai_comments test cases

* Fix bug preventing avengers from generating ai comments

* Fix up tests + error msgs

* Formatting

* some mix credo suggestions

* format

* Fix credo issue

* bug fix + credo fixes

* Fix tests

* format

* Modify test.exs

* Update lib/cadet_web/controllers/gener... (continued)

118 of 174 new or added lines in 9 files covered. (67.82%)

1 existing line in 1 file now uncovered.

3758 of 4236 relevant lines covered (88.72%)

7103.93 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
95.45
-1.06% lib/cadet_web/admin_controllers/admin_grading_controller.ex
2
88.03
-1.44% lib/cadet_web/router.ex
5
89.84
-0.21% lib/cadet/assessments/assessments.ex
5
74.7
-2.11% lib/cadet_web/admin_views/admin_grading_view.ex
5
73.68
lib/cadet_web/helpers/ai_comments_helpers.ex
6
50.0
lib/cadet/ai_comments.ex
6
71.43
-28.57% lib/cadet/courses/course.ex
26
69.05
lib/cadet_web/controllers/generate_ai_comments.ex

Uncovered Existing Lines

Lines Coverage ∆ File
1
74.7
-2.11% lib/cadet_web/admin_views/admin_grading_view.ex
Jobs
ID Job ID Ran Files Coverage
1 9c2823cf899c9314fd4ccec9dd6c3b589d83e839.1 04 Dec 2025 05:51PM UTC 158
88.72
GitHub Action Run
Source Files on build 9c2823cf899c9314fd4ccec9dd6c3b589d83e839
  • Tree
  • List 158
  • Changed 12
  • Source Changed 0
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 9c2823cf on github
  • Prev Build on master (#21716773...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc