diagnosing-ci-and-merge-bottlenecks
यह क्या करती है
यह स्किल इंजीनियरिंग एनालिटिक्स से दिखाती है कि pull requests खुलने से मर्ज होने तक कैसे चलते हैं, और CI उन्हें कहाँ धीमा करता है। यह इंजीनियरिंग लीड के लिए है जो टीम की डिलीवरी की गति का साफ़ नज़रिया चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप जानना चाहें कि समय के साथ CI तेज़ हो रहा है या धीमा।
- ✓जब आपको यह खोजना हो कि कौन सा GitHub Actions वर्कफ़्लो सबसे धीमा या कम भरोसेमंद है।
- ✓जब आप जानना चाहें कि pull request खुलने से मर्ज होने तक कितना समय लगता है।
Skill का लिंक
https://github.com/PostHog/posthog/blob/master/products/engineering_analytics/skills/diagnosing-ci-and-merge-bottlenecks/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या हमारा CI धीमा हो रहा है, और कौन सा GitHub वर्कफ़्लो देरी का कारण है?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह एक समय-सीमा में pull request डेटा और हर वर्कफ़्लो की स्थिति पढ़ती है, फिर मध्यिका और 95वें प्रतिशत का समय रिपोर्ट करती है। आपको कोई क्वेरी लिखने की ज़रूरत नहीं।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Diagnosing CI and merge bottlenecks
Engineering analytics treats a pull request like product analytics treats a user: a PR moves through a pipeline
(opened → CI → review → merged → deployed) and the job is to find where it slows down. The surface is named
MCP tools — you call them, you don't write SQL. Dogfooded on PostHog/posthog; the same tools serve
autonomous agents (e.g. PostHog Desktop) reasoning about their own PRs. Scope is aggregate pipeline health:
to take one failing test or red run to a verdict, switch to the investigating-ci-failures skill.
The tools
pull-requests— the PR workhorse. Open PRs plus anything merged or closed sincedate_from(default-30d), newest first. Each row carriesauthor(nested object:handle,display_name,is_bot),repo(nested:owner,name),state,is_draft,labels,open_to_merge_seconds,ready_to_merge_seconds, and acirollup (runs/passing/failing/pending) from the head-SHA join. Answers most PR-level questions: which PRs have failing or pending CI, which are stuck open longest, per-author or per-repo triage, and time-to-merge stats (aggregate over the returned merged rows yourself, median and p95, never a mean; preferready_to_merge_secondswhere non-null, it excludes draft time).workflow-health— per-workflow CI health over a window (date_from/date_to, default last 24 hours):run_count,success_rate,p50_seconds,p95_seconds,last_failure_at. Answers "is CI getting faster or slower" and "which workflow is the slow or flaky long pole". There is no built-in trend — call it over two adjacent windows and compare.success_ratecovers runs that succeeded or ended in a decisive failure (failure,timed_out,startup_failure, orstale), excluding skipped, cancelled, neutral, and action-required runs.p50_seconds/p95_secondscover successful runs only because cancelled and failed runs end early and would bias the duration trend. Each isnullwhen a window has no qualifying runs — guard for null before comparing two windows (a workflow can have runs in one and none in the other).run_scope=pull_requestscopes to PR-attributed runs, excluding master/main (same-repo PRs only — fork runs carry no PR attribution).pr-lifecycle— a single PR's timeline: a header plus ordered events — opened, ready-for-review and converted-to-draft transitions (when the issue-events table is synced), then a CI started/finished pair per workflow run (many on a multi-workflow repo, interleaved by time), then merged/closed. Answers "where is PR N stuck".metric_qualityispartial(no review or comment events).engineering-analytics-flaky-tests— the active test-health queue from the per-test CI spans, over a window (date_fromdefault-7d, max 30 days). Evidence is counted per CI run, never per span or run attempt.classificationisconfirmed_flakeonly where the evidence proves nondeterminism (same_commit_recovery_run_count > 0: one commit both failed and passed the test in the same matrix job, via a "Re-run failed jobs" attempt going green or an in-job retry; a pass in a different leg, such as FOSS against EE, is not recovery);quarantinedmeans a tolerated failure was recorded while masked;suspected_regressionmeans only failures were recorded, which is absence of proof, not proof of a real break. A test qualifies on any same-commit recovery, a quarantined failure, any master/main failure, or failures on ≥min_failed_prsdistinct PRs (failed_pr_count). Answers "what is this failing test costing us" and picks quarantine candidates. It does not answer "which tests are flaky": this queue only sees the main Backend pytest and Frontend Jest suites, and recovery proof only arrives when someone re-runs failed jobs (or a pytest test is hand-marked@pytest.mark.flaky(reruns=N)). Counts are absolute signal, never rates: passing runs are mostly not emitted, so there is no honest denominator. A CI setup break excludes every trial of the attempt, not only its failures: a run attempt whose tests errored in 3 or more jobs or for 3 or more owning teams, or a job attempt with 100 or more distinct failed or errored tests. A real break that wide is left out too, so when a whole suite or job goes red, checkworkflow-healthrather than reading an empty queue as healthy.**`engineering-analytics
अक्सर पूछे जाने वाले सवाल
क्या मुझे SQL लिखना होगा?
नहीं। यह नामित टूल इस्तेमाल करती है, इसलिए आप सादी भाषा में पूछ सकते हैं।
औसत के बजाय मध्यिका क्यों?
कुछ बहुत धीमे pull requests औसत को बिगाड़ सकते हैं, इसलिए मध्यिका और 95वाँ प्रतिशत ज़्यादा निष्पक्ष तस्वीर देते हैं।
क्या यह एक विफल टेस्ट की जाँच कर सकती है?
नहीं। एक विफल टेस्ट या रन के लिए एक अलग जाँच स्किल इस्तेमाल होती है।
जानकारी
लेखक का मूल विवरण
Diagnoses CI and pull-request pipeline health for a GitHub repo using the engineering analytics MCP tools — pull-requests (PR list with CI status), workflow-health (per-workflow CI trends), and pr-lifecycle (a single PR's timeline). Use when asked whether CI is getting faster or slower, which GitHub Actions workflow is the slow or flaky long-pole, how long PRs take from open to merge, how an author's merge time compares to the cohort, which open PRs have failing or pending CI, or where a specific pull request is stuck. Triggers on "engineering analytics", "is CI getting slower", "slow workflow
repo: PostHog/posthog
लोकप्रियता
- GitHub स्टार
- 41k
- रैंकिंग में स्थान
- #6864
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
depot-ci
41kयह आपके एजेंट को Depot CI वर्कफ़्लो सेट अप करने, चलाने और माइग्रेट करने में मदद करती है, साथ ही रन के लॉग पढ़ने में।
depot-container-builds
41kयह आपके एजेंट को Depot के रिमोट बिल्डर पर Docker इमेज बनाने में मदद करती है, जिसमें मल्टी-प्लेटफ़ॉर्म इमेज और बिल्ड सुधार शामिल हैं।
depot-github-runners
41kयह आपके एजेंट को GitHub Actions जॉब Depot के मैनेज्ड रनर पर ले जाने, रनर का साइज़ और लेबल चुनने, और रनर सेटअप की समस्याएँ ठीक करने में मदद करती है।
editing-agents-md
41kयह आपके एजेंट को तय करने में मदद करती है कि कोई नियम AGENTS.md या CLAUDE.md में जाए या नहीं, और उसे ऐसे लिखे कि फ़ाइल भारी न हो।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।