본문으로 건너뛰기
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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/lightdash/lightdash/blob/main/skills/upgrade-preflight/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 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 업그레이드는 자동으로 관리되므로 이 스킬은 자체 호스팅 인스턴스에만 해당합니다.

한 점검이 다른 점검을 대신할 수 있나요?

아니요, 두 사전 점검 명령은 서로 다른 질문에 답한다고 스킬이 설명합니다.

전체 절차는 어디에 있나요?

스킬은 전체 절차를 위해 공식 업그레이드 안전 및 런북 페이지를 링크합니다.

상세 정보

작성자의 원본 설명

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

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