Skip to content

fix(release_homebrew): reduce test duplication - #238

Merged
ReenigneArcher merged 5 commits into
masterfrom
fix/release_homebrew/reduce-test-duplication
Jun 25, 2026
Merged

fix(release_homebrew): reduce test duplication#238
ReenigneArcher merged 5 commits into
masterfrom
fix/release_homebrew/reduce-test-duplication

Conversation

@ReenigneArcher

Copy link
Copy Markdown
Member

Description

Try to reduce release_homebrew actions duplicated builds.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Unit tests have been added or updated for any new or modified functionality

AI Usage

  • None: No AI tools were used in creating this PR
  • Light: AI provided minor assistance (formatting, simple suggestions)
  • Moderate: AI helped with code generation or debugging specific parts
  • Heavy: AI generated most or all of the code changes
@codecov

codecov Bot commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (e77d4c0) to head (9ed0311).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #238   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            9         9           
  Lines         1608      1608           
  Branches       175       175           
=========================================
  Hits          1608      1608           
Flag Coverage Δ
Linux 100.00% <100.00%> (ø)
Windows 87.81% <100.00%> (+2.05%) ⬆️
macOS 100.00% <100.00%> (ø)

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

Files with missing lines Coverage Δ
actions/release_homebrew/main.py 100.00% <100.00%> (ø)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e77d4c0...9ed0311. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
Rename the test-artifacts env var to HOMEBREW_TEST_ARTIFACTS_DIR and update docs/action metadata. Add get_homebrew_test_artifacts_dir(), cleaning logic for Homebrew logs under logs/release_homebrew, and copy_test_artifacts() to copy artifacts from the Homebrew-side logs into the action-owned testpath. brew_test_bot_only_formulae now exposes the Homebrew artifacts path to test-bot and, when given a testpath, copies any produced artifacts back to the action output. Tests and README/action.yml were updated to cover the new helper, cleanup behavior, env var and copying behavior.
Add HOMEBREW_LOGS support and make test artifact directories per-formula under a Homebrew logs root.

- Expose HOMEBREW_LOGS env var and add HOMEBREW_TEST_ARTIFACTS_DIR usage to README.
- Add get_homebrew_logs_dir() to return GITHUB_WORKSPACE/release_homebrew_action/homebrew_logs.
- Change get_homebrew_test_artifacts_dir() and prepare_test_artifacts_dir() to accept a formula name and locate artifacts under the per-formula logs directory so macOS bottle builds can write from the sandbox.
- Ensure required directories are created and set HOMEBREW_LOGS in brew_test_bot environment when running test-bot.
- Update tests to cover the new logs root and per-formula artifact paths.
Replace the previous HOMEBREW_LOGS-based layout with HOMEBREW_TEMP rooted at the OS temp directory. Rename get_homebrew_logs_dir to get_homebrew_temp_dir, update paths to use tempfile.gettempdir(), and set HOMEBREW_TEMP in the test-bot environment. Update README to document HOMEBREW_TEMP and adjust tests to match the new env var and function names. Also import tempfile where needed.
@ReenigneArcher
ReenigneArcher marked this pull request as ready for review June 25, 2026 01:49
@ReenigneArcher
ReenigneArcher merged commit a468509 into master Jun 25, 2026
82 checks passed
@ReenigneArcher
ReenigneArcher deleted the fix/release_homebrew/reduce-test-duplication branch June 25, 2026 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant