You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bugfix: report correct run duration and version in report - #9743
The CLI HTML report (--reporter-html) shows the version with a "usebruno" prefix, e.g. usebruno v1.16.0.
Fix
Version shows without the prefix, e.g. v1.16.0.
Total run duration is now computed from the run's start and completion times instead of by summing request durations. For a CLI run the value is effectively unchanged. Measuring it this way lets runs with overlapping iterations report the real time.
Screenshots
Before
After
Contribution Checklist:
I've used AI significantly to create this pull request
The pull request only addresses one issue or adds one feature.
The pull request does not introduce any breaking changes
I have tested these changes locally and confirmed they work as expected.
I have added screenshots or gifs to help explain the change if applicable.
HTML run reports now show the run’s start time, completion time, and total elapsed duration.
Bug Fixes
Elapsed duration reflects the time between run start and completion. If either timestamp is missing or invalid, or completion occurs before the start, the report displays “-”.
The version label in HTML reports now uses a consistent v prefix.
No actionable comments were generated in the recent review.
Walkthrough
The CLI now passes run start and completion timestamps to HTML report generation. The report embeds both timestamps and calculates total run duration from them. Invalid or negative durations display as -. The report version uses the v prefix without usebruno.
Changes
HTML report timing
Layer / File(s)
Summary
Pass run timestamps to report generation packages/bruno-cli/src/commands/run.js, packages/bruno-cli/src/reporters/html.js, packages/bruno-common/src/runner/reports/html/generate-report.ts, packages/bruno-cli/tests/reporters/*, packages/bruno-cli/tests/runner/report-metadata.spec.js
The CLI records the run start time and passes it with the completion time through report generation. The report version changes to the v-prefixed format. Tests cover timestamp and version forwarding, environment handling, and updated version fixtures.
Calculate dashboard run duration packages/bruno-common/src/runner/reports/html/template.ts, packages/bruno-common/src/runner/reports/html/template.spec.ts
The dashboard calculates elapsed seconds from run start and completion timestamps. It displays - when a timestamp is missing or invalid, or when the completion time precedes the start. Tests check duration formatting and embedded report data.
The CLI HTML report now shows the version with a v prefix and calculates total run duration from the run's start and end times. The only production caller was updated to match the new signature, so no concrete merge-blocking risk remains.
Pre-merge checks: 5
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title clearly and concisely identifies both primary changes: correcting the report duration and the report version.
Docstring Coverage
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 8 files.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
The run begins; its time is stored. The report carries both ends forward. Elapsed seconds fill the view. Invalid dates show a dash in lieu. A v now marks the version line. The report’s timing stays in time.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
523-523: Minor · Data Integrity & Integration · Quick win
Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.
Preserve duration for callers without a start time.
generateHtmlReport exports runStartTime as optional. Existing callers that omit it now see - instead of the previous duration derived from runDuration. The fixtures in packages/bruno-cli/tests/reporters/skip-body.spec.js Lines 62–70 use that input shape. (raw.githubusercontent.com)
Preserve the previous calculation as a fallback when the start time is absent, or update all affected producers to supply it.
As per coding guidelines: “Reconcile the whole flow, not the entry point.”
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
prateek-bruno
changed the title
bugfix: run duration and version were incorrect in cli
bugfix: report correct run duration and version in report
Nov 10, 2026
)
* fix(cli): drop usebruno prefix from report version, measure total run
duration from start and end
* fix: review comments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Internal Ref - BRU-4661
Problem
The CLI HTML report (
--reporter-html) shows the version with a "usebruno" prefix, e.g.usebruno v1.16.0.Fix
v1.16.0.Screenshots
Contribution Checklist:
Summary by CodeRabbit
vprefix.