-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
brew tests
infinite loop on svn_spec
#7781
Comments
@miccal Can you pin down exactly what line is causing this (either we some debugging output or |
@MikeMcQuaid the output of the commands I gave above were both passed with the Looking at Is there some other way I can provide more information beyond running the command |
Also, I can confirm that running
|
I could reproduce this before I did |
This is the same problem I encountered back in April and I came to the same conclusions as @miccal. When we discussed this internally, there was talk that it may be related to the You can reliably reproduce this in a fresh Catalina VM without the |
|
Yes, you can add a diff --git a/Library/Homebrew/test/utils/svn_spec.rb b/Library/Homebrew/test/utils/svn_spec.rb
index 04492e9fe..d82944ba8 100644
--- a/Library/Homebrew/test/utils/svn_spec.rb
+++ b/Library/Homebrew/test/utils/svn_spec.rb
@@ -8,7 +8,7 @@ describe Utils do
described_class.clear_svn_version_cache
end
- it "returns svn version if svn available" do
+ it "returns svn version if svn available", :focus do
if File.executable? "/usr/bin/svn"
expect(described_class).to be_svn_available
else Yeh, this is likely an issue with the SVN shim but we can definitely work around it. I don't have access to a fresh VM. |
@MikeMcQuaid I modified
and I am not sure about this |
@miccal now you have the focus and have it pinned down to a specific test: could you try to add |
@MikeMcQuaid I believe the line that is hanging is:
Adding |
@miccal Perfect, thanks! What does |
@MikeMcQuaid ah, interesting -- both commands hang and require a manual abort. So it seems that |
@miccal What does the |
@MikeMcQuaid
as does:
The Command output
|
Last one I think: output/behaviour of |
@MikeMcQuaid you have nailed it -- it seems
|
Also:
|
I see it in |
@miccal What's your output of |
@MikeMcQuaid as above:
|
It's a strange issue because I was in the same situation as @miccal in April (where A fresh install of Catalina with the Command Line Tools installed is identical to @miccal's output above. For whatever reason, I now have working subversion binaries in I did a fresh install of macOS 10.15 when it was released, so somewhere in the last few months my situation changed and I have no idea what led to the difference. |
Probably installing the CLT and/or a CLT update? |
I imagine it must have been a CLT update because I had the CLT installed back in April. I uninstalled the Command Line Tools and reinstalled them just now and I'm back in the same boat as @miccal again, for what it's worth. There definitely aren't any Subversion binaries in |
This issue first appeared (to my knowledge) in homebrew-cask-fonts and at that stage I did not have this issue, but I guess it may be because sometimes I have to force an update of the CLT's via:
|
|
@miccal So: it's failing but not blocking forever? That seems like progress! |
@MikeMcQuaid progress indeed :) Why not just require |
@miccal Can you try again? Now the shim is working as expected for you I'd fixed the test code accordingly.
That's what the shim does. If it doesn't fix the Cask issue: Cask should be updated to always use the Homebrew shim instead of Subversion directly. |
|
@miccal Hooray, fixed! Once I get it working in CI I'll merge. Thanks for all the help ❤️ |
@MikeMcQuaid don't thank me, you did all the work! Thank you :) |
@MikeMcQuaid may I trouble you with a (probably) dumb question -- what is the easiest way to test an open PR locally? |
@miccal Not dumb! |
@MikeMcQuaid nice, that is easy, thank you. |
Not that it matters much, but just to add that |
All fixed, thanks again @MikeMcQuaid. Command output-bash-5.0.17- /Users/miccal (29) [> brew tests Randomized with seed 54182 8 processes for 282 specs, ~ 35 specs per process .*.*.......*.............*................................................................................*****......................................................................................................................................................*...............................................................................................................................................................................................................................................................................................................................................................................................................*.**................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... |
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.
brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?brew config
andbrew 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 tosvn_spec.rb
(which is also a part ofutils_spec.rb
), and running eitherbrew tests --only=utils/svn
orbrew 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
viabrew
withbrew install svn
solves thisbrew tests
issue (see below).Command output
Command output
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
andbrew doctor
commandsThe text was updated successfully, but these errors were encountered: