Skip to content

feat(status): show uptime in azd app status#502

Open
jongio wants to merge 1 commit into
mainfrom
idea/status-uptime
Open

feat(status): show uptime in azd app status#502
jongio wants to merge 1 commit into
mainfrom
idea/status-uptime

Conversation

@jongio

@jongio jongio commented Jul 12, 2026

Copy link
Copy Markdown
Owner

Adds an uptime line to azd app status so you can see how long the current run has been up without doing the math from the start time yourself.

The value is derived from the run start time already recorded in run state. It shows the largest two units so it stays short at any scale:

  • 45s
  • 3m12s
  • 1h04m
  • 2d03h

It also lands in --json output as an uptime field next to the existing startTime, so scripts can read a friendly value while still having the raw timestamp.

Testing

  • go build ./...
  • go vet ./src/cmd/app/commands/...
  • go test ./src/cmd/app/commands/... -run 'Status|Uptime' -count=1

Closes #497

Add an uptime line to azd app status derived from the recorded run start time. It shows the largest two units (for example 45s, 3m12s, 1h04m, 2d03h) so the value stays short at any scale, and it is exposed as an uptime field in --json output alongside the existing startTime.

Closes #497

Co-authored-by: Copilot App <[email protected]>
@jongio jongio added the idea Feature idea from the idea pipeline label Jul 12, 2026
@jongio jongio self-assigned this Jul 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Website Preview

Your PR preview is ready!

📎 Preview URL: https://jongio.github.io/azd-app/pr/502/

This preview will be automatically cleaned up when the PR is closed.

github-actions Bot added a commit that referenced this pull request Jul 12, 2026
@codecov

codecov Bot commented Jul 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.77%. Comparing base (dd00a47) to head (b29607e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #502   +/-   ##
=======================================
  Coverage   60.77%   60.77%           
=======================================
  Files         223      223           
  Lines       28527    28548   +21     
=======================================
+ Hits        17337    17351   +14     
- Misses      10010    10016    +6     
- Partials     1180     1181    +1     
Flag Coverage Δ
unittests 60.77% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
cli/src/cmd/app/commands/status.go 86.66% <100.00%> (+1.60%) ⬆️

... and 4 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Test This PR

A preview build (0.19.5-pr502) is ready for testing!

🌐 Website Preview

Live Preview: https://jongio.github.io/azd-app/pr/502/

One-Line Install (Recommended)

PowerShell (Windows):

iex "& { $(irm https://raw.githubusercontent.com/jongio/azd-app/main/cli/scripts/install-pr.ps1) } -PrNumber 502 -Version 0.19.5-pr502"

Bash (macOS/Linux):

curl -fsSL https://raw.githubusercontent.com/jongio/azd-app/main/cli/scripts/install-pr.sh | bash -s 502 0.19.5-pr502

Uninstall

When you're done testing:

PowerShell (Windows):

iex "& { $(irm https://raw.githubusercontent.com/jongio/azd-app/main/cli/scripts/uninstall-pr.ps1) } -PrNumber 502"

Bash (macOS/Linux):

curl -fsSL https://raw.githubusercontent.com/jongio/azd-app/main/cli/scripts/uninstall-pr.sh | bash -s 502

Build Info:

What to Test:
Please review the PR description and test the changes described there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

idea Feature idea from the idea pipeline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show uptime in azd app status output

1 participant