analyze-github-flake

द्वारा flutter

फ्लटर/फ्लटर रिपॉजिटरी में फ्लेक गिटहब मुद्दों के विश्लेषण में विशेषज्ञता। तब उपयोग करें जब कोई उपयोगकर्ता फ्लटर के किसी विशिष्ट लिंक की अस्थिरता का विश्लेषण करना चाहता है…

npx skills add https://github.com/flutter/flutter --skill analyze-github-flake

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/. 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 , Windows%20plugin_test is the <check_name> and 16247 is the .

Then use the 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.

flutter की और Skills

adding-release-notes
flutter
उपयोगकर्ता-सामना करने वाले परिवर्तन विवरणों को DevTools रिलीज़ नोट्स में जोड़ता है। NEXT_RELEASE_NOTES.md फ़ाइल में सुधार, सुधार या नई सुविधाओं का दस्तावेज़ीकरण करते समय उपयोग करें।
official
dart-modern-features
flutter
आधुनिकीकरण के लिए उम्मीदवार खोजने हेतु:
official
genui-helper
flutter
यह कौशल genui रिपॉजिटरी के लिए विशिष्ट वर्कफ़्लो और सर्वोत्तम प्रथाएँ प्रदान करता है।
official
add-dart-lint-validation-rule
flutter
dart_skills_lint में एक नया सत्यापन नियम और CLI फ्लैग जोड़ने के निर्देश।
official
grill-with-docs
flutter
ग्रिलिंग सत्र जो आपकी योजना को मौजूदा डोमेन मॉडल के विरुद्ध चुनौती देता है, शब्दावली को स्पष्ट करता है, और दस्तावेज़ीकरण (CONTEXT.md, ADRs) को इनलाइन अपडेट करता है...
official
flutter-cherry-pick
flutter
फ्लटर/फ्लटर रिपॉजिटरी के स्थिर या बीटा चैनल के लिए किसी मर्ज किए गए PR की औपचारिक चेरी-पिक कैसे करें। केवल फ्लटर/फ्लटर में लैंड किए गए पुल रिक्वेस्ट के लिए उपयोग करें। केवल…
official
rebuilding-flutter-tool
flutter
फ्लटर टूल और CLI को पुनर्निर्माण करता है। इसका उपयोग तब करें जब कोई उपयोगकर्ता फ्लटर टूल या CLI को संकलित, अद्यतन, पुनर्जीवित या पुनर्निर्माण करने के लिए कहे।
official
upgrade-browser
flutter
Flutter वेब इंजन और/या फ्रेमवर्क परीक्षणों में ब्राउज़र संस्करणों (Chrome या Firefox) को अपग्रेड करें। जब Chrome या Firefox को नए संस्करण में रोल या अपग्रेड करने के लिए कहा जाए तो इसका उपयोग करें।
official