Merge: running durations tick live in runs list, summary and timeline

This commit is contained in:
2026-11-04 17:48:34 +00:00
15 changed files with 735 additions and 44 deletions
@@ -143,6 +143,10 @@ JsonMap _probeChanges(List<String> paths) => {
int _fillerRunCount = 0;
int _fillerStepCount = 0;
/// `?running=1`: run 8 executes, started 3m 50s before the page loaded, so a
/// capture shows its duration ticking. Absent by default.
DateTime? _runningSince;
/// `?html=1` adds `release-dashboard.html` to run 7's build visit; the capture
/// serves its bytes from the build directory (see notes/artifact-fullscreen.md).
bool _htmlArtifact = false;
@@ -187,6 +191,19 @@ List<JsonMap> _fillerRuns() => [
];
List<JsonMap> probeRuns() => [
if (_runningSince != null)
{
'id': 8,
'title': 'Live deploy run',
'name': 'release-train',
'status': 'running',
'executing': true,
'current_stage': 'deploy',
'completed_steps': 2,
'created_at': _runningSince!.toUtc().toIso8601String(),
'finished_at': '',
'pipeline_id': 24,
},
{
'id': 7,
'title': 'Release train run',
@@ -638,6 +655,7 @@ class _FixtureSink implements WebSocketSink {
/// `?route=/runs/7/stage/build%3Fvisit%3D1` opens that app location;
/// `?runs=200` / `?steps=60` append filler runs / run-7 steps for scroll
/// performance captures;
/// `?running=1` adds an executing run 8 whose duration ticks;
/// `?html=1` adds an HTML artifact to run 7 (`release-dashboard.html`);
/// `?turn=1` adds run 7's debug turn files (input/memory/history/output.md);
/// `?q=release` types that query into Search once its field is shown;
@@ -670,6 +688,11 @@ void main() {
);
_fillerRunCount = int.tryParse(params['runs'] ?? '') ?? 0;
_fillerStepCount = int.tryParse(params['steps'] ?? '') ?? 0;
if (params['running'] == '1') {
_runningSince = DateTime.now().subtract(
const Duration(minutes: 3, seconds: 50),
);
}
probeUsage = params['usage'] == '1';
_htmlArtifact = params['html'] == '1';
_turnFiles = params['turn'] == '1';