compare-gradle-builds
यह क्या करती है
यह स्किल Tuist में दर्ज दो Gradle build runs की तुलना करती है, जैसे दो branches के builds। यह Android या JVM प्रोजेक्ट पर काम करने वाले उन डेवलपर के लिए है जो जानना चाहते हैं कि build धीमा क्यों हुआ।
कब इस्तेमाल करें
- ✓जब feature branch पर Gradle build धीमा हो गया हो।
- ✓जब दो Gradle builds के बीच cache उपयोग या task परिणाम बदले हों।
- ✓जब आप Gradle build की गिरावट और सुझाए गए सुधारों का सार चाहें।
Skill का लिंक
https://github.com/tuist/tuist/blob/main/skills/skills/compare-gradle-builds/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे नवीनतम Gradle build की main से तुलना कीजिए और बताइए कि कौन से tasks धीमे हुए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट दो builds खोजता है, उनकी अवधि और task परिणाम पढ़ता है, cache hits की तुलना करता है, और गिरावट व सुधार का सार देता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Compare Gradle Builds
Quick Start
You'll typically receive two build identifiers (IDs, dashboard URLs, or branch names). Follow these steps using the Tuist MCP tools:
- Use
list_gradle_buildsto find builds on each branch. - Use
get_gradle_buildfor both base and head builds. - Use
list_gradle_build_tasksto fetch task-level details for both builds. - Compare duration, status, cache hit rates, and task outcomes.
- Summarize regressions, improvements, and recommendations.
If only one identifier is provided, use the project's default branch as the baseline.
Step 1: Resolve Builds
If base/head are build IDs or dashboard URLs
Fetch each directly with get_gradle_build(build_run_id: "<id>").
If base/head are branch names
List recent builds on each branch and pick the latest:
list_gradle_builds(account_handle: "...", project_handle: "...", git_branch: "<branch>", page_size: 1)
Then fetch full details with get_gradle_build(build_run_id: "<id>").
Defaults
- If no base is provided, use the project's default branch (usually
main). - If no head is provided, detect the current git branch with
git rev-parse --abbrev-ref HEAD.
Step 2: Compare Top-Level Metrics
After fetching both builds, compare:
| Metric | What to check |
|---|---|
duration_ms |
Flag if head is >10% slower than base |
status |
Flag if base succeeded but head failed |
tasks_local_hit_count |
Compare local cache hit counts |
tasks_remote_hit_count |
Compare remote cache hit counts |
tasks_executed_count |
Compare how many tasks ran (higher means more cache misses) |
cacheable_tasks_count |
Note if the cacheable task count changed |
cache_hit_rate |
(local_hits + remote_hits) / cacheable_tasks_count * 100 |
requested_tasks |
Ensure both builds ran the same tasks for a fair comparison |
gradle_version / java_version |
Note environment differences that affect comparability |
Compute the cache miss delta: base_executed - head_executed. Positive means head has fewer executions (improvement). Negative means regression.
Step 3: Drill Into Tasks
Use list_gradle_build_tasks for both builds. Compare duration_ms and outcome per task path.
Look for:
- Tasks that changed from
local_hitorremote_hittoexecuted(cache invalidation). - Tasks that changed from
executedtolocal_hitorremote_hit(cache improvement). - Tasks that changed to
failed(new failures). - New tasks that appeared in the head build.
- Tasks with significant duration increases.
Sort by absolute time difference to find the biggest regressions.
Filtering tasks
Use the outcome filter to focus on specific task states:
list_gradle_build_tasks(build_run_id: "<id>", outcome: "executed")to see only executed tasks.list_gradle_build_tasks(build_run_id: "<id>", outcome: "failed")to see failures.list_gradle_build_tasks(build_run_id: "<id>", cacheable: true)to see only cacheable tasks.
Step 4: Investigate Duration Regressions
If the head build is significantly slower:
- Check if
requested_tasksdiffer (different task sets are not directly comparable). - Check if cache hit rate dropped, which would explain longer builds.
- Look for tasks that changed from cache hits to
executed. - Check if
gradle_versionorjava_versionchanged, which can affect performance. - Compare individual task durations to find the biggest contributors.
Step 5: Investigate Cache Changes
Compare task-level cache behavior:
- Hit rate dropped: Possible causes include dependency changes, build configuration changes, or Gradle version updates that alter cache keys.
- Hit rate improved: Likely due to better cache warming or fewer source changes.
- Task count changed: New modules or tasks added/removed.
- Outcome changes: Tasks moving between
up_to_date,local_hit,remote_hit, andexecutedreveal cache effectiveness.
Step 6: Check Build Context
Compare environment details:
gradle_versionandjava_version: Different versions can affect build times and cache validity.is_ci: CI vs local builds may have different performance characteristics.git_branchandgit_commit_sha: Verify the builds are from the expected commits.root_project_name: Ensure both builds are from the same project structure.
Summary Format
Produce a summary with:
- Overall verdict: Better, worse, or neutral compared to base.
- Duration: Absol
अक्सर पूछे जाने वाले सवाल
यह क्या तुलना करती है?
अवधि, स्थिति, cache hit दर और task परिणाम।
क्या इसके लिए Tuist चाहिए?
हाँ। Gradle build डेटा पढ़ने के लिए यह Tuist के टूल इस्तेमाल करती है।
क्या यह किसी link से शुरू हो सकती है?
हाँ। यह build ID, dashboard link या branch नामों से शुरू हो सकती है।
जानकारी
लेखक का मूल विवरण
Compares two Gradle build runs to identify duration regressions, cache changes, and task outcome differences. Can be invoked with build IDs, dashboard URLs, or branch names.
repo: tuist/tuist
लोकप्रियता
- GitHub स्टार
- 5.9k
- रैंकिंग में स्थान
- #14541
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
analyze-selective-testing
5.9kयह आपके एजेंट को जाँचने देती है कि Xcode selective testing ने बिना बदले test targets को कितनी अच्छी तरह छोड़ा, और रनों के बीच छोड़ने में बदलाव क्यों हुआ।
compare-builds
5.9kयह आपके एजेंट को दो Xcode build runs की तुलना करने देती है, ताकि धीमे builds, cache उपयोग में बदलाव और नई समस्याएँ पता चलें।
compare-bundles
5.9kयह आपके एजेंट को दो app bundles की तुलना करने देती है, ताकि आकार में बदलाव, जुड़ी या हटी फ़ाइलें और platform के अंतर पता चलें।
compare-cache-runs
5.9kयह आपके एजेंट को दो cache runs की तुलना करने देती है, ताकि cache hit दरों में बदलाव पता चले और यह समझा जा सके कि cache क्यों अमान्य हुआ।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।