Conversation
DerBurri
force-pushed
the
feature-status-command
branch
5 times, most recently
from
September 23, 2026 08:15
7489592 to
68b0172
Compare
Signed-off-by: DerBurri <max@codesphere.com>
Signed-off-by: DerBurri <7892993+DerBurri@users.noreply.github.com>
DerBurri
force-pushed
the
feature-status-command
branch
from
September 23, 2026 08:18
7251b04 to
cbcb120
Compare
Signed-off-by: DerBurri <7892993+DerBurri@users.noreply.github.com>
This was referenced Sep 23, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds a
statuscommand that reports whether a Codesphere installation is reachable and ready, rendered neofetch-style.Until now the only way to answer "is this installation up?" was to run a smoke test, which provisions real resources and takes minutes.
statusis a read-only probe that answers the same question in one request, so it is safe to run against production and cheap enough to poll in a deploy pipeline.Usage
Example output (the logo is printed in the Codesphere purple and turquoise):
With
--wait, the command blocks and retries every 5s until the installation comes up or--timeout(default 5m) elapses, and reports the attempt count:The command exits non-zero when the installation is not ready, so it can gate a pipeline step directly.
Readiness is determined by
ListWorkspacePlans: it is authenticated, cheap and has no side effects, and its result also gives the plan count. The team count comes from a best-effort follow-up call, and a failure there does not mark the installation as not ready.The readiness logic lives in
internal/codesphere/statusrather than in the cobra command, so the test playlist runner in #843 reuses it as itsstatusstep. #843 is built on top of this PR, so this one should be merged first.Important Context to the PR