Skip to content

feat(cli): verfix show --timeline — interleaved steps/console/network view - #78

Merged
jyotir-aditya merged 2 commits into
mainfrom
feat/show-timeline
Jul 10, 2026
Merged

jyotir-aditya merged 2 commits into
mainfrom
feat/show-timeline

Conversation

@jyotir-aditya

Copy link
Copy Markdown
Contributor

Closes #56.

Diagnosing a failure meant cross-referencing step order against separate console/network logs by hand (field review #4 / #63).

  • New pure buildTimeline() in cli/src/timeline.ts merges step events, console lines, and network requests into one time-sorted { t, kind, ...record } array — reusable by the planned console-error-correlation analyzer (feat(workers): prior-console-errors analyzer — correlate earlier console errors with a later failure #60). Unparsable timestamps sort last rather than being dropped.
  • verfix show <id> --timeline [--last <seconds>] [--filter <pattern>] [-o json|pretty]: newest run when no id, artifact_not_found JSON error path, pure-JSON stdout — all mirroring --console/--network conventions.
  • Standalone test cli/test/timeline.test.ts (7 cases: merge/sort, windowing, per-kind filter matching, case-insensitivity, timestamp edge cases), wired into npm test.
  • Docs updated alongside the existing --console/--network docs.

Verified: cli + workers typecheck clean, full cli suite green (incl. local-run e2e), json-purity.sh green, manual e2e: real run then show --timeline produced a sorted 14-event interleaved array; --last/--filter/missing-run paths exercised.

Diagnosing a failure meant cross-referencing step order against
separate console/network logs by hand. --timeline merges all three
into one time-sorted view via a small pure buildTimeline() function
(cli/src/timeline.ts) so a planned console-error-correlation analyzer
can reuse it. --last windows to seconds before the run's final event;
--filter composes the same way it does for --console/--network today.
@jyotir-aditya
jyotir-aditya merged commit 8af423e into main Jul 10, 2026
2 checks passed
@jyotir-aditya
jyotir-aditya deleted the feat/show-timeline branch July 10, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(cli): verfix show --timeline — interleaved steps/console/network view of a run

1 participant