Analyse des issues de flakiness GitHub

VérifiéPrudence

Expertise pour analyser les issues de flakiness dans le dépôt flutter/flutter, identifier les builds échoués et résumer les types de pannes.

Spar Skills Guide Bot
TestingIntermédiaire
29/08/2026
Claude CodeCodex
#flaky-tests#flutter#github-issues#ci-logs#triage

Recommandé pour

Synthèse automatique

Analyse un ticket de flakiness du dépôt flutter/flutter en récupérant les builds CI en échec et en classant les défaillances par type, sans modifier aucun fichier.

Points forts

  • Vérifie d'abord que le ticket provient bien de fluttergithubbot et suit le format « <cible ci.yaml> is X% flaky », puis s'arrête proprement sinon
  • Agrège les URLs de builds en échec depuis le corps du ticket et depuis les commentaires de fluttergithubbot
  • Interroge l'API buildbucket pour obtenir les métadonnées et les logs des builds concernés
  • Produit un résumé de haut niveau avec des catégories de pannes distinctes plutôt qu'une correction du code

Limites

  • Nécessite gh authentifié, dart et git installés sur la machine hôte
  • Suppose que le ticket suit le format exact produit par le bot de flakiness de Flutter ; les tickets manuels sont ignorés
  • Ne cherche pas la cause racine dans le code de flutter/ et ne propose pas de correctif
Quand l'utiliser

À utiliser lorsqu'un ticket de flakiness Flutter doit être trié rapidement pour comprendre quels types d'échecs se répètent dans la CI.

Quand l'éviter

À ne pas utiliser pour diagnostiquer ou corriger un test instable précis dans le code, ni pour des tickets GitHub qui ne proviennent pas du bot de flakiness.

Analyse de sécurité

Prudence
Score qualité80/100

The skill only reads a public GitHub issue and public Chromium build metadata, and explicitly forbids modifying files or solving root causes. It uses powerful tools (gh CLI, curl to an external API) for a legitimate, well-scoped read-only analysis task, so it warrants caution rather than safe, but nothing destructive, obfuscated, or exfiltrating is present. The buildbucket request carries some superfluous browser headers but no sensitive data is sent anywhere unexpected.

Points d'attention
  • •Runs shell commands (`gh issue view`, `curl`) against external services; all read-only but requires network access and an authenticated `gh` session
  • •The curl POST to `cr-buildbucket.appspot.com` includes copied browser request headers (referer, sec-ch-ua, x-return-encrypted-headers) that are unnecessary and look copy-pasted from devtools, but are harmless
  • •Explicitly scoped to reading a GitHub issue's body/comments and public CI build metadata; no file writes, no destructive commands, no secret/token exfiltration, no curl|sh piping
Comment cette analyse est faite

Exemples

Analyze a flake issue
Analyze the flakiness of https://github.com/flutter/flutter/issues/174116 and summarize what kinds of failures are showing up.
Check whether an issue qualifies
Is https://github.com/flutter/flutter/issues/170002 a flake-bot issue, and if so, bucket its failing builds by failure type?
Triage several links
Here are three flutter/flutter issue links: https://github.com/flutter/flutter/issues/174116, https://github.com/flutter/flutter/issues/173998, https://github.com/flutter/flutter/issues/173450 — for each one that is a flake-bot issue, give me a short breakdown of the failure categories.

name: analyze-github-flake description: Expertise in analyzing flake github issues in the flutter/flutter repository. Use when a user wants to analyze the flakiness of a specific link to a flutter github issue.

<!-- Host assumptions: Installed and on path: * dart * git * gh Had authentication setup: * gh -->

Flake analysis instructions

Rules You should not modify ANY files - you are only to provide an analysis of why the specific check is flaking. You should only look at the issue body, as well as comments containing links to additional builds. You should not attempt to solve the flakes or pinpoint root causes inside of flutter/, just provide a high level summary of what is going on and bucket the failures into distinct types.

Collecting the list of failing builds and obtaining the logs

Github issue urls take the form of https://github.com/flutter/flutter/issues/<issue-number>. Where issue-number is a number.

Get information about the issue by using gh issue view <issue-number> --repo flutter/flutter --json=author,body,id,labels,number,state,title,url

