Skip to content

Don't silence stderr in format.sh #15804

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 28, 2025

Conversation

cgoldberg
Copy link
Contributor

@cgoldberg cgoldberg commented May 27, 2025

User description

💥 What does this PR do?

This PR removes the silencing of stderr when calling bazel in ./scripts/format.sh. Without this, if you run the format script and don't have bazel installed, it just fails silently. This will make it more visible by not hiding the error.

🔄 Types of changes

  • build/tooling

PR Type

Enhancement


Description

  • Stop silencing stderr in format.sh Bazel calls

  • Improve error visibility when Bazel is missing


Changes walkthrough 📝

Relevant files
Enhancement
format.sh
Make Bazel errors visible in format.sh script                       

scripts/format.sh

  • Removed redirection of stderr to /dev/null for Bazel workspace info
  • Errors from Bazel are now visible to users
  • +1/-1     

    Need help?
  • Type /help how to ... in the comments thread for any questions about Qodo Merge usage.
  • Check out the documentation for more information.
  • Copy link
    Contributor

    PR Reviewer Guide 🔍

    Here are some key observations to aid the review process:

    ⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪
    🧪 No relevant tests
    🔒 No security concerns identified
    ⚡ No major issues detected

    @selenium-ci selenium-ci added the B-build Includes scripting, bazel and CI integrations label May 27, 2025
    Copy link
    Contributor

    qodo-merge-pro bot commented May 27, 2025

    PR Code Suggestions ✨

    No code suggestions found for the PR.

    @cgoldberg cgoldberg merged commit ce8faa7 into SeleniumHQ:trunk May 28, 2025
    9 checks passed
    @cgoldberg cgoldberg deleted the dont-hide-format-error branch May 28, 2025 13:42
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    B-build Includes scripting, bazel and CI integrations Review effort 1/5
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    2 participants