upgrade-preflight
Ce qu’il fait
Cette compétence aide les opérateurs à décider si une mise à jour Lightdash auto-hébergée est sûre et à se remettre d'une migration bloquée. Elle s'adresse aux équipes qui exploitent leur propre serveur Lightdash et planifient ses mises à jour.
Quand l’utiliser
- ✓Quand vous planifiez la mise à jour d'une instance Lightdash auto-hébergée.
- ✓Quand vous devez répondre à la question de savoir si une mise à jour Lightdash est sûre à lancer.
- ✓Quand une migration Lightdash a échoué, est bloquée ou attend un verrou.
Lien du skill
https://github.com/lightdash/lightdash/blob/main/skills/upgrade-preflight/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Vérifie si la mise à jour de notre Lightdash auto-hébergé vers la dernière version est sûre, et dis-moi ce que les contrôles ont trouvé.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
La compétence explique quelles commandes de contrôle de mise à jour et de contrôle préalable des migrations lancer, comment lire leurs codes de sortie et leur sortie, et ce qu'elles ne prouvent pas. Elle renvoie les opérateurs vers les pages officielles de sécurité des mises à jour et de procédure pour les étapes complètes.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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
Questions fréquentes
Fonctionne-t-elle pour Lightdash Cloud ?
Non, la description indique que les mises à jour Cloud sont gérées pour vous, cette compétence ne concerne donc que les instances auto-hébergées.
Un contrôle peut-il remplacer l'autre ?
Non, la compétence explique que les deux contrôles préalables répondent à des questions différentes.
Où trouver les étapes complètes ?
La compétence renvoie vers les pages officielles de sécurité de mise à jour et de procédure pour la marche à suivre complète.
Détails
Description originale de l’auteur
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
Popularité
- Étoiles GitHub
- 6.2k
- Position au classement
- #14407
- Licence
- —
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
breakup-pr
6.2kAide votre agent à découper une grande pull request en petites tranches empilées qui peuvent être relues et fusionnées une à une.
lightdash-agent-slack-messaging
6.2kAide votre agent à rédiger des rapports de maintenance et d'activité clairs et bienveillants pour les administrateurs Lightdash, en se basant uniquement sur les preuves disponibles.
developing-in-lightdash
6.2kAide votre agent à lire, créer et modifier des tableaux de bord et des graphiques Lightdash au format JSON, y compris les réglages propres à chaque type de graphique.
filter-expressions
6.2kAide votre agent à écrire des expressions de filtre correctes pour les requêtes de métriques Lightdash, y compris les filtres sur des métriques personnalisées.
Skills similaires
openclaw-update
394kAide votre agent à mettre à jour une passerelle OpenClaw existante, en choisissant la méthode adaptée à son installation et en gardant votre session active.
diagnose-gateway
394kAide votre agent à trouver pourquoi votre passerelle OpenClaw échoue, en vérifiant les paramètres, les canaux et les ports sans rien modifier.
crabbox-apps
394kAide votre agent à ouvrir et exécuter une application sur une machine cloud temporaire, puis à afficher sa vue dans le panneau latéral de votre chat.