Skip to content
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

Julia 0.6.1: libgit2 test failed #24453

Closed
ronisbr opened this issue Nov 2, 2017 · 10 comments
Closed

Julia 0.6.1: libgit2 test failed #24453

ronisbr opened this issue Nov 2, 2017 · 10 comments

Comments

@ronisbr
Copy link
Member

ronisbr commented Nov 2, 2017

Hi guys,

I am trying to build Julia 0.6.1 package to openSUSE and I got this error during runtest.jl:

Error in testset libgit2:
Test Failed
  Expression: err.msg == "Invalid Content-Type: text/plain"
    Evaluated: "invalid Content-Type: text/plain" == "Invalid Content-Type: text/plain"
ERROR: LoadError: Test run finished with errors
while loading /usr/share/julia/test/runtest.jl, in expression starting on line 29

I am using libgit2 0.26.0.

@StefanKarpinski
Copy link
Member

Looks like a case mismatch, maybe the test needs to normalize case?

@vtjnash
Copy link
Member

vtjnash commented Nov 2, 2017

dup #23115 (comment)

@ronisbr
Copy link
Member Author

ronisbr commented Nov 2, 2017

Hi @StefanKarpinski and @vtjnash ,

I was about to write this. It was already fixed in master. The problematic line was changed from:

@test err.msg == "Invalid Content-Type: text/plain"

to

@test lowercase(err.msg) == lowercase("invalid Content-Type: text/plain")

Can it be ported to v0.6 series?

Btw, the tests pass after correcting this line.

@ronisbr
Copy link
Member Author

ronisbr commented Nov 2, 2017

@vtjnash, do you suggest to bundle libgit2 with Julia for openSUSE package? I mean, even after this commit that fixes the problem.

@aytekinar
Copy link
Contributor

I have the same error when building v0.6.2 from source even though USE_SYSTEM_LIBGIT2=0 in Make.user.

@nalimilan
Copy link
Member

It doesn't really indicate a problem, so you can either remove the offending line or change it to the version above. It's fixed in git master.

@ronisbr
Copy link
Member Author

ronisbr commented Jun 3, 2018

We are already in v0.7-alpha. This bug is fixed in v0.7 AFAIK. Question: Do you want me to submit a PR fixing it in v0.6-branch or should we close this bug?

@nalimilan
Copy link
Member

I guess if you make a PR against the release-0.6 branch to use lowercase it will be accepted. There may well be a 0.6.4 release since regressions have been found in 0.6.3.

@ronisbr
Copy link
Member Author

ronisbr commented Jun 3, 2018

Ok! I will do as soon as I get in home. Thanks

ararslan pushed a commit that referenced this issue Jun 18, 2018
This fixes an error in tests when libgit2 version is equal or newer
v0.26.0.

Closes #24453

Ref #27406
@KristofferC
Copy link
Member

Fixed.

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

No branches or pull requests

6 participants