Run visibility: in-progress runs on benchmark page, running indicators, stale-run sweep - #410
Run visibility: in-progress runs on benchmark page, running indicators, stale-run sweep#410ashwin-pc wants to merge 5 commits into
Conversation
PR Reviewer Guide 🔍(Review updated until commit 19aad6c)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 19aad6c Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit 8b1f882
Suggestions up to commit db2de19
Suggestions up to commit 7585d5d
Suggestions up to commit 20a0153
Suggestions up to commit d420e7b
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #410 +/- ##
==========================================
+ Coverage 60.18% 60.33% +0.14%
==========================================
Files 373 375 +2
Lines 30451 30603 +152
Branches 8962 8991 +29
==========================================
+ Hits 18326 18463 +137
+ Misses 10369 10336 -33
- Partials 1756 1804 +48
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
Persistent review updated to latest commit 20a0153 |
|
Persistent review updated to latest commit 7585d5d |
- Evaluation Runs list: distinct Running badge with live case progress - Benchmark detail: in-progress runs for the benchmark shown alongside completed history, refreshing until completion - Startup sweep finalizes eval-runs stuck in 'running' with no live execution (status failed, error notes server restart), preserving persisted per-case results Fixes opensearch-project#405, Fixes opensearch-project#406, Fixes opensearch-project#408 Signed-off-by: ashwin pc <ashwinpc@amazon.com>
Signed-off-by: ashwin pc <ashwinpc@amazon.com>
Boot recovery (trace-poll resume, orphan benchmark/evaluation-run finalization) lived only in server/index.ts, which the CLI never executes — 'agent-health serve' imports app.js and listens itself, so recovery was dead code on the primary distribution path. Extract a shared runBootRecoverySafely() and call it post-listen from both entries (after AH_PORT reflects the bound port, since the trace poller makes HTTP self-calls). Signed-off-by: ashwin pc <ashwinpc@amazon.com>
7585d5d to
db2de19
Compare
|
Persistent review updated to latest commit db2de19 |
Signed-off-by: ashwin pc <ashwinpc@amazon.com>
|
Persistent review updated to latest commit 8b1f882 |
Signed-off-by: ashwin pc <ashwinpc@amazon.com>
|
Persistent review updated to latest commit 19aad6c |
Fixes #405, Fixes #406, Fixes #408 — three run-visibility gaps reported from real file-mode usage (a user started a run from a benchmark page and concluded it was lost).
Changes
status: runningrender a distinct animated Running badge with live progress ("2 of 3 cases", derived from per-case results vs. snapshot count), refreshing while visible — instead of a green check that reads as a finished run.GET /api/storage/evaluation-runs?benchmarkId=…&status=running) appear alongside completed history, visually distinct, refreshing until completion lands them inbenchmark.runs[]as today.runningwith no live execution registered are finalized as failed with an explanatory error ("interrupted: server restarted mid-run"), preserving any persisted per-case results. Idempotent.Screenshots
Verified against a copy of real file-mode data with seeded running + orphaned runs; production build green; zero console errors on both viewports.