Skip to content

🤖 docs: scope the namespace deletion step and list the exact uncertain-create cases - #247

Merged
ThomasK33 merged 2 commits into
mainfrom
docs/aggregated-docs-nits
Oct 13, 2026
Merged

ThomasK33 merged 2 commits into
mainfrom
docs/aggregated-docs-nits

Conversation

@ThomasK33

@ThomasK33 ThomasK33 commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Summary

Two docs fixes. First, the two nits recorded in #215 (comment) for the troubleshooting step "A namespace stays Terminating". Second, a correction from the final assessment of #241: the "Coder timeouts" text claimed more 504 coverage for broken 2xx create answers than the code gives.

Refs #215

Changes

  1. docs/how-to/troubleshooting.md, "A namespace stays Terminating", step 2:
    • Kubernetes sets NamespaceDeletionContentFailure when any API fails during the deletion. The step now applies the aggregated-API guidance only if the message names aggregation.coder.com, and otherwise says to examine the API that the message names (review thread r4174236818 on 🤖 docs: update the Terminating namespace step after the #209 fix #219).
    • A 400 that says multiple eligible CoderControlPlane instances now links the existing troubleshooting entry for it (thread r4174236822).
    • That entry's heading changes from "Aggregated reads return multiple eligible CoderControlPlane ..." to "Aggregated reads return multiple eligible CoderControlPlane instances". With the trailing ..., markdownlint (MD051, GitHub slugs) needs a fragment that ends in -, and MkDocs makes the anchor without it, so no link could satisfy both. The new heading matches the server message (internal/aggregated/coder/controlplane_provider.go:326,330). No page linked the old anchor.
  2. docs/reference/aggregated-api-behavior.md, "Coder timeouts" and its summary row: the text said that a create returns 504 for any 2xx answer that "is not the answer that Coder sends", and its list of 500 cases looked complete. It now lists exactly which broken 2xx answers give the uncertain 504, gives examples of answers that give 500 (including a 201 with {}, tracked in 🤖 Aggregated writes: map other uncertain Coder answers (502/503, broken body read) to the uncertain 504 #242), and tells the client to re-read after either. The summary row now says "504 or 500" instead of "Most ...".

Validation

The new list in (2) is checked against the vendored SDK paths. CreateUserWorkspace and CreateTemplate send any status other than 201 to ReadBodyAsError, and a 201 to ReadBodyAsJSON (vendor/github.com/coder/coder/v2/codersdk/organizations.go:553-558,678-683, client.go:421-453,538-571). A throwaway test (not committed) put a proxy in front of the mock Coder and sent each answer to a workspace create:

Answer Result
201: HTML page, empty body, invalid JSON (with and without application/json) 504 uncertain
200 or 202 with Coder's JSON, 204 empty, 200 HTML, 200 empty or {} JSON, 200 text/plain invalid JSON 504 uncertain
200 application/json invalid JSON 500 (decode body)
201 with {} or null panic in the name assertion, 500 through WithPanicRecovery
201 or 200 whose body breaks off 500 (unexpected EOF)

Also run: make docs-check (strict MkDocs build; the built page has id="aggregated-reads-return-multiple-eligible-codercontrolplane-instances"), the CI versions of markdownlint-cli2 (0.18.1) and cspell (8.19.4) on docs/**/*.md, make verify-vendor, make test, make build and make lint.

Not in this PR

#215 item 2 (an unconfigured standalone server returns 503 on namespaced LIST, so namespace deletion hangs) is a product decision and stays open.


Generated with mux • Model: anthropic:claude-opus-5-5 • Thinking: high

…n-create cases (Refs #215)

Change-Id: Ie0a71a2e43293a1d68a0975580bab774b4cf89b5
Signed-off-by: Thomas Kosiewski <tk@coder.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T14:57:28.554489Z 9d5eeb3 Manual request
🔒 Security Review ✅ Completed 2026-10-13T14:57:41.333143Z 9d5eeb3 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ThomasK33

Copy link
Copy Markdown
Member Author

@codex review

@ThomasK33

Copy link
Copy Markdown
Member Author

@codex security review

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9282f11d72

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/reference/aggregated-api-behavior.md Outdated
…answers

Change-Id: I11eda3af7617f8b5a7d15082a16f8ace421708fc
Signed-off-by: Thomas Kosiewski <tk@coder.com>
@ThomasK33

Copy link
Copy Markdown
Member Author

@codex review

@ThomasK33

Copy link
Copy Markdown
Member Author

@codex security review

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: 9282f11d72

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 9d5eeb3da9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: 9d5eeb3da9

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@ThomasK33
ThomasK33 added this pull request to the merge queue Oct 13, 2026
Merged via the queue into main with commit fb7064b Oct 13, 2026
13 checks passed
@ThomasK33
ThomasK33 deleted the docs/aggregated-docs-nits branch October 13, 2026 15:14
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.

1 participant