upgrade-preflight
Skill này làm gì
Skill này giúp người vận hành quyết định xem việc nâng cấp Lightdash tự lưu trữ có an toàn không và khôi phục khi một quá trình migration bị kẹt. Skill dành cho các nhóm tự chạy máy chủ Lightdash và lên kế hoạch nâng cấp.
Khi nào nên dùng
- ✓Khi bạn đang lên kế hoạch nâng cấp một bản Lightdash tự lưu trữ.
- ✓Khi bạn cần trả lời xem việc nâng cấp Lightdash có an toàn để chạy không.
- ✓Khi một migration Lightdash bị lỗi, treo hoặc đang kẹt ở một khóa.
Liên kết skill
https://github.com/lightdash/lightdash/blob/main/skills/upgrade-preflight/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Kiểm tra xem việc nâng cấp Lightdash tự lưu trữ của chúng tôi lên phiên bản mới nhất có an toàn không, và cho tôi biết các kiểm tra đã tìm thấy gì.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill giải thích lệnh kiểm tra nâng cấp và lệnh kiểm tra trước migration nào cần chạy, cách đọc mã thoát và kết quả đầu ra, và những gì chúng không chứng minh được. Skill chỉ người vận hành đến các trang an toàn nâng cấp và sổ tay vận hành chính thức để có đầy đủ các bước.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Upgrade preflight
Decide whether a self-hosted Lightdash upgrade is safe to run, and report the answer accurately.
Scope
Use this when helping an operator upgrade a self-hosted instance: choosing a target version, planning a window, gating a pipeline, or recovering a migration that failed or hung.
Don't use this for Lightdash Cloud (upgrades are managed), dbt or semantic-layer work, or developing Lightdash itself.
The human-facing references are upgrade safety (what the signals mean) and the upgrade runbook (execution sequences, per-platform invocation, recovery, rollback). This skill is the agent-facing layer: what to run, what to branch on, and what not to conclude. Link the operator to those pages rather than paraphrasing them.
Vocabulary
One term per concept, matching the docs: a span is a from-version to a to-version; verdict is upgrade-check's answer about a span; a check is one item the preflight reports; decision is the preflight's overall answer; the lease is the row a migrating node holds while it works.
Two layers, in this order
Two commands. They answer different questions and neither substitutes for the other.
lightdash upgrade-check |
migrate preflight |
|
|---|---|---|
| Question | Is this span safe in principle? | Will this database take it right now? |
| Where | Anywhere — the @lightdash/cli, no login, no database |
Inside the image, with database env credentials |
| Reads | The public release-safety index on GitHub | The live database + the artifact baked into the image |
| Invocation | lightdash upgrade-check --from 1.130.0 --to 1.138.0 [--json] |
pnpm -F backend migrate-production preflight [--json] [--strict] [--force] |
Run upgrade-check first. It is the decision layer: it can tell the operator not to attempt the span at all, or that they must stop at an intermediate release, before anyone touches the instance. migrate preflight is the execution layer and cannot see the span — it knows only the image it runs in and the ledger in front of it. A preflight decision of proceed never licenses a span whose verdict was not true.
Gate on exit codes and JSON
Both commands print human text by default and a machine payload under --json. Branch on the exit code, then read named fields — not the rendered text. The words RED, UNSAFE and abort all appear in the prose of runs that are fine, and the human renderer is not a contract.
Exit codes are binary in both commands: 0 success, 1 everything else — an unsafe verdict, an aborted decision, or an error such as an unreachable index or a rejected flag. There is no severity ladder in the exit code; the severity lives in the payload. A non-zero exit means "stop and read the payload", never "this specific thing went wrong".
upgrade-check — branch on safe (boolean). It is true only when verdict is true, requiredStops is empty, and the from-version is not below minPreviousVersion.
verdictis tri-state:true,false, or"unknown"."unknown"is not a pass — a release in the span is unindexed or indexed as unknown, so the command fails closed. Report it as "cannot verify this span", never as "clear" or "probably fine". This is the output most likely to be mis-summarised into an all-clear.requiredStopsnon-empty means the span must be split into several upgrades, not that it is forbidden.- A rollback span is rejected with an error rather than a verdict; rollback guidance is in the runbook.
migrate preflight — branch on decision: proceed, proceed-with-warnings, abort, or force-proceed. Equivalently, gate on summary.red and summary.yellow.
severityis the class of a check, not its result.postgres-versionis always a red-class check; on a healthy server it reports{"severity": "red", "outcome": "pass"}and renders as[RED PASS]. Onlyseverity: "red"withoutcome: "fail"is
Câu hỏi thường gặp
Skill có dùng được với Lightdash Cloud không?
Không. Mô tả nêu rõ việc nâng cấp Cloud được quản lý sẵn, nên skill này chỉ dành cho bản tự lưu trữ.
Một kiểm tra có thể thay thế kiểm tra kia không?
Không. Skill giải thích rằng hai lệnh kiểm tra trước này trả lời hai câu hỏi khác nhau.
Các bước đầy đủ nằm ở đâu?
Skill liên kết đến trang an toàn nâng cấp và sổ tay vận hành chính thức của Lightdash.
Chi tiết
Mô tả gốc của tác giả
Checks whether a self-hosted Lightdash upgrade is safe to run, and reads the tooling's answer without over-reading it. Use when upgrading a self-hosted instance, planning a maintenance window, answering "is this upgrade safe", or recovering a failed, hung, parked or lock-stuck migration — covers `lightdash upgrade-check` and `migrate preflight`, how to gate on their exit codes and JSON, and the readings that look calm but mean "could not check".
repo: lightdash/lightdash
Độ phổ biến
- Sao GitHub
- 6.2k
- Vị trí xếp hạng
- #14407
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
breakup-pr
6.2kGiúp agent của bạn tách một pull request lớn thành các phần nhỏ, xếp chồng lên nhau, để có thể xem xét và gộp từng phần một.
lightdash-agent-slack-messaging
6.2kGiúp agent của bạn viết báo cáo bảo trì và hoạt động cho quản trị viên Lightdash rõ ràng, thân thiện, chỉ dựa trên bằng chứng có sẵn.
developing-in-lightdash
6.2kGiúp agent của bạn đọc, tạo và chỉnh sửa dashboard và biểu đồ Lightdash dưới dạng JSON, kèm cài đặt của từng loại biểu đồ.
filter-expressions
6.2kGiúp agent của bạn viết biểu thức lọc đúng cho truy vấn số liệu Lightdash, kể cả lọc trên các chỉ số tùy chỉnh.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.