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

attempt to fix precompile issues when running container #100

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

mwdchang
Copy link
Member

Attempt to address the error below when starting via the docker-image. The docker file missing examples directory seems to be the culprit - note I didn't test this, trying to build the image brought my system to its knees.

WARNING: Method definition istaskfailed(Task) in module Base at task.jl:251 overwritten in module JobSchedulers at /root/.julia/packages/JobSchedulers/5Qozb/src/scheduler.jl:68.
  ** incremental compilation may be fatally broken for this module **

WARNING: both SciMLBase and BlackBoxOptim export "OptimizationProblem"; uses of it in module OptimizationBBO must be qualified
WARNING: both Plots and LinearAlgebra export "rotate!"; uses of it in module EasyModelAnalysis must be qualified
WARNING: both Bijectors and Base export "stack"; uses of it in module Turing must be qualified
ERROR: LoadError: ArgumentError: invalid JSON at byte position 1 while parsing type Any: InvalidChar
/simulation-service/src/..

Stacktrace:
  [1] invalid(error::JSON3.Error, buf::Base.CodeUnits{UInt8, String}, pos::Int64, T::Type)
    @ JSON3 ~/.julia/packages/JSON3/jTUC3/src/JSON3.jl:30
  [2] read!(buf::Base.CodeUnits{UInt8, String}, pos::Int64, len::Int64, b::UInt8, tape::Vector{UInt64}, tapeidx::Int64, ::Type{Any}, checkint::Bool; allow_inf::Bool)
    @ JSON3 ~/.julia/packages/JSON3/jTUC3/src/read.jl:139
  [3] read!
    @ ~/.julia/packages/JSON3/jTUC3/src/read.jl:87 [inlined]
  [4] read(json::String; jsonlines::Bool, numbertype::Nothing, kw::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ JSON3 ~/.julia/packages/JSON3/jTUC3/src/read.jl:57
  [5] read
    @ ~/.julia/packages/JSON3/jTUC3/src/read.jl:30 [inlined]
  [6] macro expansion
    @ /simulation-service/src/precompile.jl:2 [inlined]
  [7] top-level scope
    @ ~/.julia/packages/PrecompileTools/0yi7r/src/workloads.jl:74
  [8] include(mod::Module, _path::String)
    @ Base ./Base.jl:457
  [9] include(x::String)
    @ SimulationService /simulation-service/src/SimulationService.jl:1
 [10] top-level scope
    @ /simulation-service/src/SimulationService.jl:436
 [11] include
    @ ./Base.jl:457 [inlined]
 [12] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
    @ Base ./loading.jl:2049
 [13] top-level scope
    @ stdin:3
in expression starting at /simulation-service/src/precompile.jl:1
in expression starting at /simulation-service/src/SimulationService.jl:1
in expression starting at stdin:3
ERROR: Failed to precompile SimulationService [e66378d9-a322-4933-8764-0ce0bcab4993] to "/root/.julia/compiled/v1.9/SimulationService/jl_FUwwuz".
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:35
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
   @ Base ./loading.jl:2300
 [3] compilecache
   @ ./loading.jl:2167 [inlined]
 [4] _require(pkg::Base.PkgId, env::String)
   @ Base ./loading.jl:1805
 [5] _require_prelocked(uuidkey::Base.PkgId, env::String)
   @ Base ./loading.jl:1660
 [6] macro expansion
   @ ./loading.jl:1648 [inlined]
 [7] macro expansion
   @ ./lock.jl:267 [inlined]
 [8] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:1611

@codecov-commenter
Copy link

codecov-commenter commented Jul 19, 2023

Codecov Report

Merging #100 (4192404) into main (1f53369) will not change coverage.
The diff coverage is n/a.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@           Coverage Diff           @@
##             main     #100   +/-   ##
=======================================
  Coverage   79.43%   79.43%           
=======================================
  Files           3        3           
  Lines         355      355           
=======================================
  Hits          282      282           
  Misses         73       73           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@joshday joshday merged commit 1416dab into main Jul 19, 2023
2 checks passed
@joshday joshday deleted the dockerfile-fix-precompile branch July 19, 2023 12:15
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.

3 participants