• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

astronomer / astro-cli / be2bb2e9-27bc-4e77-a8cb-77f7068a8bf4
40%
main: 45%

Build:
Build:
LAST BUILD BRANCH: enhance_cli_release_process
DEFAULT BRANCH: main
Ran 24 Apr 2026 06:29PM UTC
Jobs 1
Files 203
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

24 Apr 2026 06:23PM UTC coverage: 39.541% (+0.03%) from 39.515%
be2bb2e9-27bc-4e77-a8cb-77f7068a8bf4

Pull #2100

circleci

jlaneve
Print sign-up guidance when agent is invoked logged out

Previously `astro agent` (in any mode) returned
"not logged in. Run `astro login` first" through cobra, which gets
silenced by future variants of this command that set
SilenceErrors: true — leaving users with zero output and exit 1.

Print the guidance directly to stderr from Start() so it survives any
cobra-level silencing, and surface a sign-up link alongside the
`astro login` hint for first-time users who don't have an account yet.

agentRun intercepts the new ErrNotLoggedIn sentinel and exits 1 silently
so cobra doesn't tack on "Error: not logged in" after the guidance.

Also bypass the auth check for `--help` / `-h` / `--version`. Otto exits
before its bootstrap() on those flags, so they work without auth — no
reason to block them at the cli layer.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pull Request #2100: Add `astro agent` command with Otto binary management

250 of 574 new or added lines in 11 files covered. (43.55%)

2 existing lines in 2 files now uncovered.

25340 of 64086 relevant lines covered (39.54%)

9.56 hits per line

Uncovered Changes

Lines Coverage ∆ File
180
20.7
pkg/agent/binary.go
49
0.0
pkg/agent/start.go
32
27.27
cmd/agent.go
20
23.08
pkg/agent/logging.go
15
79.17
pkg/agent/update.go
9
0.0
pkg/agent/signal_unix.go
8
68.0
pkg/agent/af.go
6
79.29
-1.86% config/config.go
4
95.65
pkg/agent/config.go
1
82.22
0.93% config/context.go

Coverage Regressions

Lines Coverage ∆ File
1
71.92
-0.32% cmd/cloud/setup.go
1
82.22
0.93% config/context.go
Jobs
ID Job ID Ran Files Coverage
1 be2bb2e9-27bc-4e77-a8cb-77f7068a8bf4.1 24 Apr 2026 06:29PM UTC 203
39.54
Source Files on build be2bb2e9-27bc-4e77-a8cb-77f7068a8bf4
  • Tree
  • List 203
  • Changed 5
  • Source Changed 4
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • CircleCI Build #BE2BB2E9...
  • Pull Request #2100
  • PR Base - main (#890248B6...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc