Skip to content

feat: add codspeed status and other status subcommands to get information install#268

Merged
GuillaumeLagrange merged 5 commits intomainfrom
cod-2355-add-a-codspeed-setup-status-command
Mar 24, 2026
Merged

feat: add codspeed status and other status subcommands to get information install#268
GuillaumeLagrange merged 5 commits intomainfrom
cod-2355-add-a-codspeed-setup-status-command

Conversation

@GuillaumeLagrange
Copy link
Copy Markdown
Contributor

@GuillaumeLagrange GuillaumeLagrange commented Mar 17, 2026

$ codspeed status
  Authentication
    ✓ Logged in as GuillaumeLagrange (Github)

  Repository
    ✓ CodSpeedHQ/codspeed (Github)

  Tools
    ✓ valgrind (valgrind-3.26.0.codspeed)
    ✓ perf (perf version 6.19.7)
    ✓ codspeed-memtrack (memtrack 1.2.3)

  System
    codspeed 4.12.1
    nixos 25.11 (x86_64)
    11th Gen Intel(R) Core(TM) i5-11400H @ 2.70GHz (6C / 16GB)

Scenarii to test for codspeed auth status

Logged in

  • In a git repo activated on codspeed
$ codspeed auth status
  Authentication
    ✓ Logged in as GuillaumeLagrange (Github)

  Repository
    ✓ CodSpeedHQ/codspeed (Github)
  • In a git repo not activated on codspeed
$ codspeed auth status
  Authentication
    ✓ Logged in as GuillaumeLagrange (Github)

  Repository
    ✗ GuillaumeLagrange/dotfiles (Github, not enabled on CodSpeed)
  ⚠️  Runs will be uploaded to a local-runs CodSpeed project not associated with any repository.

  • Not in a git repo
$ codspeed auth status
  Authentication
    ✓ Logged in as GuillaumeLagrange (Github)

  Repository
    Not inside a git repository
  ⚠️ Runs will be uploaded to a local-runs CodSpeed project not associated with any repository.

Not logged in

  • In a git repo
$ codspeed auth status
  Authentication
    ✗ Token expired (run codspeed auth login to re-authenticate)

  Repository
    CodSpeedHQ/codspeed (Github)
  • Not in a git repo
$ codspeed auth status
  Authentication
    ✗ Token expired (run codspeed auth login to re-authenticate)

  Repository
    Not inside a git repository
  ⚠️ Runs will be uploaded to a local-runs CodSpeed project not associated with any repository.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Mar 17, 2026

Merging this PR will not alter performance

✅ 4 untouched benchmarks


Comparing cod-2355-add-a-codspeed-setup-status-command (231eb88) with main (aaad11b)

Open in CodSpeed

@GuillaumeLagrange GuillaumeLagrange force-pushed the cod-2355-add-a-codspeed-setup-status-command branch from a41b7b3 to fc2d61e Compare March 18, 2026 10:55
@GuillaumeLagrange GuillaumeLagrange marked this pull request as ready for review March 18, 2026 10:55
@adriencaccia
Copy link
Copy Markdown
Member

Seen together, let's have codspeed status, codspeed auth status and codspeed setup status.
The codspeed status command should output details about the detected repo if there is one.

@GuillaumeLagrange GuillaumeLagrange force-pushed the cod-2355-add-a-codspeed-setup-status-command branch 3 times, most recently from 1a13f5c to 9a17932 Compare March 18, 2026 22:31
@GuillaumeLagrange GuillaumeLagrange changed the title feat: add codspeed setup status to get information about tool install feat: add codspeed status and other status subcommands to get information install Mar 18, 2026
Copy link
Copy Markdown
Member

@adriencaccia adriencaccia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's run the command in all configurations (git repo without codspeed enabled, git repo with codspeed enabled, etc...), to ensure that the displayed information is what we want.

@GuillaumeLagrange GuillaumeLagrange force-pushed the cod-2355-add-a-codspeed-setup-status-command branch 2 times, most recently from f84a7b0 to f6f6c9a Compare March 24, 2026 15:44
@GuillaumeLagrange GuillaumeLagrange force-pushed the cod-2355-add-a-codspeed-setup-status-command branch from f688215 to 0e2974d Compare March 24, 2026 16:35
…eed status` commands

- `codspeed auth status`: checks token validity via API, detects
  repository from git remote, and verifies it exists on CodSpeed
- `codspeed setup status`: shows tool installation status for each
  executor via the new `tool_status()` trait method
- `codspeed status`: combines auth, setup, and system info
- Remove noisy warning from `find_repository_root`
@GuillaumeLagrange GuillaumeLagrange force-pushed the cod-2355-add-a-codspeed-setup-status-command branch from 0e2974d to 231eb88 Compare March 24, 2026 16:46
@GuillaumeLagrange GuillaumeLagrange merged commit 231eb88 into main Mar 24, 2026
18 checks passed
@GuillaumeLagrange GuillaumeLagrange deleted the cod-2355-add-a-codspeed-setup-status-command branch March 24, 2026 17:00
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.

2 participants