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

Remove .jl extension #100

Merged
merged 3 commits into from
Mar 1, 2017
Merged

Remove .jl extension #100

merged 3 commits into from
Mar 1, 2017

Conversation

fredrikekre
Copy link
Member

@fredrikekre fredrikekre commented Feb 19, 2017

@tkelman
Copy link
Contributor

tkelman commented Feb 20, 2017

would prefer to maintain 0.5 support here

@yuyichao
Copy link
Contributor

Seems like a trivial function to just include here instead of using a internal function in Base.

@fredrikekre
Copy link
Member Author

Yea, that's a good idea.

@@ -174,10 +178,10 @@ end"""
Pkg.add("Example")
io = IOBuffer()
f = PkgDev.freeable(io)
@test !(any(f .== "Example") || contains(takebuf_string(io), "Example"))
@test !(any(f .== "Example") || contains(String(take!(io)), "Example"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this'll need Compat min version to be raised to 0.9.5

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

test/runtests.jl Outdated
@testset "generating a package with .jl extension" begin
PkgDev.generate("PackageWithExtension.jl", "MIT", config=Dict("user.name"=>"Julia Test", "user.email"=>"test@julialang.org"))
@show keys(Pkg.installed())
@test in("PackageWithExtension", [keys(Pkg.installed())...])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't need to collect the key iterator into an array; @test "PackageWithExtension" in keys(Pkg.installed()) should be fine.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied from the test above, but I realize now that the other test collects to make sure thats the only installed package. Will update!

@fredrikekre
Copy link
Member Author

Travis nightlies:

testing freeable: Error During Test
  Got an exception of type MethodError outside of a @test
  MethodError: no method matching get(::Nullable{Base.Pkg.Types.Available})
  You may have intended to import Base.get
  Closest candidates are:
    get{T<:AbstractString}(::Type{T<:AbstractString}, ::Base.LibGit2.GitConfig, ::AbstractString) at libgit2/config.jl:55
    get(::Type{Bool}, ::Base.LibGit2.GitConfig, ::AbstractString) at libgit2/config.jl:65
    get(::Type{Int32}, ::Base.LibGit2.GitConfig, ::AbstractString) at libgit2/config.jl:72
    ...
  Stacktrace:
   [1] (::PkgDev.Entry.##53#56{Base.AbstractIOBuffer{Array{UInt8,1}},PkgDev.Entry.#latest_tag#54,Array{Any,1}})(::Base.LibGit2.GitRepo) at /home/travis/.julia/v0.6/PkgDev/src/entry.jl:322
   [2] with(::PkgDev.Entry.##53#56{Base.AbstractIOBuffer{Array{UInt8,1}},PkgDev.Entry.#latest_tag#54,Array{Any,1}}, ::Base.LibGit2.GitRepo) at ./libgit2/types.jl:576
   [3] (::PkgDev.Entry.##52#55{Base.AbstractIOBuffer{Array{UInt8,1}},PkgDev.Entry.#latest_tag#54,Array{Any,1}})() at /home/travis/.julia/v0.6/PkgDev/src/entry.jl:318
   [4] cd(::PkgDev.Entry.##52#55{Base.AbstractIOBuffer{Array{UInt8,1}},PkgDev.Entry.#latest_tag#54,Array{Any,1}}, ::String) at ./file.jl:69
   [5] freeable(::Base.AbstractIOBuffer{Array{UInt8,1}}) at /home/travis/.julia/v0.6/PkgDev/src/entry.jl:314
   [6] (::Base.Pkg.Dir.##2#3{Array{Any,1},PkgDev.Entry.#freeable,Tuple{Base.AbstractIOBuffer{Array{UInt8,1}}}})() at ./pkg/dir.jl:31
   [7] cd(::Base.Pkg.Dir.##2#3{Array{Any,1},PkgDev.Entry.#freeable,Tuple{Base.AbstractIOBuffer{Array{UInt8,1}}}}, ::String) at ./file.jl:69
   [8] #cd#1(::Array{Any,1}, ::Function, ::Function, ::Base.AbstractIOBuffer{Array{UInt8,1}}, ::Vararg{Base.AbstractIOBuffer{Array{UInt8,1}},N} where N) at ./pkg/dir.jl:31
   [9] macro expansion at /home/travis/.julia/v0.6/PkgDev/test/runtests.jl:180 [inlined]
   [10] macro expansion at ./test.jl:852 [inlined]
   [11] (::##1#11)(::String) at /home/travis/.julia/v0.6/PkgDev/test/runtests.jl:177
   [12] temp_pkg_dir(::##1#11, ::Bool) at /home/travis/.julia/v0.6/PkgDev/test/runtests.jl:15
   [13] temp_pkg_dir(::Function) at /home/travis/.julia/v0.6/PkgDev/test/runtests.jl:8
   [14] include_from_node1(::String) at ./loading.jl:539
   [15] include(::String) at ./sysimg.jl:14
   [16] process_options(::Base.JLOptions) at ./client.jl:300
   [17] _start() at ./client.jl:366
Test Summary:    | Error  Total
testing freeable |     1      1
ERROR: LoadError: Some tests did not pass: 0 passed, 0 failed, 1 errored, 0 broken.
while loading /home/travis/.julia/v0.6/PkgDev/test/runtests.jl, in expression starting on line 21

AV timed out.

Copy link
Member

@ararslan ararslan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. I'm inclined to say that the nightly failures are unrelated.

@fredrikekre
Copy link
Member Author

Could just restart, doesn't take long.

@ararslan
Copy link
Member

I can't restart AppVeyor since that runs on Art's personal account, so I'll close and reopen to retrigger all CI.

@ararslan ararslan closed this Feb 27, 2017
@ararslan ararslan reopened this Feb 27, 2017
@ararslan
Copy link
Member

Looks like this is passing on nightly (at least as of this writing it's passed on Linux nightly), so unless there are any objections I'll merge once CI is green.

@tkelman
Copy link
Contributor

tkelman commented Feb 27, 2017

appveyor isn't running on release, should be sure that's the case

@ararslan
Copy link
Member

Should be sure what's the case?

Also it seems 32-bit AppVeyor is likely to time out; it's doing the coverage freakout thing that it seems to do on occasion.

@tkelman
Copy link
Contributor

tkelman commented Feb 27, 2017

that appveyor is running against release julia

@ararslan
Copy link
Member

AV is only set up to run on nightly: https://github.com/JuliaLang/PkgDev.jl/blob/master/appveyor.yml

So we should add 0.5 to the AV yaml then restart this?

@fredrikekre
Copy link
Member Author

This?

diff --git a/appveyor.yml b/appveyor.yml
index 324b423..d09642a 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,10 +1,13 @@
 environment:
   matrix:
+  - JULIAVERSION: "julialang/bin/winnt/x86/0.5/julia-0.5-latest-win32.exe"
+  - JULIAVERSION: "julialang/bin/winnt/x64/0.5/julia-0.5-latest-win64.exe"
   - JULIAVERSION: "julianightlies/bin/winnt/x86/julia-latest-win32.exe"
   - JULIAVERSION: "julianightlies/bin/winnt/x64/julia-latest-win64.exe"
 
 branches:
   only:
+    - /release-.*/
     - master
 
 notifications:

@yuyichao
Copy link
Contributor

#102. No need to add the branch

@fredrikekre
Copy link
Member Author

Ah, nice.

@ararslan
Copy link
Member

Julia 0.5 has been added to the AppVeyor setup, so I'll retrigger all CI again.

@ararslan ararslan closed this Feb 28, 2017
@ararslan ararslan reopened this Feb 28, 2017
@fredrikekre
Copy link
Member Author

Let's re trigger now that AWS S3 are up.

@fredrikekre fredrikekre closed this Mar 1, 2017
@fredrikekre fredrikekre reopened this Mar 1, 2017
@ararslan
Copy link
Member

ararslan commented Mar 1, 2017

Nightly AppVeyor failure is #103.

@tkelman tkelman merged commit 0f8f2b4 into JuliaLang:master Mar 1, 2017
@fredrikekre fredrikekre deleted the fe/strip-jl branch March 1, 2017 21:11
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.

None yet

4 participants