Skip to content

docs(serverless): shorten the volumes command help - #227

Merged
emmmile merged 4 commits into
mainfrom
docs/volumes-help-short
Nov 30, 2026
Merged

emmmile merged 4 commits into
mainfrom
docs/volumes-help-short

Conversation

@emmmile

@emmmile emmmile commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

The help of the hidden serverless volumes group and its subcommands was several times longer than that of the other serverless groups (the description above Usage: ran 29 lines for the group and 31 for put, against 2 to 12 for apps, secrets, connectors and environments). This cuts each command to a one-line purpose, what a user needs to run it, and one example, and each flag to a short clause.

The group help keeps the lifecycle (volumes create, volumes put, deploy --mount), that workers mount the latest files read-only when they start, that a Volume is not the node-local deploy --volume folder, and that the commands are beta and need Shared Volumes enabled. put keeps what it uploads, that uploads are additive and resume when re-run, and where the organization id comes from. delete keeps one sentence on which Volumes the API deletes today (others answer 501), because a user hits that.

--help lines before after
volumes 54 35
volumes put 53 27
volumes delete 45 27
volumes show / update 28 19 / 20
volumes create / references / files 26 19 / 19 / 18
volumes list 25 18
volumes settings 22 16

The group stays hidden and out of the generated command reference (make docs is unchanged). The help tests now check the new wording and collapse line wrapping before matching.

Drafted with Claude Code (Claude Opus 5.5).

The volumes group and its subcommands carried several times more help
text than the other serverless groups. Cut each to a one-line purpose,
the facts a user needs to run it and one example, and each flag to a
short clause. The group stays hidden.
Copilot AI balanced review requested due to automatic review settings November 30, 2026 10:49
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. To trigger a review, include coderabbit-review in the PR description. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 861c4cc7-723a-490e-854e-e174e04204ae

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • 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.

Share

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues remain for the change that makes serverless volumes help more concise.

No open issues 🎉

What changed in this PR

Shortens help for the hidden serverless volumes command group while retaining essential lifecycle, upload, configuration, and beta-access guidance. Command behavior and generated documentation remain unchanged.

Changes:

  • Condenses command descriptions, examples, and flag help.
  • Updates help tests to match the shorter wording and normalize line wrapping.
  • Moves symlink error advice beside the file-walking implementation.
File Description
internal/​volumes/​put/​walk.go Houses the unchanged symlink error-advice constant.
internal/​volumes/​put/​put_test.go Checks concise additive-upload and resume guidance.
internal/​volumes/​put/​help.go Shortens upload help and examples.
internal/​cmd/​serverless/​volumes.go Condenses upload flag descriptions.
internal/​cmd/​serverless/​volumes_test.go Updates upload-help assertions and normalizes whitespace.
internal/​cmd/​serverless/​volumes_manage.go Shortens group and management-command help.
internal/​cmd/​serverless/​volumes_manage_test.go Updates lifecycle-help checks and normalizes whitespace.

Review effort: Balanced

leszko
leszko previously approved these changes Nov 30, 2026

@leszko leszko left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM ✅

danmrichards
danmrichards previously approved these changes Nov 30, 2026

@danmrichards danmrichards left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

From Dan Richards's agent (Claude), not Dan Richards.

Added three suggestions. LGTM ✅

…iles

Rolling an app back does not restore older Volume files, and no
command removes a file, so the group help keeps the sentence that says
so and points at a new Volume for a clean start.
… example

The delete asks before it takes the rollback of older app versions,
and --yes skips that question, so the example leads with the form that
asks, as apps delete does.
The test matched the raw help text, so rewrapping a phrase across two
lines would fail the positive checks and silently pass the negative
one. The group and put help tests already collapse it.
@emmmile
emmmile dismissed stale reviews from danmrichards and leszko via 20bdb06 November 30, 2026 12:00

@danmrichards danmrichards left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

From Dan Richards's agent (Claude), not Dan Richards.

LGTM ✅

@emmmile
emmmile merged commit 8ad1fbc into main Nov 30, 2026
5 checks passed
@emmmile
emmmile deleted the docs/volumes-help-short branch November 30, 2026 12:36
emmmile added a commit that referenced this pull request Nov 30, 2026
…me key (#228)

Two small Shared Volumes fixes.

`runware serverless volumes settings` printed `Enabled: no` and exited 0
when the organization does not have Shared Volumes, so a script could
not tell that case from an enabled one without parsing the output. It
now prints the settings as before (table or `--format json`), then exits
1 with `this organization does not have Shared Volumes enabled` on
stderr, the same print-then-fail shape as `apps connectors test`. Exit
status 1 also covers a failed read, so a script that must tell the two
apart reads stdout, which carries the settings (`"available": false`
with `--format json`) only when they were read. The help text is
unchanged until #227, which rewrites the same lines, lands.

When `volumes put` resumes an upload, `resumePlan.clear` now zeroes the
saved session's copy of the sealing key along with its own copy and the
file keys. This closes no leak: the release deferred in `run` already
zeroed that copy as soon as the resumed upload returned, so the change
only zeroes it earlier, when the plan is done with it. A new test fails
without the change.

Written with Claude Code (Claude Opus 5.5).
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.

4 participants