← Back to Pull requests

ci: combine hosted Bats configurations #1633

Merged
jdx merged 1 files (112 lines) on Oct 03, 2026 23:25 UTC
View on GitHub
jdx jdx commented on Oct 03, 2026 22:20 UTC
Author

<!-- entire-trail-link-start -->
https://entire.io/gh/jdx/hk/trails/209
<!-- entire-trail-link-end -->

Runs the libgit2 and nogit Bats configurations in one GitHub-hosted job per OS. The job now downloads the build artifact and provisions Bats tools once, while retaining independent retry steps for both configurations.

The Namespace-backed nolibgit2 job is unchanged because the hosted nogit configuration relies on runner behavior that is currently incompatible with Namespace. The final gate now requires the combined job, so all prior OS/configuration coverage remains required. The combined timeout preserves both configurations’ full retry budgets plus setup time.

Validation: actionlint .github/workflows/ci-impl.yml; git diff --check; the initial exact-head Ubuntu combined job passed both Bats steps. Full updated validation is delegated to this PR CI.

AI-assisted — Tool: Codex; model: unavailable; version: unavailable.

Diff: 112 lines (+15 / -97) across 1 files Reviewer: jdx Review duration: 64m
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.68) × (1 − Review Confidence (0.78)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.68 · 112 lines diff across 1 files
0.68
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.93 · 5 substantive comment(s)
0.93
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
78%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.283
Self Review self_review
0.140
Sensitive Paths sensitive_paths
0.068
Real PR Conversation Timeline
8 items
coderabbitai[bot] coderabbitai[bot] commented on Oct 03, 2026 22:21 UTC
Bot

<!-- This is an auto-generated comment: summarize by coderabbit.ai -->
<!-- This is an auto-generated comment: rate limited by coderabbit.ai -->

[!WARNING]

## Review limit reached

> You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

> Next included review available in 9 minutes.

> Check out review usage here.

> <details>

<summary>View limit details</summary>

> Limit details: You’ve used all 4 included reviews currently available.

> Learn how review limits work.

> Review configuration:

> <details>

<summary>⚙️ Run configuration</summary>

> - Configuration used: Repository YAML (base), Central YAML (inherited), Organization UI (inherited)

- Review profile: CHILL

- Plan: Advanced

- Run ID: 816f3c34-6b8c-4689-acc9-f73077187390

> </details>

> <details>

<summary>📥 Commits</summary>

> Reviewing files that changed from the base of the PR and between 373cc2cdfb8a7f05fc3949d7299f5ed3ae65f267 and f3e9865b15f4842c191c6462e12a3134b9b0045b.

> </details>

> <details>

<summary>📒 Files selected for processing (1)</summary>

> * .github/workflows/ci-impl.yml

> </details>

> </details>

<!-- end of auto-generated comment: rate limited by coderabbit.ai -->

<!-- autopilot:start -->

  • <!-- {"checkboxId":"2708ad07-9f24-4260-9c11-7dc76a49f2e3"} --> <strong title="Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts">Autopilot</strong> · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

  • <!-- autopilot:end -->
    <!-- tips_start -->

    ---

    Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

    <details>
    <summary>❤️ Share</summary>

  • X

  • Mastodon

  • Reddit

  • LinkedIn
  • </details>

    <sub>Comment @coderabbitai help to get the list of available commands.</sub>

    <!-- tips_end -->

    greptile-apps[bot] greptile-apps[bot] commented on Oct 03, 2026 22:22 UTC
    Bot

    <!-- greptile_summary -->

    <h2><a href="https://app.greptile.com/api/retrigger?id=74170971"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/RetriggerDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"><img alt="Retrigger" src="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2" align="right"></picture></a>Confidence Score: 5/5</h2>

    [High risk] Restructures CI job matrix and timeout configuration\.

    The PR appears safe to merge, though hosted test timing reporting remains unavailable.

    <h2><a href="https://app.greptile.com/ide/claude-code?prompt=%23%23%23%20Issue%201%0A.github%2Fworkflows%2Fci-impl.yml%3A183-187%0ANeither%20hosted%20configuration%20produces%20%60builtins-all.tsv%60%3A%20libgit2%20filters%20out%20the%20timing-producing%20test%2C%20while%20nogit%20excludes%20its%20Bats%20file.%20The%20new%20copy%20steps%20for%20both%20configurations%20therefore%20have%20no%20timing%20file%20to%20copy%2C%20so%20their%20summary%20entries%20are%20absent%20and%20the%20promised%20separate%20timings%20are%20unavailable.%20This%20is%20a%20non-blocking%20reporting%20issue%2C%20but%20the%20collection%20steps%20should%20reflect%20tests%20these%20configurations%20actually%20run.%0A%0A---%0A%0AFor%20each%20issue%20above%2C%20determine%20whether%20it%20is%20valid%20and%20should%20be%20fixed.%20If%20so%2C%20fix%20it%20directly.&repo=jdx%2Fhk&pr=1633&platform=github"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/FixAllInClaudeDark.svg?v=7"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/FixAllInClaude.svg?v=7"><img alt="Fix All in Claude Code" src="https://greptile-static-assets.s3.amazonaws.com/badges/FixAllInClaude.svg?v=7" align="right"></picture></a>Findings</h2>

    1. <img alt="P2" src="https://greptile-static-assets.s3.amazonaws.com/badges/p2.svg?v=9" align="top">&nbsp;Hosted timing files stay empty <a href="https://github.com/jdx/hk/pull/1633#discussion_r4175133844">▶</a>

    <h3>Summary</h3>

    The PR combines the hosted libgit2 and nogit Bats configurations into one job per OS, shares setup, and updates the final gate. The latest change raises the Linux job timeout to leave room for setup, but removes hosted timing publication.

    <!-- greptile_confidence_score:5 -->

    <sub>Reviews (2) · Last reviewed commit: "ci: retain hosted Bats retry budgets"</sub>

    greptile-apps[bot] greptile-apps[bot] commented on code on Oct 03, 2026 22:22 UTC
    Code Review
    .github/workflows/ci-impl.yml:1
    @@ -123,7 +124,9 @@ jobs:
               - os: macos-latest
               - os: ubuntu-latest
         runs-on: ${{ matrix.os }}
    -    timeout-minutes: ${{ matrix.os == 'macos-latest' && 40 || 30 }}
    +    # Keep both configuration-specific retry budgets. On macOS that is two
    +    # 15-minute libgit2 attempts, two 10-minute nogit attempts, and setup.
    +    timeout-minutes: ${{ matrix.os == 'macos-latest' && 60 || 40 }}

    <a href="#"><img alt="P1" src="https://greptile-static-assets.s3.amazonaws.com/badges/p1.svg?v=9" align="top"></a> Linux retry budget lacks setup time

    On Linux, libgit2 and nogit can each use two 10-minute attempts, filling the entire 40-minute job limit. If libgit2 uses both full attempts, checkout and tool setup leave too little time for nogit to finish its second attempt. The combined job can time out before completing the coverage that the former separate jobs allowed.

        timeout-minutes: ${{ matrix.os == 'macos-latest' && 60 || 50 }}
    

    Knowledge Base Used: Restore Bats Tools on Linux CI Runners

    <a href="https://app.greptile.com/ide/claude-code?prompt=This%20is%20a%20comment%20left%20during%20a%20code%20review.%0APath%3A%20.github%2Fworkflows%2Fci-impl.yml%0ALine%3A%20129%0A%0AComment%3A%0ALinux%20retry%20budget%20lacks%20setup%20time%0A%0AOn%20Linux%2C%20libgit2%20and%20nogit%20can%20each%20use%20two%2010-minute%20attempts%2C%20filling%20the%20entire%2040-minute%20job%20limit.%20If%20libgit2%20uses%20both%20full%20attempts%2C%20checkout%20and%20tool%20setup%20leave%20too%20little%20time%20for%20nogit%20to%20finish%20its%20second%20attempt.%20The%20combined%20job%20can%20time%20out%20before%20completing%20the%20coverage%20that%20the%20former%20separate%20jobs%20allowed.%0A%0A%60%60%60suggestion%0A%20%20%20%20timeout-minutes%3A%20%24%7B%7B%20matrix.os%20%3D%3D%20'macos-latest'%20%26%26%2060%20%7C%7C%2050%20%7D%7D%0A%60%60%60%0A%0AKnowledge%20Base%20Used%3A%20%5BRestore%20Bats%20Tools%20on%20Linux%20CI%20Runners%5D%28https%3A%2F%2Fapp.greptile.com%2Fjdx-org%2F-%2Fcustom-context%2Fknowledge-base%2Fjdx%2Fhk%2F-%2Freverts%2Fincident-mitigation_1527-20260929-bats-cache-miss-388e8a7.md%29%0A%0A---%0A%0AFor%20each%20issue%20above%2C%20determine%20whether%20it%20is%20valid%20and%20should%20be%20fixed.%20If%20so%2C%20fix%20it%20directly.&repo=jdx%2Fhk&pr=1633&platform=github"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/FixInClaudeDark.svg?v=7"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/FixInClaude.svg?v=7"><img alt="Fix in Claude Code" src="https://greptile-static-assets.s3.amazonaws.com/badges/FixInClaude.svg?v=7"></picture></a>

    greptile-apps[bot] greptile-apps[bot] commented on code on Oct 03, 2026 22:22 UTC
    Code Review
    .github/workflows/ci-impl.yml:1
    @@ -177,22 +180,44 @@ jobs:
               timeout_minutes: ${{ matrix.os == 'macos-latest' && 15 || 10 }}
               max_attempts: 2
               command: scripts/ci_attempt_notice "bats (libgit2)" mise run --skip-deps test:bats:libgit2
    -      - name: Publish builtin test timings
    +      - name: Save libgit2 test timings
             if: always()
             run: |
               f=target/test-timings/builtins-all.tsv
    -          [ -f "$f" ] || exit 0
    +          [ ! -f "$f" ] || cp "$f" target/test-timings/builtins-libgit2.tsv

    <a href="#"><img alt="P2" src="https://greptile-static-assets.s3.amazonaws.com/badges/p2.svg?v=9" align="top"></a> Hosted timing files stay empty

    Neither hosted configuration produces builtins-all.tsv: libgit2 filters out the timing-producing test, while nogit excludes its Bats file. The new copy steps for both configurations therefore have no timing file to copy, so their summary entries are absent and the promised separate timings are unavailable. This is a non-blocking reporting issue, but the collection steps should reflect tests these configurations actually run.

    <a href="https://app.greptile.com/ide/claude-code?prompt=This%20is%20a%20comment%20left%20during%20a%20code%20review.%0APath%3A%20.github%2Fworkflows%2Fci-impl.yml%0ALine%3A%20183-187%0A%0AComment%3A%0AHosted%20timing%20files%20stay%20empty%0A%0ANeither%20hosted%20configuration%20produces%20%60builtins-all.tsv%60%3A%20libgit2%20filters%20out%20the%20timing-producing%20test%2C%20while%20nogit%20excludes%20its%20Bats%20file.%20The%20new%20copy%20steps%20for%20both%20configurations%20therefore%20have%20no%20timing%20file%20to%20copy%2C%20so%20their%20summary%20entries%20are%20absent%20and%20the%20promised%20separate%20timings%20are%20unavailable.%20This%20is%20a%20non-blocking%20reporting%20issue%2C%20but%20the%20collection%20steps%20should%20reflect%20tests%20these%20configurations%20actually%20run.%0A%0A---%0A%0AFor%20each%20issue%20above%2C%20determine%20whether%20it%20is%20valid%20and%20should%20be%20fixed.%20If%20so%2C%20fix%20it%20directly.&repo=jdx%2Fhk&pr=1633&platform=github"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/FixInClaudeDark.svg?v=7"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/FixInClaude.svg?v=7"><img alt="Fix in Claude Code" src="https://greptile-static-assets.s3.amazonaws.com/badges/FixInClaude.svg?v=7"></picture></a>

    cursor[bot] cursor[bot] commented on code on Oct 03, 2026 22:23 UTC
    Code Review
    .github/workflows/ci-impl.yml:1
    @@ -123,7 +124,9 @@ jobs:
               - os: macos-latest
               - os: ubuntu-latest
         runs-on: ${{ matrix.os }}
    -    timeout-minutes: ${{ matrix.os == 'macos-latest' && 40 || 30 }}
    +    # Keep both configuration-specific retry budgets. On macOS that is two
    +    # 15-minute libgit2 attempts, two 10-minute nogit attempts, and setup.
    +    timeout-minutes: ${{ matrix.os == 'macos-latest' && 60 || 40 }}

    Ubuntu timeout drops retry budget

    Medium Severity

    <!-- DESCRIPTION START -->
    The Ubuntu timeout-minutes value of 40 covers two libgit2 attempts and two nogit attempts with no remaining time for checkout, mise, artifact download, or test:bats:setup. A retry in either configuration can hit the job timeout and cut off remaining attempts.
    <!-- DESCRIPTION END -->

    <!-- BUGBOT_BUG_ID: f77ff676-115f-4fb6-b910-20003208b81d -->

    <!-- LOCATIONS START
    .github/workflows/ci-impl.yml#L126-L129
    LOCATIONS END -->
    <div><a href="https://cursor.com/open?link=eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9JTl9DVVJTT1IiLCJkYXRhIjp7InJlZGlzS2V5IjoiYnVnYm90OjRhMDA3YzJlLTBlMjAtNDA0NS1iOWY5LTMyMjY2OTY5MTA2NiIsImVuY3J5cHRpb25LZXkiOiJRY3RQUU9mMjBVelRtdUUzNmdyY29tSVljY3I2aEg1dUtsYTZCMUZ1RnJvIiwiYnJhbmNoIjoiY2ktY29tYmluZS1ob3N0ZWQtYmF0cyIsInJlcG9Pd25lciI6ImpkeCIsInJlcG9OYW1lIjoiaGsiLCJwcm92aWRlciI6ImdpdGh1YiJ9fQ" target="_blank" rel="noopener noreferrer"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/fix-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/fix-in-cursor-light.png"><img alt="Fix in Cursor" width="115" height="28" src="https://cursor.com/assets/images/fix-in-cursor-dark.png"></picture></a>&nbsp;<a href="https://cursor.com/agents?link=eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9JTl9XRUIiLCJkYXRhIjp7InJlZGlzS2V5IjoiYnVnYm90OjRhMDA3YzJlLTBlMjAtNDA0NS1iOWY5LTMyMjY2OTY5MTA2NiIsImVuY3J5cHRpb25LZXkiOiJRY3RQUU9mMjBVelRtdUUzNmdyY29tSVljY3I2aEg1dUtsYTZCMUZ1RnJvIiwiYnJhbmNoIjoiY2ktY29tYmluZS1ob3N0ZWQtYmF0cyIsInJlcG9Pd25lciI6ImpkeCIsInJlcG9OYW1lIjoiaGsiLCJwck51bWJlciI6MTYzMywiY29tbWl0U2hhIjoiNTBmNmU0ZjYzMzBiMWM2NTkyNmE3ZTMwZmQ0ODRlOTE0OWUwYjhhYSIsInByb3ZpZGVyIjoiZ2l0aHViIn19" target="_blank" rel="noopener noreferrer"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/fix-in-web-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/fix-in-web-light.png"><img alt="Fix in Web" width="99" height="28" src="https://cursor.com/assets/images/fix-in-web-dark.png"></picture></a></div>

    <sup>Reviewed by Cursor Bugbot for commit 50f6e4f6330b1c65926a7e30fd484e9149e0b8aa. Configure here.</sup>

    cursor[bot] cursor[bot] commented on Oct 03, 2026 22:23 UTC
    Reviewer

    <!-- BUGBOT_REVIEW -->
    Cursor Bugbot has reviewed your changes and found 1 potential issue.

    <!-- BUGBOT_FIX_ALL -->
    <a href="https://cursor.com/open?link=eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9BTExfSU5fQ1VSU09SIiwiZGF0YSI6eyJyZWRpc0tleSI6ImJ1Z2JvdC1tdWx0aToyNTFmZmRmNy0zMzlhLTQ2ODUtYjEwMS0wMWFmOGU1NmJkMjAiLCJlbmNyeXB0aW9uS2V5IjoiQU9hS0k2M3FRcnFfSzkwa2lJb0c4ZFVzZzJHZUYxMElZTXZRaE1seWtOdyIsImJyYW5jaCI6ImNpLWNvbWJpbmUtaG9zdGVkLWJhdHMiLCJyZXBvT3duZXIiOiJqZHgiLCJyZXBvTmFtZSI6ImhrIiwicHJvdmlkZXIiOiJnaXRodWIifX0" target="_blank" rel="noopener noreferrer"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/fix-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/fix-in-cursor-light.png"><img alt="Fix All in Cursor" width="115" height="28" src="https://cursor.com/assets/images/fix-in-cursor-dark.png"></picture></a>
    <!-- /BUGBOT_FIX_ALL -->

    <!-- BUGBOT_AUTOFIX_REVIEW_FOOTNOTE_BEGIN -->
    <sup>❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.</sup>
    <!-- BUGBOT_AUTOFIX_REVIEW_FOOTNOTE_END -->

    <sup>Reviewed by Cursor Bugbot for commit 50f6e4f6330b1c65926a7e30fd484e9149e0b8aa. Configure here.</sup>

    jdx jdx commented on code on Oct 03, 2026 23:14 UTC
    Code Review
    .github/workflows/ci-impl.yml:1
    @@ -177,22 +180,44 @@ jobs:
               timeout_minutes: ${{ matrix.os == 'macos-latest' && 15 || 10 }}
               max_attempts: 2
               command: scripts/ci_attempt_notice "bats (libgit2)" mise run --skip-deps test:bats:libgit2
    -      - name: Publish builtin test timings
    +      - name: Save libgit2 test timings
             if: always()
             run: |
               f=target/test-timings/builtins-all.tsv
    -          [ -f "$f" ] || exit 0
    +          [ ! -f "$f" ] || cp "$f" target/test-timings/builtins-libgit2.tsv

    Already addressed at the current head (f3e9865b): the libgit2 and nogit timing publish/upload steps were removed, and only ci-nolibgit2, which does produce builtins-all.tsv, still publishes timings.

    _🤖 Addressed by Claude Code_

    Reviewers
    Assignees
    jdx jdx
    Labels
    risk: low confidence: 78.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 68.5% (HIGH) · Higher = larger blast radius
    68.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 78.5% · Lower = rushed or shallow review
    78.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 14.8% · Safe to merge
    14.8%
    Repository