upgrade-preflight
यह क्या करती है
यह स्किल ऑपरेटरों को तय करने में मदद करती है कि self-hosted Lightdash अपग्रेड सुरक्षित है या नहीं, और अटके हुए माइग्रेशन से उबरने में। यह उन टीमों के लिए है जो अपना Lightdash सर्वर चलाती हैं और उसके अपग्रेड की योजना बनाती हैं।
कब इस्तेमाल करें
- ✓जब आप self-hosted Lightdash इंस्टेंस के अपग्रेड की योजना बना रहे हैं।
- ✓जब आपको यह जवाब चाहिए कि Lightdash अपग्रेड चलाना सुरक्षित है या नहीं।
- ✓जब Lightdash माइग्रेशन विफल हो गया है, अटक गया है या किसी लॉक पर रुका है।
Skill का लिंक
https://github.com/lightdash/lightdash/blob/main/skills/upgrade-preflight/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“जाँचिए कि हमारे self-hosted Lightdash को नवीनतम वर्शन पर अपग्रेड करना सुरक्षित है या नहीं, और बताइए कि जाँच में क्या मिला।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल बताती है कि कौन से अपग्रेड जाँच और माइग्रेशन प्रीफ़्लाइट कमांड चलाने हैं, उनके एग्ज़िट कोड और आउटपुट कैसे पढ़ने हैं, और वे क्या साबित नहीं करते। पूरे चरणों के लिए वह ऑपरेटरों को आधिकारिक सुरक्षा और रनबुक पेज की ओर भेजती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
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
अक्सर पूछे जाने वाले सवाल
क्या यह Lightdash Cloud के लिए काम करती है?
नहीं, विवरण के अनुसार Cloud अपग्रेड आपके लिए प्रबंधित होते हैं, इसलिए यह केवल self-hosted इंस्टेंस के लिए है।
क्या एक जाँच दूसरी की जगह ले सकती है?
नहीं, स्किल समझाती है कि दोनों प्रीफ़्लाइट कमांड अलग सवालों के जवाब देते हैं।
पूरे चरण कहाँ हैं?
पूरी प्रक्रिया के लिए स्किल आधिकारिक अपग्रेड सुरक्षा और रनबुक पेज का लिंक देती है।
जानकारी
लेखक का मूल विवरण
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
लोकप्रियता
- GitHub स्टार
- 6.2k
- रैंकिंग में स्थान
- #14407
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
breakup-pr
6.2kआपके एजेंट को बड़े pull request को छोटे, एक के ऊपर एक जुड़े हिस्सों में बाँटने में मदद करती है, जिन्हें एक-एक करके रिव्यू और मर्ज किया जा सके।
lightdash-agent-slack-messaging
6.2kआपके एजेंट को Lightdash एडमिनिस्ट्रेटरों के लिए साफ़ और मित्रवत रखरखाव तथा गतिविधि रिपोर्ट लिखने में मदद करती है, केवल उपलब्ध सबूतों के आधार पर।
developing-in-lightdash
6.2kआपके एजेंट को Lightdash डैशबोर्ड और चार्ट को JSON के रूप में पढ़ने, बनाने और संपादित करने में मदद करती है, हर चार्ट प्रकार की सेटिंग के साथ।
filter-expressions
6.2kआपके एजेंट को Lightdash मीट्रिक क्वेरी के लिए सही फ़िल्टर एक्सप्रेशन लिखने में मदद करती है, जिनमें कस्टम मीट्रिक पर फ़िल्टर भी शामिल हैं।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।