Skip to content

feat: add unified lifecycle wait support#14

Merged
Icemap merged 3 commits into
mainfrom
agent/fix-agent-toolbelt
Jul 18, 2026
Merged

feat: add unified lifecycle wait support#14
Icemap merged 3 commits into
mainfrom
agent/fix-agent-toolbelt

Conversation

@Icemap

@Icemap Icemap commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add a consistent optional --wait flag to asynchronous Starter DB and TiDB Cloud Filesystem lifecycle commands while preserving their existing non-blocking default behavior.

Command --wait completion condition
tdc db create-db-cluster Cluster reaches ACTIVE
tdc db create-db-cluster-branch Branch reaches ACTIVE
tdc db delete-db-cluster Cluster reaches DELETED or is no longer accessible after the accepted deletion
tdc fs create-file-system The Drive9-backed data-plane root becomes readable

Wait failures never delete or recreate accepted resources. Errors identify the affected resource and explain whether creation remains allocated or deletion may still be in progress. Filesystem deletion remains asynchronous because Drive9 does not expose a reliable remote deletion-completion API; its successful output now correctly reports deleting instead of deleted.

Update the repository README Agent's Toolbelt stories, completed lifecycle specs, AGENTS guidance, and presentation material to use the unified flag. Matching English and Chinese user-documentation updates remain in their own repositories and are intentionally not pinned to fork-only commits by this PR. Live e2e lifecycle orchestration now uses the product-level wait flags instead of duplicating create/delete polling in test code.

Verification

  • go test ./...
  • make e2e
  • make live-e2e-db
  • make live-e2e-fs
  • Focused live configuration-free FS lifecycle, including real deleting output validation

@ti-chi-bot ti-chi-bot Bot added the size/XL label Jul 18, 2026
@guangleibao

Copy link
Copy Markdown
Collaborator

Great for script orchestration, thanks! Does tdc fs create-file-system need this optional flag as well?

@ti-chi-bot ti-chi-bot Bot added size/XXL and removed size/XL labels Jul 18, 2026
@Icemap Icemap changed the title feat: wait for Starter cluster activation feat: add unified lifecycle wait support Jul 18, 2026
@Icemap
Icemap merged commit 2323be8 into main Jul 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants