Skip to content

t2957: Stop suppressing stderr in version checks for debuggability#2959

Merged
marcusquinn merged 2 commits intomainfrom
bugfix/t2957-tool-version-check-stderr
Mar 6, 2026
Merged

t2957: Stop suppressing stderr in version checks for debuggability#2959
marcusquinn merged 2 commits intomainfrom
bugfix/t2957-tool-version-check-stderr

Conversation

@marcusquinn
Copy link
Owner

Summary

Details

The 2>/dev/null on the timeout_sec call was suppressing all stderr output from version commands. While this kept output clean, it hid important diagnostic information when commands failed for reasons other than hanging (e.g., permission denied, missing shared libraries, auth errors). Removing it lets stderr flow through to the caller for visibility while stdout still goes to the temp file for version string parsing.

Closes #2957

Remove blanket 2>/dev/null from timeout_sec version check call so that
error messages from version commands (permission issues, missing
dependencies) remain visible for debugging instead of being silently
discarded.

Closes #2957
@gemini-code-assist
Copy link

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the debuggability of tool version checks by ensuring that error output from command executions is no longer suppressed. By allowing standard error streams to pass through, diagnostic information becomes immediately visible, significantly aiding in troubleshooting issues related to command failures or unexpected behavior during version verification.

Highlights

  • Improved Debuggability: Removed the 2>/dev/null redirection from the timeout_sec version check call in tool-version-check.sh to allow stderr messages (e.g., permission issues, missing dependencies) to be visible for debugging purposes.
  • Addressed Prior Feedback: This change addresses unactioned review feedback from PR fix: tool-version-check.sh hangs — add timeout and hung-process detection #2932, specifically a medium-severity Gemini code review comment regarding error suppression.
Changelog
  • .agents/scripts/tool-version-check.sh
    • Removed 2>/dev/null from the timeout_sec command to prevent suppression of stderr.
Activity
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 6, 2026

Warning

Rate limit exceeded

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

⌛ 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.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: d6e1ca97-cbf5-40b6-8f1e-629082c2b327

📥 Commits

Reviewing files that changed from the base of the PR and between 6d8e3f5 and b038880.

📒 Files selected for processing (2)
  • .agents/scripts/tool-version-check.sh
  • .github/workflows/review-bot-gate.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch bugfix/t2957-tool-version-check-stderr

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.

@github-actions
Copy link

github-actions bot commented Mar 6, 2026

🔍 Code Quality Report

�[0;35m[MONITOR]�[0m Code Review Monitoring Report

�[0;34m[INFO]�[0m Latest Quality Status:
SonarCloud: 0 bugs, 0 vulnerabilities, 108 code smells

�[0;34m[INFO]�[0m Recent monitoring activity:
Fri Mar 6 02:41:41 UTC 2026: Code review monitoring started
Fri Mar 6 02:41:42 UTC 2026: SonarCloud - Bugs: 0, Vulnerabilities: 0, Code Smells: 108

📈 Current Quality Metrics

  • BUGS: 0
  • CODE SMELLS: 108
  • VULNERABILITIES: 0

Generated on: Fri Mar 6 02:41:44 UTC 2026


Generated by AI DevOps Framework Code Review Monitoring

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request correctly removes the suppression of stderr from the version check command in tool-version-check.sh. This is a valuable change that improves debuggability by ensuring that error messages from underlying tool commands are no longer hidden. The implementation is correct and aligns with the project's general rules against blanket error suppression.

The workflow fired on pull_request (opened/synchronize) and immediately
failed because no bots had posted yet (takes 30s-2min). This created a
permanent failed check even though the re-trigger on pull_request_review
passed seconds later.

Fix: when no bots are found and the PR is younger than MIN_WAIT_SECONDS
(120s), pass with a 'pending' note instead of failing. The gate still
hard-fails for PRs older than the threshold where bots should have posted.
The check re-runs automatically when bots post via pull_request_review
or issue_comment triggers.
@github-actions
Copy link

github-actions bot commented Mar 6, 2026

🔍 Code Quality Report

�[0;35m[MONITOR]�[0m Code Review Monitoring Report

�[0;34m[INFO]�[0m Latest Quality Status:
SonarCloud: 0 bugs, 0 vulnerabilities, 108 code smells

�[0;34m[INFO]�[0m Recent monitoring activity:
Fri Mar 6 03:04:11 UTC 2026: Code review monitoring started
Fri Mar 6 03:04:11 UTC 2026: SonarCloud - Bugs: 0, Vulnerabilities: 0, Code Smells: 108

📈 Current Quality Metrics

  • BUGS: 0
  • CODE SMELLS: 108
  • VULNERABILITIES: 0

Generated on: Fri Mar 6 03:04:14 UTC 2026


Generated by AI DevOps Framework Code Review Monitoring

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 6, 2026

@marcusquinn marcusquinn merged commit 5fc8fc2 into main Mar 6, 2026
12 checks passed
@marcusquinn marcusquinn deleted the bugfix/t2957-tool-version-check-stderr branch March 6, 2026 03:29
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.

quality-debt: .agents/scripts/tool-version-check.sh — PR #2932 review feedback (medium)

1 participant