Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

feat(debug): add brew config and brew doctor output#112

Merged
ReenigneArcher merged 1 commit intomasterfrom
fix/audit/workaround-failures
May 2, 2025
Merged

feat(debug): add brew config and brew doctor output#112
ReenigneArcher merged 1 commit intomasterfrom
fix/audit/workaround-failures

Conversation

@ReenigneArcher
Copy link
Member

@ReenigneArcher ReenigneArcher commented Apr 30, 2025

Description

Brew 4.5.0 is causing audit failures.

I believe it's something to do with autobump, but not 100% sure how to resolve this yet.

Pulled the help chain in homebrew discussions as I really have no ideas on any workarounds:

Issue was fixed by Homebrew/brew#19854

This PR will instead simply output the additional info required for brew issues, i.e. brew doctor and brew config

Screenshot

Issues Fixed or Closed

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Dependency update (updates to dependencies)
  • Documentation update (changes to documentation)
  • Repository update (changes to repository files, e.g. .github/...)

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated the in code docstring/documentation-blocks for new or existing methods/components

@codecov
Copy link

codecov bot commented Apr 30, 2025

Codecov Report

Attention: Patch coverage is 85.71429% with 2 lines in your changes missing coverage. Please review.

Project coverage is 90.62%. Comparing base (d280467) to head (8eb9c1b).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
action/main.py 85.71% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #112      +/-   ##
==========================================
- Coverage   91.27%   90.62%   -0.66%     
==========================================
  Files           1        1              
  Lines         149      160      +11     
==========================================
+ Hits          136      145       +9     
- Misses         13       15       +2     
Flag Coverage Δ
Linux 90.62% <85.71%> (-0.66%) ⬇️
macOS 90.62% <85.71%> (-0.66%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
action/main.py 90.62% <85.71%> (-0.66%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ReenigneArcher ReenigneArcher force-pushed the fix/audit/workaround-failures branch from 6f8d671 to 8c9ac7f Compare April 30, 2025 01:09
@ReenigneArcher ReenigneArcher force-pushed the fix/audit/workaround-failures branch from 8c9ac7f to 330b856 Compare April 30, 2025 02:32
@ReenigneArcher ReenigneArcher force-pushed the fix/audit/workaround-failures branch from 330b856 to 6395c07 Compare April 30, 2025 02:38
@ReenigneArcher ReenigneArcher changed the title fix(audit): workaround failures in brew 4.5.0 feat(debug): add brew config and brew doctor output Apr 30, 2025
@ReenigneArcher ReenigneArcher marked this pull request as ready for review April 30, 2025 13:24
@ReenigneArcher ReenigneArcher requested a review from Copilot April 30, 2025 13:24
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds functionality to provide additional Homebrew debug output by running the "brew config" and "brew doctor" commands.

  • Added brew_debug() in action/main.py to run and print output from brew config and brew doctor.
  • Updated main() in action/main.py to check the debug output and raise an error if the commands fail.
  • Added test_brew_debug() in tests/unit/test_main.py to verify the new debug function.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
tests/unit/test_main.py Added unit test for brew_debug()
action/main.py Introduced brew_debug() and integrated it in main()

@sonarqubecloud
Copy link

sonarqubecloud bot commented May 2, 2025

@ReenigneArcher ReenigneArcher merged commit d428854 into master May 2, 2025
16 of 17 checks passed
@ReenigneArcher ReenigneArcher deleted the fix/audit/workaround-failures branch May 2, 2025 21:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants