本文へスキップ
Skillpedia
デプロイとクラウド(DevOps)6.2k · #14407

upgrade-preflight

できること

セルフホストのLightdashのアップグレードが安全かを判断し、止まったマイグレーションから回復する手助けをします。自社でLightdashサーバーを運用し、アップグレードを計画するチーム向けです。

使う場面

  • ✓セルフホストのLightdashインスタンスのアップグレードを計画しているとき。
  • ✓Lightdashのアップグレードが安全に実行できるかに答える必要があるとき。
  • ✓Lightdashのマイグレーションが失敗したり、止まったり、ロックで動かなくなったりしたとき。

スキルのリンク

https://github.com/lightdash/lightdash/blob/main/skills/upgrade-preflight/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/lightdash/lightdash/blob/main/skills/upgrade-preflight/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“セルフホストのLightdashを最新版にアップグレードしても安全か確認して、チェックで何が見つかったかを教えてください。”

毎週5つの新しいスキル。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.

  • verdict is 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.
  • requiredStops non-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.

  • severity is the class of a check, not its result. postgres-version is always a red-class check; on a healthy server it reports {"severity": "red", "outcome": "pass"} and renders as [RED PASS]. Only severity: "red" with outcome: "fail" is
よくある質問

Lightdash Cloudでも使えますか?

いいえ。Cloudのアップグレードは管理されているため、これはセルフホストのインスタンス専用だと説明されています。

一方のチェックでもう一方を代えられますか?

いいえ。2つの事前確認コマンドは、異なる問いに答えると説明されています。

完全な手順はどこにありますか?

完全な手順については、公式のアップグレード安全性とランブックのページへのリンクがあります。

詳細

作者による元の説明

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
ライセンス
—
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル