Skip to content

Conversation

@ReenigneArcher
Copy link
Member

Description

Enable repo cleanup in homebrew test fixtures.

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

@sonarqubecloud
Copy link

@codecov
Copy link

codecov bot commented Oct 18, 2025

❌ 9 Tests Failed:

Tests completed Failed Passed Skipped
190 9 181 0
View the top 3 failed test(s) by shortest run time
tests/release_homebrew/test_release_homebrew.py::test_main_error_cases[audit_fails-mocks3-expected_failures3]
Stack Traces | 0.989s run time
Traceback (most recent call last):
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12........./site-packages/_pytest/runner.py", line 344, in from_call
    result: TResult | None = func()
                             ^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12........./site-packages/_pytest/runner.py", line 246, in <lambda>
    lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_hooks.py", line 512, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 167, in _multicall
    raise exception
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/logging.py", line 850, in pytest_runtest_call
    yield
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
    return result.get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/pluggy/_result.py", line 103, in get_result
    raise exc.with_traceback(tb)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
    res = yield
          ^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/capture.py", line 900, in pytest_runtest_call
    return (yield)
            ^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call
    return (yield)
            ^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 121, in _multicall
    res = hook_impl.function(*args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12........./site-packages/_pytest/runner.py", line 178, in pytest_runtest_call
    item.runtest()
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/_pytest/python.py", line 1671, in runtest
    self.ihook.pytest_pyfunc_call(pyfuncitem=self)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_hooks.py", line 512, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 167, in _multicall
    raise exception
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 121, in _multicall
    res = hook_impl.function(*args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call
    result = testfunction(**testargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../tests/release_homebrew/test_release_homebrew.py", line 349, in test_main_error_cases
    main.main()
  File ".../actions/release_homebrew/main.py", line 489, in main
    if not install_formula(formula):
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../actions/release_homebrew/main.py", line 428, in install_formula
    HOMEBREW_BUILDPATH = find_tmp_dir(formula)
                         ^^^^^^^^^^^^^^^^^^^^^
  File ".../actions/release_homebrew/main.py", line 401, in find_tmp_dir
    raise FileNotFoundError(f'::error:: Could not find temp directory {tmp_dir}')
FileNotFoundError: ::error:: Could not find temp directory
tests/release_homebrew/test_release_homebrew.py::test_process_input_formula_copy_failure
Stack Traces | 1s run time
Traceback (most recent call last):
  File ".../tests/release_homebrew/test_release_homebrew.py", line 409, in test_process_input_formula_copy_failure
    main.process_input_formula(formula_file=str(test_formula))
  File ".../actions/release_homebrew/main.py", line 275, in process_input_formula
    prepare_homebrew_core_fork(branch_suffix=formula, path=homebrew_core_fork_repo)
  File ".../actions/release_homebrew/main.py", line 174, in prepare_homebrew_core_fork
    result = _run_subprocess(
             ^^^^^^^^^^^^^^^^
  File ".../actions/release_homebrew/main.py", line 118, in _run_subprocess
    process = _setup_process(args_list=args_list, cwd=cwd, env=env)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../actions/release_homebrew/main.py", line 95, in _setup_process
    os.chdir(cwd)  # hack for unit testing on windows
    ^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '.../workspace/release_homebrew_action/homebrew_core_fork_repo'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12........./site-packages/_pytest/runner.py", line 344, in from_call
    result: TResult | None = func()
                             ^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12........./site-packages/_pytest/runner.py", line 246, in <lambda>
    lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_hooks.py", line 512, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 167, in _multicall
    raise exception
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/logging.py", line 850, in pytest_runtest_call
    yield
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
    return result.get_result()
           ^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/pluggy/_result.py", line 103, in get_result
    raise exc.with_traceback(tb)
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
    res = yield
          ^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/capture.py", line 900, in pytest_runtest_call
    return (yield)
            ^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call
    return (yield)
            ^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 121, in _multicall
    res = hook_impl.function(*args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12........./site-packages/_pytest/runner.py", line 178, in pytest_runtest_call
    item.runtest()
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/_pytest/python.py", line 1671, in runtest
    self.ihook.pytest_pyfunc_call(pyfuncitem=self)
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_hooks.py", line 512, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 167, in _multicall
    raise exception
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 121, in _multicall
    res = hook_impl.function(*args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call
    result = testfunction(**testargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/unittest/mock.py", line 1396, in patched
    return func(*newargs, **newkeywargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../tests/release_homebrew/test_release_homebrew.py", line 408, in test_process_input_formula_copy_failure
    with pytest.raises(FileNotFoundError, match="was not copied"):
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/raises.py", line 721, in __exit__
    raise AssertionError(self._fail_reason)
AssertionError: Regex pattern did not match.
 Regex: 'was not copied'
 Input: "[Errno 2] No such file or directory: '.../workspace/release_homebrew_action/homebrew_core_fork_repo'"
tests/release_homebrew/test_release_homebrew.py::test_main_error_cases[install_fails-mocks4-expected_failures4]
Stack Traces | 1.11s run time
Traceback (most recent call last):
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12........./site-packages/_pytest/runner.py", line 344, in from_call
    result: TResult | None = func()
                             ^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12........./site-packages/_pytest/runner.py", line 246, in <lambda>
    lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_hooks.py", line 512, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 167, in _multicall
    raise exception
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/logging.py", line 850, in pytest_runtest_call
    yield
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
    return result.get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/pluggy/_result.py", line 103, in get_result
    raise exc.with_traceback(tb)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
    res = yield
          ^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/capture.py", line 900, in pytest_runtest_call
    return (yield)
            ^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call
    return (yield)
            ^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 121, in _multicall
    res = hook_impl.function(*args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12........./site-packages/_pytest/runner.py", line 178, in pytest_runtest_call
    item.runtest()
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/_pytest/python.py", line 1671, in runtest
    self.ihook.pytest_pyfunc_call(pyfuncitem=self)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_hooks.py", line 512, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 167, in _multicall
    raise exception
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 121, in _multicall
    res = hook_impl.function(*args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call
    result = testfunction(**testargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../tests/release_homebrew/test_release_homebrew.py", line 349, in test_main_error_cases
    main.main()
  File ".../actions/release_homebrew/main.py", line 493, in main
    if not test_formula(formula):
           ^^^^^^^^^^^^^^^^^^^^^
  File ".../actions/release_homebrew/main.py", line 460, in test_formula
    output_value=find_tmp_dir(formula)
                 ^^^^^^^^^^^^^^^^^^^^^
  File ".../actions/release_homebrew/main.py", line 401, in find_tmp_dir
    raise FileNotFoundError(f'::error:: Could not find temp directory {tmp_dir}')
FileNotFoundError: ::error:: Could not find temp directory
tests/release_homebrew/test_release_homebrew.py::test_main[false]
Stack Traces | 1.38s run time
Traceback (most recent call last):
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............/site-packages/_pytest/runner.py", line 344, in from_call
    result: TResult | None = func()
                             ^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............/site-packages/_pytest/runner.py", line 246, in <lambda>
    lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_hooks.py", line 512, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12...................../site-packages/pluggy/_callers.py", line 167, in _multicall
    raise exception
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12...................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/logging.py", line 843, in pytest_runtest_setup
    yield
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12...................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/capture.py", line 895, in pytest_runtest_setup
    return (yield)
            ^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12...................../site-packages/pluggy/_callers.py", line 121, in _multicall
    res = hook_impl.function(*args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............/site-packages/_pytest/runner.py", line 164, in pytest_runtest_setup
    item.session._setupstate.setup(item)
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............/site-packages/_pytest/runner.py", line 514, in setup
    col.setup()
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/python.py", line 1674, in setup
    self._request._fillfixtures()
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12................../site-packages/_pytest/fixtures.py", line 720, in _fillfixtures
    item.funcargs[argname] = self.getfixturevalue(argname)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12................../site-packages/_pytest/fixtures.py", line 549, in getfixturevalue
    fixturedef = self._get_active_fixturedef(argname)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12................../site-packages/_pytest/fixtures.py", line 640, in _get_active_fixturedef
    fixturedef.execute(request=subrequest)
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12................../site-packages/_pytest/fixtures.py", line 1128, in execute
    result = ihook.pytest_fixture_setup(fixturedef=self, request=request)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_hooks.py", line 512, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12...................../site-packages/pluggy/_callers.py", line 167, in _multicall
    raise exception
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12...................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/setuponly.py", line 36, in pytest_fixture_setup
    return (yield)
            ^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12...................../site-packages/pluggy/_callers.py", line 121, in _multicall
    res = hook_impl.function(*args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12................../site-packages/_pytest/fixtures.py", line 1196, in pytest_fixture_setup
    result = call_fixture_func(fixturefunc, request, kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12................../site-packages/_pytest/fixtures.py", line 930, in call_fixture_func
    fixture_result = fixturefunc(**kwargs)
                     ^^^^^^^^^^^^^^^^^^^^^
  File ".../tests/release_homebrew/conftest.py", line 107, in brew_untap
    raise RuntimeError('Failed to uninstall hello_world formula')
RuntimeError: Failed to uninstall hello_world formula
tests/release_homebrew/test_release_homebrew.py::test_brew_install_formula
Stack Traces | 1.59s run time
Traceback (most recent call last):
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12........./site-packages/_pytest/runner.py", line 344, in from_call
    result: TResult | None = func()
                             ^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12........./site-packages/_pytest/runner.py", line 246, in <lambda>
    lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_hooks.py", line 512, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 167, in _multicall
    raise exception
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/logging.py", line 850, in pytest_runtest_call
    yield
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
    return result.get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/pluggy/_result.py", line 103, in get_result
    raise exc.with_traceback(tb)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
    res = yield
          ^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/capture.py", line 900, in pytest_runtest_call
    return (yield)
            ^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call
    return (yield)
            ^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 121, in _multicall
    res = hook_impl.function(*args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12........./site-packages/_pytest/runner.py", line 178, in pytest_runtest_call
    item.runtest()
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/_pytest/python.py", line 1671, in runtest
    self.ihook.pytest_pyfunc_call(pyfuncitem=self)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_hooks.py", line 512, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 167, in _multicall
    raise exception
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 121, in _multicall
    res = hook_impl.function(*args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call
    result = testfunction(**testargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../tests/release_homebrew/test_release_homebrew.py", line 224, in test_brew_install_formula
    assert main.install_formula(formula='hello_world')
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../actions/release_homebrew/main.py", line 428, in install_formula
    HOMEBREW_BUILDPATH = find_tmp_dir(formula)
                         ^^^^^^^^^^^^^^^^^^^^^
  File ".../actions/release_homebrew/main.py", line 401, in find_tmp_dir
    raise FileNotFoundError(f'::error:: Could not find temp directory {tmp_dir}')
FileNotFoundError: ::error:: Could not find temp directory
tests/release_homebrew/test_release_homebrew.py::test_main[true]
Stack Traces | 1.96s run time
Traceback (most recent call last):
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............/site-packages/_pytest/runner.py", line 344, in from_call
    result: TResult | None = func()
                             ^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............/site-packages/_pytest/runner.py", line 246, in <lambda>
    lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_hooks.py", line 512, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12...................../site-packages/pluggy/_callers.py", line 167, in _multicall
    raise exception
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12...................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/logging.py", line 843, in pytest_runtest_setup
    yield
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12...................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/capture.py", line 895, in pytest_runtest_setup
    return (yield)
            ^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12...................../site-packages/pluggy/_callers.py", line 121, in _multicall
    res = hook_impl.function(*args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............/site-packages/_pytest/runner.py", line 164, in pytest_runtest_setup
    item.session._setupstate.setup(item)
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............/site-packages/_pytest/runner.py", line 514, in setup
    col.setup()
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/python.py", line 1674, in setup
    self._request._fillfixtures()
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12................../site-packages/_pytest/fixtures.py", line 720, in _fillfixtures
    item.funcargs[argname] = self.getfixturevalue(argname)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12................../site-packages/_pytest/fixtures.py", line 549, in getfixturevalue
    fixturedef = self._get_active_fixturedef(argname)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12................../site-packages/_pytest/fixtures.py", line 640, in _get_active_fixturedef
    fixturedef.execute(request=subrequest)
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12................../site-packages/_pytest/fixtures.py", line 1128, in execute
    result = ihook.pytest_fixture_setup(fixturedef=self, request=request)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_hooks.py", line 512, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12...................../site-packages/pluggy/_callers.py", line 167, in _multicall
    raise exception
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12...................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/setuponly.py", line 36, in pytest_fixture_setup
    return (yield)
            ^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12...................../site-packages/pluggy/_callers.py", line 121, in _multicall
    res = hook_impl.function(*args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12................../site-packages/_pytest/fixtures.py", line 1196, in pytest_fixture_setup
    result = call_fixture_func(fixturefunc, request, kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".........................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12................../site-packages/_pytest/fixtures.py", line 930, in call_fixture_func
    fixture_result = fixturefunc(**kwargs)
                     ^^^^^^^^^^^^^^^^^^^^^
  File ".../tests/release_homebrew/conftest.py", line 107, in brew_untap
    raise RuntimeError('Failed to uninstall hello_world formula')
RuntimeError: Failed to uninstall hello_world formula
tests/release_homebrew/test_release_homebrew.py::test_test_formula
Stack Traces | 2.15s run time
Traceback (most recent call last):
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12........./site-packages/_pytest/runner.py", line 344, in from_call
    result: TResult | None = func()
                             ^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12........./site-packages/_pytest/runner.py", line 246, in <lambda>
    lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_hooks.py", line 512, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 167, in _multicall
    raise exception
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/logging.py", line 850, in pytest_runtest_call
    yield
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
    return result.get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/pluggy/_result.py", line 103, in get_result
    raise exc.with_traceback(tb)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
    res = yield
          ^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/capture.py", line 900, in pytest_runtest_call
    return (yield)
            ^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call
    return (yield)
            ^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 121, in _multicall
    res = hook_impl.function(*args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12........./site-packages/_pytest/runner.py", line 178, in pytest_runtest_call
    item.runtest()
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/_pytest/python.py", line 1671, in runtest
    self.ihook.pytest_pyfunc_call(pyfuncitem=self)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_hooks.py", line 512, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 167, in _multicall
    raise exception
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 121, in _multicall
    res = hook_impl.function(*args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call
    result = testfunction(**testargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../tests/release_homebrew/test_release_homebrew.py", line 228, in test_test_formula
    assert main.test_formula(formula='hello_world')
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../actions/release_homebrew/main.py", line 460, in test_formula
    output_value=find_tmp_dir(formula)
                 ^^^^^^^^^^^^^^^^^^^^^
  File ".../actions/release_homebrew/main.py", line 401, in find_tmp_dir
    raise FileNotFoundError(f'::error:: Could not find temp directory {tmp_dir}')
FileNotFoundError: ::error:: Could not find temp directory
tests/release_homebrew/test_release_homebrew.py::test_process_input_formula
Stack Traces | 2.47s run time
Traceback (most recent call last):
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12........./site-packages/_pytest/runner.py", line 344, in from_call
    result: TResult | None = func()
                             ^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12........./site-packages/_pytest/runner.py", line 246, in <lambda>
    lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_hooks.py", line 512, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 167, in _multicall
    raise exception
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/logging.py", line 850, in pytest_runtest_call
    yield
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
    return result.get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/pluggy/_result.py", line 103, in get_result
    raise exc.with_traceback(tb)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
    res = yield
          ^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/capture.py", line 900, in pytest_runtest_call
    return (yield)
            ^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call
    return (yield)
            ^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 121, in _multicall
    res = hook_impl.function(*args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12........./site-packages/_pytest/runner.py", line 178, in pytest_runtest_call
    item.runtest()
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/_pytest/python.py", line 1671, in runtest
    self.ihook.pytest_pyfunc_call(pyfuncitem=self)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_hooks.py", line 512, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 167, in _multicall
    raise exception
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 121, in _multicall
    res = hook_impl.function(*args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call
    result = testfunction(**testargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../tests/release_homebrew/test_release_homebrew.py", line 98, in test_process_input_formula
    formula = main.process_input_formula(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../actions/release_homebrew/main.py", line 275, in process_input_formula
    prepare_homebrew_core_fork(branch_suffix=formula, path=homebrew_core_fork_repo)
  File ".../actions/release_homebrew/main.py", line 174, in prepare_homebrew_core_fork
    result = _run_subprocess(
             ^^^^^^^^^^^^^^^^
  File ".../actions/release_homebrew/main.py", line 118, in _run_subprocess
    process = _setup_process(args_list=args_list, cwd=cwd, env=env)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../actions/release_homebrew/main.py", line 95, in _setup_process
    os.chdir(cwd)  # hack for unit testing on windows
    ^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '.../workspace/release_homebrew_action/homebrew_core_fork_repo'
tests/release_homebrew/test_release_homebrew.py::test_audit_formula
Stack Traces | 13.7s run time
Traceback (most recent call last):
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12........./site-packages/_pytest/runner.py", line 344, in from_call
    result: TResult | None = func()
                             ^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12........./site-packages/_pytest/runner.py", line 246, in <lambda>
    lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_hooks.py", line 512, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 167, in _multicall
    raise exception
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/logging.py", line 850, in pytest_runtest_call
    yield
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
    return result.get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/pluggy/_result.py", line 103, in get_result
    raise exc.with_traceback(tb)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
    res = yield
          ^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/capture.py", line 900, in pytest_runtest_call
    return (yield)
            ^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 139, in _multicall
    teardown.throw(exception)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12.../site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call
    return (yield)
            ^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 121, in _multicall
    res = hook_impl.function(*args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12........./site-packages/_pytest/runner.py", line 178, in pytest_runtest_call
    item.runtest()
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/_pytest/python.py", line 1671, in runtest
    self.ihook.pytest_pyfunc_call(pyfuncitem=self)
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_hooks.py", line 512, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 167, in _multicall
    raise exception
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12............................../site-packages/pluggy/_callers.py", line 121, in _multicall
    res = hook_impl.function(*args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...................................................................../Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12....../site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call
    result = testfunction(**testargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../tests/release_homebrew/test_release_homebrew.py", line 220, in test_audit_formula
    assert main.audit_formula(formula='hello_world')
AssertionError: assert False
 +  where False = <function audit_formula at 0x103786d40>(formula='hello_world')
 +    where <function audit_formula at 0x103786d40> = main.audit_formula

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@ReenigneArcher ReenigneArcher assigned Copilot and unassigned Copilot Oct 19, 2025
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