Synthèse automatique
Pilote la CI complète de ce dépôt via le serveur MCP odu, en couvrant les lanes Linux et macOS, puis en enchaînant les corrections jusqu'au vert.
Points forts
- Encode des règles dures qui évitent les faux verts : double plateforme épinglée explicitement, drapeaux d'opt-out interdits, push et merge de master avant chaque run.
- Boucle fail-fast concrète : wait_for_settle renvoie dès le premier nœud rouge, avec lecture du log et node_rerun pour relancer.
- Mécanique de pool détaillée : bail natif Incus pour Linux, bail agent pour garder la même machine, hosts.json comme unique source de vérité pour Darwin.
Limites
- Procédure spécifique au dépôt kolu et à son infrastructure odu/Incus ; difficilement transposable telle quelle ailleurs.
- Dépend de la disponibilité des outils MCP odu et d'un hosts.json à jour ; une entrée de pool morte peut bloquer toute la lane Darwin.
- Suppose la lecture préalable de la skill /odu pour la mécanique du runner, et le fichier fourni est tronqué en fin de section.
À utiliser lorsqu'il faut lancer ou relancer la CI de ce dépôt, fermer une vérification rouge ou réchauffer le pool de runners.
À éviter sur un dépôt non raccordé à odu, ou lorsqu'on veut seulement un essai local sans publication de statuts de commit.
Analyse de sécurité
PrudenceThe skill drives a CI pipeline using legitimate but powerful operations: git pushes/merges, nix builds, GitHub API queries, and MCP-controlled infrastructure. No destructive or exfiltration actions are present; the risk is from powerful tool usage and lack of declared tool restrictions rather than malicious intent.
- •Skill instructs execution of shell commands (git, nix, gh, just, tee) and MCP tools that can mutate repository state and post commit statuses.
- •Uses network access via GitHub API and remote git operations.
- •References executing a diagnostic shell script (.apm/skills/ci/pu/diagnose.sh) and piping stderr through tee, though described as best-effort.
- •No allowed-tools are declared, yet the skill presumes availability of shell and MCP tools.
Exemples
Run CI for this repo on both x86_64-linux and aarch64-darwin, wait for settle, and tell me if the run actually carried both platforms.The CI run is red on the aarch64-darwin lane — pull the failing node's log, tell me what broke, and re-run that node once I push the fix.Warm the Incus Linux pool by running the linux lane against master with a hosts pin, then show me free and busy slots.name: ci
description: Run this repo's CI end-to-end — the kolu-specific procedure on top of the odu runner: the odu MCP front door, banned opt-out flags, mandatory two-platform coverage, venue-pool leasing, fail-fast surfacing, e2e timing evidence, and the green-gate. Triggers on "run CI", "drive CI", "re-run the pipeline", "close the red check", "warm the pool". Runner mechanics live in the /odu skill.
CI
Drive CI through the odu MCP server — the single front door. The runner is
odu (npins-pinned by ci/flake.nix, nix run ./ci#odu): mcp__odu__run
spawns the coordinator, mcp__odu__wait_for_settle blocks until settle or first
red node (its verdict is stamped sha7#seq; pass expected_sha to hard-check),
the surface://collections/logs/{id} resource drills into a failure,
mcp__odu__node_rerun closes a red check. Runner mechanics: /odu skill.
Banned flags: never --no-post, --no-strict, --no-snapshot. CI here is
always strict and always posts commit statuses — a run that doesn't post isn't
CI, it's a private dry-run that leaves the PR unverified.
Push before CI — remote lanes git fetch the pinned SHA from origin; an
unpushed commit can't run.
Sync master before CI, every run, whoever is driving. Fetch and merge
origin/<default> unless it's already an ancestor
(git merge-base --is-ancestor). The changelog is merge=union and never
conflicts; a real conflict is yours to resolve now. Never merge while a
gauntlet round is mid-commit — it races the index.
Every run covers both platforms. Pin them explicitly —
platforms=["x86_64-linux", "aarch64-darwin"] — never trust a machine-local
default: a platform you don't name silently drops; a named platform with no
pool entry is refused loudly (juspay/odu#46). Before reporting green,
confirm the settled run actually carried both — a single-platform green is a
false green.
Darwin hosts: read hosts.json, never this skill. The darwin fleet is
volatile (this file hard-named the live box three times and was stale each
time) — ~/.config/odu/hosts.json (nix run ./ci#odu -- hosts) is the only
source of truth; copy entries verbatim when pinning (user@ and tailnet suffixes
differ). Durable rules: under a coordinator, ask it before every darwin
dispatch (single-tenant); treat fs-watch-class reds on darwin as suspect box
environment and report before chasing; a dead pool entry silently stalls the
whole darwin lane — report it for removal rather than waiting it out.
A companion repo's darwin lane uses --host aarch64-darwin=<box>, never
inline $ODU_HOSTS — odu reads $ODU_HOSTS as a file path, so inline JSON
is silently ignored and burns a run on a dead host.
Linux lane: odu leases natively from the warm Incus pool
(kolu-ci-1..8 in hosts.json) — picks a free box, holds it for the run,
releases on settle. No manual leasing. Saturated pool waits in line
(no_wait: true to fail fast instead); nix run ./ci#odu -- hosts shows
free/busy. To keep the same hot box across fix→rerun cycles, take an
agent-held lease with mcp__odu__lease first and mcp__odu__release when
done. Pool upkeep: just ci::pool-ensure / just ci::pool-status; warm idle
slots by running the linux lane against master with a hosts= pin (strict and
posting, like every run).
Fail fast on the MCP; don't drain the pipeline. wait_for_settle returns
on the first red node with {failed[], errored[]} — read the red node's log
(the log resource, or .ci/<sha7>/<platform>/<recipe>.log) and start the
fix → fmt → commit → retry loop immediately. Waiting IS wait_for_settle
re-invoked: an unsettled return at timeout means call it again — never park
the wait on a background shell watcher over .ci/<sha7>/runs/ or a
gh pr checks poll. A hand-guessed ledger predicate hangs silently, and a
watcher that only detects settle forfeits first-red. errored (vs failed)
means infrastructure death — node_rerun it rather than hunting a test bug.
pu misbehaves → log it on
juspay/kolu#1204 via
.apm/skills/ci/pu/diagnose.sh <stage> <host> (best-effort, never blocks the
run). Capture the stage's stderr:
pu create "$host" 2> >(tee /tmp/pu-$host.err >&2).
After a green two-platform settle, post e2e metrics to the PR. Source of
truth: the run ledger .ci/<sha7>/runs/<seq>.json for each ci::e2e@<platform>
node's recipe-wall durationMs and host (never Cucumber's internal timer), and
the LAST ^e2e: workers= line in .ci/<sha7>/<platform>/ci::e2e.log for
resolved parallelism. Maintain one comment keyed by the
<!-- kolu-ci-e2e-metrics --> marker (edit if present, create if absent) with
the run identity <sha7>#<seq> and a table of
platform · host · workers · cores · cap · e2e duration. Fail loud rather than
comment if any ingredient is missing. Post only after the full run settles
green, before reporting the gate.
The green-gate: every required status check green on the PR's current
HEAD. Source the required list from just ci::protect --dry-run with
both explicit --platform flags — without them odu derives platforms from
the machine-local hosts.json and can emit a single-platform subset, a false
green. Verify with gh pr checks (a green from a retry counts).
Code-scanning alerts block merge too, and gh pr checks doesn't show them.
Query by PR number, never by branch ref — code scanning here is GitHub's
default setup, which analyses only the default branch and refs/pull/<n>/*, so
a ref=refs/heads/<branch> query answers "no alerts" about a ref nobody
scanned (measured on #2017: branch ref → 0, pr=2017 → an open HIGH):
gh api "repos/{owner}/{repo}/code-scanning/alerts?state=open&pr=<n>" \
--jq '.[] | "\(.rule.security_severity_level) \(.rule.id) \(.most_recent_instance.location.path):\(.most_recent_instance.location.start_line)"'
Fix every alert on code this PR introduced; name (don't silently ignore) any pre-existing alert on untouched code.
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/end-to-end-ci-execution-mt6repjc/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
mkdir -p '.skill-downloads/end-to-end-ci-execution-mt6repjc' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/end-to-end-ci-execution-mt6repjc/download' --output '.skill-downloads/end-to-end-ci-execution-mt6repjc/SKILL.md.part' && mv '.skill-downloads/end-to-end-ci-execution-mt6repjc/SKILL.md.part' '.skill-downloads/end-to-end-ci-execution-mt6repjc/SKILL.md'2. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Le fichier ne fournit pas un en-tête name/description exploitable pour cette procédure native. Le téléchargement reste disponible pour lecture ; utilisez le mode manuel ci-dessous.
Mode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/end-to-end-ci-execution-mt6repjc/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Configurer un canal de discussion avec SecretRefs
DevOps
Configurez des canaux de discussion avec des commandes non interactives, les secrets étant uniquement des SecretRefs. Couvre les étapes de collecte, modification, réparation et vérification.
Enquêter sur les échecs CI de ClickHouse
DevOps
Investigue un échec CI de ClickHouse de bout en bout à partir d'une URL de PR ou de rapport S3. Récupère les tests échoués, classe flaky vs vraie régression, et cherche des issues/fixes existants.
Revue de PR Ansible
DevOps
Examine une PR Ansible selon le processus standardisé du projet, incluant la validation des changelogs, la couverture de tests et le suivi des commentaires.