Skip to content

fix(ci): ensure gemini-cli installs in reusable dev-lead workflow - #220

Merged
don-petry merged 1 commit into
mainfrom
fix/dev-lead-reusable-gemini-install
May 17, 2026
Merged

don-petry merged 1 commit into
mainfrom
fix/dev-lead-reusable-gemini-install

Conversation

@don-petry

Copy link
Copy Markdown
Collaborator

This fixes a bug where the fallback logic was failing because gemini-cli was not installed when the engine was set to claude in the reusable workflow.

Copilot AI review requested due to automatic review settings May 17, 2026 15:57
@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@coderabbitai

coderabbitai Bot commented May 17, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@don-petry has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 17 minutes and 12 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: acd99ac6-8ed8-4c2b-94bb-e3ddce1c9a96

📥 Commits

Reviewing files that changed from the base of the PR and between b2178f9 and 9110690.

📒 Files selected for processing (1)
  • .github/workflows/dev-lead-reusable.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/dev-lead-reusable-gemini-install

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@don-petry

Copy link
Copy Markdown
Collaborator Author

No description provided.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@don-petry

Copy link
Copy Markdown
Collaborator Author

Dev-Lead Fix CI — no-changes

PR: #220 | SHA: 911069071c3f8bb16a76067e41480ca86ef1cfd3
Engine ran but made no changes.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 911069071c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


case "$DEV_LEAD_ENGINE" in
claude)
npm install -g @google/gemini-cli || true

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Surface Gemini install failures before fallback

If the npm install fails here (registry outage, package error, or runner/network issue), || true lets the workflow continue with no gemini binary. In the fix-ci path, a later Claude rate limit calls run_writer_with_fallback, which tries Gemini next; a missing binary returns 127 from the Gemini branch in scripts/engine.sh, and because that helper only continues on exit 2, the run aborts instead of reaching the newly installed Copilot fallback. Either fail this setup step or explicitly skip unavailable engines before trying them.

Useful? React with 👍 / 👎.


case "$DEV_LEAD_ENGINE" in
claude)
npm install -g @google/gemini-cli || true

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use a Gemini model when enabling Gemini fallback

With this new install, Claude-primary runs can now reach the Gemini fallback, but run_writer_with_fallback captures the default model before switching engines (ENGINE_ACTION_MODEL is still claude-sonnet-4-6 from sourcing scripts/engine.sh) and then the Gemini branch invokes gemini --model "$model". In any Claude-rate-limit scenario this makes the fallback call Gemini with a Claude model name, so the newly enabled fallback fails as a CLI error instead of applying the fix.

Useful? React with 👍 / 👎.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@don-petry
don-petry merged commit 31dc6dd into main May 17, 2026
22 of 24 checks passed
@don-petry
don-petry deleted the fix/dev-lead-reusable-gemini-install branch May 17, 2026 16:04
don-petry added a commit that referenced this pull request Jun 7, 2026
Co-authored-by: Gemini CLI <gemini-cli@example.com>
don-petry added a commit that referenced this pull request Jun 7, 2026
Co-authored-by: Gemini CLI <gemini-cli@example.com>
don-petry added a commit that referenced this pull request Jun 8, 2026
Co-authored-by: Gemini CLI <gemini-cli@example.com>
don-petry added a commit that referenced this pull request Jun 12, 2026
Co-authored-by: Gemini CLI <gemini-cli@example.com>
don-petry added a commit that referenced this pull request Jun 14, 2026
Co-authored-by: Gemini CLI <gemini-cli@example.com>
don-petry added a commit that referenced this pull request Jun 18, 2026
Co-authored-by: Gemini CLI <gemini-cli@example.com>
don-petry added a commit that referenced this pull request Jun 25, 2026
Co-authored-by: Gemini CLI <gemini-cli@example.com>
don-petry added a commit that referenced this pull request Jun 25, 2026
Co-authored-by: Gemini CLI <gemini-cli@example.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants