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

move Pkg to stdlib #25705

Merged
merged 4 commits into from
Jan 30, 2018
Merged

move Pkg to stdlib #25705

merged 4 commits into from
Jan 30, 2018

Conversation

KristofferC
Copy link
Sponsor Member

Pkg3 will replace Pkg(2) but moving it to the stdlib first will make that transition easier.

On the few places Pkg is used in base, I temporarily just used a Ref that Pkg fills.

@KristofferC KristofferC added the stdlib Julia's standard library label Jan 23, 2018
@KristofferC KristofferC added the packages Package management and loading label Jan 23, 2018
print(io, " Package Status:")
if isdir(Pkg.dir())
if isdir(PKG_MODULE_REF[].dir())
Copy link
Member

Choose a reason for hiding this comment

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

I think you might need to use invokelatest here. @vtjnash should be able to confirm that.

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

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

Seems to work ok actually.

export Dir, Types, Reqs, Cache, Read, Query, Resolve, Write, Entry
export dir, init, rm, add, available, installed, status, clone, checkout,
update, resolve, test, build, free, pin, PkgError, setprotocol!
#export Dir, Types, Reqs, Cache, Read, Query, Resolve, Write, Entry
Copy link
Member

Choose a reason for hiding this comment

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

These should probably be kept exported?

@KristofferC KristofferC force-pushed the kc/excise_pkg branch 3 times, most recently from f394b70 to d547f37 Compare January 23, 2018 18:32
@JeffBezanson JeffBezanson added this to the 1.0 milestone Jan 23, 2018
@KristofferC KristofferC force-pushed the kc/excise_pkg branch 5 times, most recently from 28816ca to 35167fe Compare January 25, 2018 16:11
@JeffBezanson
Copy link
Sponsor Member

Looks like freebsd is still trying to run pkg tests?

@KristofferC
Copy link
Sponsor Member Author

KristofferC commented Jan 26, 2018

Yeah, perhaps that can be removed @iblis17

Does anyone know the reason for splitting the tests into two parts for CI? Something with online / offline tests but choosetests already checks Internet connectivity and filters based on that.

.travis.yml Outdated
@@ -144,7 +144,7 @@ script:
- /tmp/julia/bin/julia -e 'versioninfo()'
- pushd /tmp/julia/share/julia/test
- /tmp/julia/bin/julia --check-bounds=yes runtests.jl $TESTSTORUN &&
/tmp/julia/bin/julia --check-bounds=yes runtests.jl libgit2-online download pkg
/tmp/julia/bin/julia --check-bounds=yes runtests.jl libgit2-online download
Copy link
Member

Choose a reason for hiding this comment

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

.circleci/config.yml need to be changed as well?

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

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

Yes, I didn't know that existed, thanks.

@iblislin
Copy link
Member

I think I should provde cumstom shell script like Travis and CircleCI does in long-term...
(Let me figure out how to make it

@KristofferC
Copy link
Sponsor Member Author

KristofferC commented Jan 29, 2018

All CI now fail with

julia: /home/travis/build/JuliaLang/julia/src/codegen.cpp:1096:
jl_llvm_functions_t jl_compile_linfo(jl_method_instance_t**, jl_code_info_t*, size_t, const jl_cgparams_t*):
Assertion `li->min_world <= world && li->max_world >= world' failed.

during precompile. Perhaps adding some debug printing to precompile.jl would be useful?

@StefanKarpinski
Copy link
Sponsor Member

cc @vtjnash ^

@vchuravy
Copy link
Member

I would suspect that the worldage error is: #25705 (comment)

.freebsdci.sh Outdated

gmake testall \
test-download \
test-Pkg \ # <- TODO: Should only test Pkg/pkg but no rule for test-Pkg/pkg
Copy link
Member

Choose a reason for hiding this comment

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

The comment in this line neutralized the effect of \ , so FreeBSD CI build failed.

line 73:
https://freebsdci.julialang.org/#/builders/1/builds/7031/steps/7/logs/stdio

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

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

Oops, thanks.

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

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

Is there anyway we could run this as julia test/runtests.jl test-Pkg/pkg?

Copy link
Member

Choose a reason for hiding this comment

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

I think invoking ./usr/bin/julia should work

@KristofferC
Copy link
Sponsor Member Author

@vchuravy But the PKG_MODULE_REF thing doesn't exist at all anymore on the newer commits because enough stuff got moved to stdlib that it wasn't needed anymore.

@KristofferC KristofferC force-pushed the kc/excise_pkg branch 2 times, most recently from 4873924 to 74c884f Compare January 30, 2018 12:18
.freebsdci.sh Outdated
test-pkg \
test-libgit2-online
./usr/bin/julia test/runtests.jl all
./usr/bin/julia test/runtests.jl libgit2-online Pkg/pkg download
Copy link
Member

Choose a reason for hiding this comment

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

need --check-bounds=yes?

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

👌

@KristofferC KristofferC merged commit 544a5b8 into master Jan 30, 2018
@fredrikekre fredrikekre deleted the kc/excise_pkg branch January 30, 2018 15:58
@KristofferC
Copy link
Sponsor Member Author

The world error assertion was disabled from consulting @vtjnash and he said it wasn't really a problem disabling it and that he would look at it later.

@StefanKarpinski
Copy link
Sponsor Member

giphy-1

vtjnash added a commit that referenced this pull request Feb 7, 2018
vtjnash added a commit that referenced this pull request Feb 12, 2018
vtjnash added a commit that referenced this pull request Feb 14, 2018
ararslan pushed a commit that referenced this pull request May 2, 2018
ararslan pushed a commit that referenced this pull request May 8, 2018
ararslan pushed a commit that referenced this pull request May 27, 2018
omus added a commit to JuliaTesting/Mocking.jl that referenced this pull request Jun 27, 2018
Details on the versions checks being used:

JuliaLang/julia#25705 (544a5b8e39) => 0.7.0-DEV.3656
JuliaLang/julia#27095 (a209a45450) => 0.7.0-DEV.5183
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages Package management and loading stdlib Julia's standard library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants