brew: `brew tests` infinite loop on svn_spec

Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.

  • ran brew update and can still reproduce the problem?
  • ran brew doctor, fixed all issues and can still reproduce the problem?
  • ran brew config and brew doctor and included their output with your issue?

What you were trying to do (and why)

Run brew tests.

What happened (include command output)

Running brew tests results in an infinite loop and does not end. I narrowed down the problem to svn_spec.rb (which is also a part of utils_spec.rb), and running either brew tests --only=utils/svn or brew tests --only=utils does not end, requiring a manual abort. The output of both commands with --verbose and --debug are shown below.

I believe this may be a Catalina-only problem, possibly related to this issue. I have verified that installing svn via brew with brew install svn solves this brew tests issue (see below).

Command output

-bash-5.0.17- /Users/miccal (31) [> brew tests --only=utils/svn --verbose --debug Randomized with seed 2803 bundle exec parallel_rspec --nice – -I /usr/local/Homebrew/Library/Homebrew/test --seed 2803 --color --require spec_helper --format NoSeedProgressFormatter --format ParallelTests::RSpec::RuntimeLogger --out /Users/miccal/Library/Caches/Homebrew/tests/parallel_runtime_rspec.log --tag ~needs_linux – test/utils/svn_spec.rb 1 processes for 1 specs, ~ 1 specs per process ^C

Took 300 seconds Tests Failed

Command output

-bash-5.0.17- /Users/miccal (31) [> brew tests --only=utils --verbose --debug Randomized with seed 27117 bundle exec parallel_rspec --nice – -I /usr/local/Homebrew/Library/Homebrew/test --seed 27117 --color --require spec_helper --format NoSeedProgressFormatter --format ParallelTests::RSpec::RuntimeLogger --out /Users/miccal/Library/Caches/Homebrew/tests/parallel_runtime_rspec.log --tag ~needs_linux – test/utils_spec.rb test/utils/tty_spec.rb test/utils/popen_spec.rb test/utils/curl_spec.rb test/utils/fork_spec.rb test/utils/bottles/bottles_spec.rb test/utils/bottles/collector_spec.rb test/utils/bottles/bintray_spec.rb test/utils/git_spec.rb test/utils/analytics_spec.rb test/utils/github_spec.rb test/utils/svn_spec.rb test/utils/shell_spec.rb test/utils/user_spec.rb 8 processes for 14 specs, ~ 1 specs per process ……*.

Pending: (Failures listed here are expected and do not affect your suite’s status)

  1. GitHub::get_artifact_url fails to find a nonexistant workflow

    Requires network connection.

    ./test/utils/github_spec.rb:46

  2. GitHub::get_artifact_url gets an artifact link

    Requires network connection.

    ./test/utils/github_spec.rb:58

  3. GitHub::get_artifact_url fails to find artifacts that don’t exist

    Requires network connection.

    ./test/utils/github_spec.rb:52

  4. GitHub::search_code queries GitHub code with the passed parameters

    Requires network connection.

    ./test/utils/github_spec.rb:7

  5. GitHub::search_issues queries GitHub issues with the passed parameters

    Requires network connection.

    ./test/utils/github_spec.rb:35

Finished in 0.1059 seconds (files took 4.62 seconds to load) 10 examples, 0 failures, 5 pending

… . Finished in 0.16434 seconds (files took 4.64 seconds to load) 10 examples, 0 failures

.

Finished in 0.16043 seconds (files took 4.65 seconds to load) 16 examples, 0 failures

*…

Finished in 0.21058 seconds (files took 4.62 seconds to load) 10 examples, 0 failures

…*…

Finished in 0.31558 seconds (files took 4.65 seconds to load) 28 examples, 0 failures

Pending: (Failures listed here are expected and do not affect your suite’s status)

  1. Utils::git_remote_exists? when git is available returns true when git remote exists

    Requires network connection.

    ./test/utils/git_spec.rb:133

Finished in 1.61 seconds (files took 4.61 seconds to load) 17 examples, 0 failures, 1 pending

Finished in 1.78 seconds (files took 4.58 seconds to load) 11 examples, 0 failures

^C

102 examples, 0 failures, 6 pendings

Took 300 seconds (1:43) Tests Failed

What you expected to happen

brew tests to finish.

Step-by-step reproduction instructions (by running brew commands)

brew tests --only=utils/svn

Output of brew config and brew doctor commands

-bash-5.0.17- /Users/miccal (31) [> brew config
HOMEBREW_VERSION: 2.4.0-93-g634c457
ORIGIN: https://github.com/Homebrew/brew
HEAD: 634c4571299b5165110eac083dd5c2ae3f84331c
Last commit: 16 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 4bce00ad7b5a2f4ec589ae55cbeec5c72b58bfd5
Core tap last commit: 49 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_DEVELOPER: set
HOMEBREW_EDITOR: /usr/bin/open -e -W
HOMEBREW_FORCE_BREWED_CURL: set
HOMEBREW_FORCE_BREWED_GIT: set
HOMEBREW_FORCE_VENDOR_RUBY: set
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_NO_ANALYTICS: set
CPU: octa-core 64-bit icelake
Homebrew Ruby: 2.6.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/bin/ruby
Clang: 11.0 build 1103
Git: 2.27.0 => /usr/local/opt/git/bin/git
Curl: 7.70.0 => /usr/local/opt/curl/bin/curl
macOS: 10.15.5-x86_64
CLT: 1103.0.32.62
Xcode: N/A
XQuartz: 2.7.11 => /opt/X11
-bash-5.0.17- /Users/miccal (31) [> brew doctor
Your system is ready to brew.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 37 (37 by maintainers)

Commits related to this issue

Most upvoted comments

Also, I can confirm that running brew install svn fixes the problem:

-bash-5.0.17- /Users/miccal (30) [> which svn
/usr/local/bin/svn
-bash-5.0.17- /Users/miccal (30) [> brew tests --only=utils/svn --verbose --debug
Randomized with seed 29859
bundle exec parallel_rspec --nice -- -I /usr/local/Homebrew/Library/Homebrew/test --seed 29859 --color --require spec_helper --format NoSeedProgressFormatter --format ParallelTests::RSpec::RuntimeLogger --out /Users/miccal/Library/Caches/Homebrew/tests/parallel_runtime_rspec.log --tag ~needs_linux -- test/utils/svn_spec.rb
1 processes for 1 specs, ~ 1 specs per process
..*.

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) Utils#self.svn_remote_exists? when svn is available returns true when remote exists
     # Requires network connection.
     # ./test/utils/svn_spec.rb:35


Finished in 0.10646 seconds (files took 1.53 seconds to load)
4 examples, 0 failures, 1 pending


4 examples, 0 failures, 1 pending

Took 1 seconds
-bash-5.0.17- /Users/miccal (30) [> brew remove svn
Uninstalling /usr/local/Cellar/subversion/1.14.0_1... (234 files, 30.6MB)
-bash-5.0.17- /Users/miccal (30) [> which svn
/usr/bin/svn
-bash-5.0.17- /Users/miccal (30) [> brew tests --only=utils/svn --verbose --debug
Randomized with seed 37738
bundle exec parallel_rspec --nice -- -I /usr/local/Homebrew/Library/Homebrew/test --seed 37738 --color --require spec_helper --format NoSeedProgressFormatter --format ParallelTests::RSpec::RuntimeLogger --out /Users/miccal/Library/Caches/Homebrew/tests/parallel_runtime_rspec.log --tag ~needs_linux -- test/utils/svn_spec.rb
1 processes for 1 specs, ~ 1 specs per process
^C



Took 300 seconds
Tests Failed