feat(session-async): add /api/score/session_async with incremental session report aggregation
- New POST /api/score/session_async endpoint: same session_id calls append to one shared report
- New GET /api/score/sessions/{session_id}: returns call_count, metric_means, all job records
- New GET /api/score/session/jobs/{job_id}: individual call status
- SessionScoreJobManager: deterministic run_id from session_id, per-session mutex for CSV append, advisor regenerated on every call
- SessionScoreRequest (extends ScoreRequest + session_id), SessionScoreJobResponse, SessionStatus models added
- 24 new tests, all passing
chore(weighted-score): comment out 综合加权得分 display and computation
- report.js: hide 综合加权得分 card in report detail page
- score_jobs.js: hide 综合 chip in async job list
- report_builder.py: overall_ws=None (computation disabled)
- summary.py: weighted_score summary line disabled
- evaluator.py: weighted_score/sample_weight columns no longer written to scores.csv
- score.py /api/score: weighted_score always returns null
- score_job_manager.py + session_score_manager.py: weighted=None
- Updated 3 tests to match new behaviour (6 pre-existing failures unchanged)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
17
webserver.log
Normal file
17
webserver.log
Normal file
@@ -0,0 +1,17 @@
|
||||
INFO: Started server process [82284]
|
||||
INFO: Waiting for application startup.
|
||||
INFO: Application startup complete.
|
||||
INFO: Uvicorn running on http://127.0.0.1:8811 (Press CTRL+C to quit)
|
||||
INFO: 127.0.0.1:56164 - "GET /api/health HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:53350 - "GET / HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:53351 - "GET /api/runs HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:53352 - "GET /api/scenarios HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:64689 - "GET /api/runs/2026-06-15T08-30-00%2B00-00 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:64700 - "POST /api/evaluations HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:64703 - "GET /api/evaluations/a3243f2443d7 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58440 - "GET /api/evaluations/a3243f2443d7 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:64454 - "GET /static/css/app.css HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:64455 - "GET /static/js/api.js HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:56825 - "GET /static/js/app.js HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:56829 - "GET /static/js/report.js HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:56830 - "GET /static/js/runner.js HTTP/1.1" 200 OK
|
||||
Reference in New Issue
Block a user