-
Notifications
You must be signed in to change notification settings - Fork 28
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
updates for julia 0.7 #68
Conversation
Hello. Is there any update in making PkgBenchmark work for Julia 0.7? It would be a great help for package developers that want to move over. |
I still get this error with this PR, maybe it needs to be upgraded using the new Pkg APIs. ┌ Warning: Pkg.dir is only kept for legacy CI script reasons
└ @ Pkg.API API.jl:405
ERROR: UndefVarError: Reqs not defined
Stacktrace:
[1] getproperty at ./sysimg.jl:13 [inlined]
[2] _with_reqs(::getfield(PkgBenchmark, Symbol("##21#25")){Bool,String}, ::String, ::Function) at /Users/gnimuc/.julia/dev/PkgBenchmark/src/util.jl:5
[3] (::getfield(PkgBenchmark, Symbol("#do_benchmark#24")){Bool,String,String})() at /Users/gnimuc/.julia/dev/PkgBenchmark/src/runbenchmark.jl:83
[4] (::getfield(PkgBenchmark, Symbol("##52#53")){getfield(PkgBenchmark, Symbol("#do_benchmark#24")){Bool,String,String},String,String})(::LibGit2.GitRepo) at /Users/gnimuc/.julia/dev/PkgBenchmark/src/util.jl:38
[5] transact(::getfield(PkgBenchmark, Symbol("##52#53")){getfield(PkgBenchmark, Symbol("#do_benchmark#24")){Bool,String,String},String,String}, ::LibGit2.GitRepo) at /Users/gnimuc/Codes/julia/usr/share/julia/stdlib/v0.7/LibGit2/src/LibGit2.jl:951
[6] _withcommit(::getfield(PkgBenchmark, Symbol("#do_benchmark#24")){Bool,String,String}, ::LibGit2.GitRepo, ::String) at /Users/gnimuc/.julia/dev/PkgBenchmark/src/util.jl:34
[7] #benchmarkpkg#20(::Nothing, ::Nothing, ::Bool, ::String, ::Function, ::String, ::String) at /Users/gnimuc/.julia/dev/PkgBenchmark/src/runbenchmark.jl:105
[8] benchmarkpkg(::String, ::String) at /Users/gnimuc/.julia/dev/PkgBenchmark/src/runbenchmark.jl:42
[9] top-level scope at none:0 julia> versioninfo()
Julia Version 0.7.0-alpha.59
Commit 2a45839ef9 (2018-06-09 17:04 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin17.6.0)
CPU: Intel(R) Core(TM) i5-6267U CPU @ 2.90GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.0 (ORCJIT, skylake) |
Indeed, the Pkg system is now completely different and there isn't right now really a straight up replacement. Easiest would be to remove the |
Things have changed quite a bit, and there is no depwarning for |
Hm, are you sure. There should be, heh. |
Oh damn you are right...
because stuff like edit: I was just too greedy and wanted PkgBenchmarks :D |
With the addition of |
src/runbenchmark.jl
Outdated
@@ -150,8 +150,8 @@ end | |||
function _runbenchmark_local(file, output, tunefile, retune) | |||
# Loading | |||
include(file) | |||
suite = if isdefined(Main, :SUITE) | |||
Main.SUITE | |||
suite = if @isdefined SUITE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it better to use Baes.include(Main, file)
and stick with isdefined(Main, :SUITE)
as before? include(file)
pulls user's code into PkgBenchmark
namespace, right? The worst case scenario would be that users monkey-patch PkgBenchmark
without knowing it.
I'm currently getting:
It seems that
|
I updated this PR a bunch and it seems to work ok. Had to get rid of the custom benchmark dependencies but hopefully, we can get those back as the package manager matures. Still need to rewrite the tests which are kinda hard for this package. |
ping here, pretty please |
Try this PR out and see if it works and give some feedback. |
I can't due to #67 . Let's hope someone else does it :) |
@KristofferC So this PR works besides the tests? |
It should, I tried it locally a bit before pushing the latest commit |
@KristofferC tried locally with Yao.jl, looks like working, but why CI is broken? need new tests? |
Maybe this PR could be merged to |
yes please. This has been too long already (we have also tested the branch with |
No description provided.