ci: combine hosted Bats configurations #1633
<!-- 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 -->
<!-- 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>
</details>
<sub>Comment @coderabbitai help to get the list of available commands.</sub>
<!-- tips_end -->
<!-- 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"> 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>
<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>
<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>
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> <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>
<!-- 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>
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_
jdx
<!-- 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.