For example to find information about the issue https://github.com/flutter/flutter/issues/174116 you can call gh issue view 174116 --repo flutter/flutter --json=author,body,id,labels,number,state,title,url

At this point there are two possible cases. If the issue

  1. Is filed by fluttergithubbot
  2. Has a title of the format "<ci.yaml target> is X% flaky" Then it is of the type we are looking to analyze. If it is not, you should short circuit here, either notifying the user that the issue is not filed by the github flake bot (if they directly asked for the skill to be invoked) or otherwise continue with your previous work (if they did not).

If the previous conditions are met, the title will contain the name of the flaking check, and the body will contain urls which link to instances where the check failed or flaked, each on a new line, directly after "Flaky builds:". You should also inspect the comments and find each comment made by "login": "fluttergithubbot", and extract the urls from there as well (the format will be the same, with an example flake at the top, and the full list immediately after the "Flaky builds:" header).

To find information about the specific failure take one of the urls listed in the issue body. That link takes the format "https://ci.chromium.org/ui/p/flutter/builders/<bucket>/<check_name>/<buildNumber>/overview",

Example https://ci.chromium.org/ui/p/flutter/builders/prod/Windows%20plugin_test/16247/overview where prod is the <bucket>, Windows%20plugin_test is the <check_name> and 16247 is the <buildNumber>.

Then use the <buildNumber> to get the test logs metadata by running the following command.

curl 'https://cr-buildbucket.appspot.com/prpc/buildbucket.v2.Builds/GetBuild' \
  -H 'accept: application/json' \
  -H 'accept-language: en-US,en;q=0.9,es;q=0.8' \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -H 'origin: https://ci.chromium.org' \
  -H 'pragma: no-cache' \
  -H 'priority: u=1, i' \
  -H 'referer: https://ci.chromium.org/' \
  -H 'sec-ch-ua: "Chromium";v="146", "Not-A.Brand";v="24", "Google Chrome";v="146"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "macOS"' \
  -H 'sec-fetch-dest: empty' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-site: cross-site' \
  -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36' \
  -H 'x-return-encrypted-headers: all' \
  --data-raw '{"builder":{"project":"flutter","bucket":"<bucket>","builder":"<check_name>"},"buildNumber":<buildNumber>,"mask":{"fields":"id,builder,builderInfo,number,canceledBy,createdBy,createTime,startTime,endTime,cancelTime,status,statusDetails,summaryMarkdown,output,steps,tags,schedulingTimeout,executionTimeout,gracePeriod,ancestorIds,retriable"}}'

Ignore the characters )]}' that start the response and treat the rest like json.

Inspect the content of the logs to determine the cause of the failure.

Do this for each of the urls in the issue body. Collect the logs for each of the specific failures, and categorize them by the type of failure in to a high level summary.

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 annexes

Ce 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.md

Depuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/analyze-github-flake-issues-mte1lkka/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/analyze-github-flake-issues-mte1lkka' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/analyze-github-flake-issues-mte1lkka/download' --output '.skill-downloads/analyze-github-flake-issues-mte1lkka/SKILL.md.part' && mv '.skill-downloads/analyze-github-flake-issues-mte1lkka/SKILL.md.part' '.skill-downloads/analyze-github-flake-issues-mte1lkka/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

Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.

Claude Code
test -f '.skill-downloads/analyze-github-flake-issues-mte1lkka/SKILL.md' && test -s '.skill-downloads/analyze-github-flake-issues-mte1lkka/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/analyze-github-flake' && cp -R '.skill-downloads/analyze-github-flake-issues-mte1lkka' '.claude/skills/analyze-github-flake'

Codex
test -f '.skill-downloads/analyze-github-flake-issues-mte1lkka/SKILL.md' && test -s '.skill-downloads/analyze-github-flake-issues-mte1lkka/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/analyze-github-flake' && cp -R '.skill-downloads/analyze-github-flake-issues-mte1lkka' '.agents/skills/analyze-github-flake'

OpenSkills

OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.

Installation officielle d’OpenSkills
openskills install './.skill-downloads/analyze-github-flake-issues-mte1lkka'

openskills read 'analyze-github-flake-issues-mte1lkka'

La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.

Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.

openskills sync

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/analyze-github-flake-issues-mte1lkka/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.

Skills similaires