Skip to content

refactor: use American English, and follow the renamed contract - #140

Merged
felixsanz merged 2 commits into
rc/serverlessfrom
american-english
Sep 27, 2026
Merged

felixsanz merged 2 commits into
rc/serverlessfrom
american-english

Conversation

@felixsanz

Copy link
Copy Markdown
Contributor

Pairs with serverless#607, which renames six identifiers on the public contract. Merge this after that one.

The contract half

All 79 references the CLI had to the old names were in its vendored api/serverless/openapi.yaml and the client generated from it. No hand-written command code names them, so this is the spelling change applied to that copy plus make generate-serverless.

The rest of the vendored spec is deliberately left stale. Copying serverless main wholesale pulls in the error-status changes from #593 and breaks ApplicationproblemJSON403 handling in internal/api/serverless/client.go, which is a spec sync somebody should do on purpose rather than inside a spelling PR.

The CLI's own half

Help text, output strings, comments and README.md. One internal rename, normalisePathSegments.

cancelled here is prose about Go contexts and one error message, never a value read off the API, so it becomes canceled. The stored credit_auto_top_up_state value in serverless is untouched for the opposite reason.

go build ./... and go test ./... pass, and make docs is regenerated.

@coderabbitai

coderabbitai Bot commented Sep 24, 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

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: ec34c401-860a-47c2-a200-f92191d8cc65

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

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

Comment @coderabbitai help to get the list of available commands.

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.

Copilot review overview

🟡 Changes recommended

Align the OpenAPI source with the generated client and change the remaining unrecognised spellings.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

This PR standardizes American English across the CLI and updates the vendored Serverless contract, generated client, and documentation.

Changes:

  • Renames contract identifiers and the path-normalization helper.
  • Updates CLI text, comments, tests, and generated documentation.
  • Regenerates the Serverless client and command docs.
File Summary
internal/​schema/​schema.go Schema terminology and helper updates; unrecognised remains.
internal/​schema/​schema_test.go Test wording updates; matching spelling remains.
internal/​output/​print.go Serialization terminology updates.
internal/​output/​output.go Format documentation updates.
internal/​http/​download_test.go Cancellation wording updates.
internal/​cmdutil/​mediainput_test.go Comment terminology updates.
internal/​cmdutil/​completion.go Normalization documentation updates.
internal/​cmd/​serverless/​usage.go Usage terminology updates.
internal/​cmd/​serverless/​secrets.go Secrets help terminology updates.
internal/​cmd/​serverless/​pack.go Artifact terminology updates.
internal/​cmd/​serverless/​pack_test.go Normalization comment updates.
internal/​cmd/​serverless/​gpus.go Catalog terminology updates.
internal/​cmd/​serverless/​env.go Help terminology updates.
internal/​cmd/​serverless/​display.go Display comment updates.
internal/​cmd/​serverless/​deploy.go Deployment help terminology updates.
internal/​cmd/​serverless/​apps_logs.go Cancellation comment updates.
internal/​cmd/​serverless/​apps_lifecycle.go Cancellation error wording updates.
internal/​cmd/​run/​run.go Behavior comment updates.
internal/​cmd/​run/​output.go Serialization comment updates.
internal/​api/​types.go API behavior comment updates.
internal/​api/​transport/​websocket.go Transport and cancellation comment updates.
internal/​api/​transport/​websocket_test.go Test comment updates.
internal/​api/​transport/​transport.go Recognition terminology updates.
internal/​api/​serverless/​usage.go Serverless API terminology updates.
internal/​api/​serverless/​secrets.go Serverless API terminology updates.
internal/​api/​serverless/​gen/​client.gen.go Regenerated client; generated spelling can drift from the OpenAPI source.
internal/​api/​serverless/​client.go API comment updates.
internal/​api/​schema_test.go Cancellation terminology updates.
internal/​api/​poll_test.go Behavior comment updates.
internal/​api/​client.go Cancellation comment updates.
docs/​runware_serverless.md Regenerated command documentation.
docs/​runware_serverless_usage.md Regenerated usage documentation.
docs/​runware_serverless_secrets.md Regenerated secrets documentation.
docs/​runware_serverless_secrets_set.md Regenerated secrets documentation.
docs/​runware_serverless_secrets_remove.md Regenerated secrets documentation.
docs/​runware_serverless_secrets_list.md Regenerated secrets documentation.
docs/​runware_serverless_secrets_detach.md Regenerated secrets documentation.
docs/​runware_serverless_secrets_attachments.md Regenerated attachments documentation.
docs/​runware_serverless_secrets_attach.md Regenerated attachment documentation.
docs/​runware_serverless_deploy.md Regenerated deployment documentation.
docs/​runware_serverless_apps_usage.md Regenerated application usage documentation.
docs/​runware_serverless_apps_env.md Regenerated environment documentation.
cmd/​runware/​main.go Cancellation comment updates.
api/​serverless/​openapi.yaml Contract updates; remaining cancelled strings need alignment before regeneration.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread internal/api/serverless/gen/client.gen.go
@felixsanz
felixsanz merged commit e62f323 into rc/serverless Sep 27, 2026
4 checks passed
@felixsanz
felixsanz deleted the american-english branch September 27, 2026 12:22
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.

3 participants