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

InexactError when running on x86 arch #119

Closed
colinxs opened this issue Nov 30, 2019 · 2 comments
Closed

InexactError when running on x86 arch #119

colinxs opened this issue Nov 30, 2019 · 2 comments

Comments

@colinxs
Copy link

colinxs commented Nov 30, 2019

Running AutoMerge.run on GitHub Actions with ubuntu-latest, julia-version: 1.3.0, and julia-arch: x86 produces the following error:

 [1] throw_inexacterror(::Symbol, ::Type{Int32}, ::Int64) at ./boot.jl:560
 [2] checked_trunc_sint at ./boot.jl:582 [inlined]
 [3] toInt32 at ./boot.jl:619 [inlined]
 [4] Int32 at ./boot.jl:709 [inlined]
 [5] prune_github_value(::Int64, ::Type{Int32}) at /home/runner/.julia/packages/GitHub/oQdYa/src/utils/GitHubType.jl:74
 [6] extract_nullable(::Dict{String,Any}, ::String, ::Type{Int32}) at /home/runner/.julia/packages/GitHub/oQdYa/src/utils/GitHubType.jl:66
 [7] macro expansion at /home/runner/.julia/packages/GitHub/oQdYa/src/utils/GitHubType.jl:0 [inlined]
 [8] json2github(::Type{GitHub.Status}, ::Dict{String,Any}) at /home/runner/.julia/packages/GitHub/oQdYa/src/utils/GitHubType.jl:93
 [9] GitHub.Status(::Dict{String,Any}) at /home/runner/.julia/packages/GitHub/oQdYa/src/repositories/statuses.jl:21
 [10] #create_status#96(::Base.Iterators.Pairs{Symbol,Any,Tuple{Symbol,Symbol},NamedTuple{(:auth, :params),Tuple{GitHub.OAuth2,Dict{String,String}}}}, ::typeof(GitHub.create_status), ::GitHub.GitHubWebAPI, ::GitHub.Repo, ::String) at /home/runner/.julia/packages/GitHub/oQdYa/src/repositories/statuses.jl:32
 [11] #create_status at ./none:0 [inlined]
 [12] #create_status#97 at ./none:0 [inlined]
 [13] #create_status at ./none:0 [inlined]
 [14] (::RegistryCI.AutoMerge.var"#77#86"{GitHub.OAuth2,String,GitHub.Repo})() at /home/runner/.julia/packages/RegistryCI/sfgog/src/AutoMerge/new-version.jl:27
 [15] (::Base.var"#50#51#53"{ExponentialBackOff,Nothing,RegistryCI.AutoMerge.var"#77#86"{GitHub.OAuth2,String,GitHub.Repo}})(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Base.var"#50#52"{Base.var"#50#51#53"{ExponentialBackOff,Nothing,RegistryCI.AutoMerge.var"#77#86"{GitHub.OAuth2,String,GitHub.Repo}}}) at ./error.jl:266
 [16] my_retry at ./error.jl:249 [inlined]
 [17] my_retry at /home/runner/.julia/packages/RegistryCI/sfgog/src/AutoMerge/api_rate_limiting.jl:2 [inlined]
 [18] #pull_request_build#75(::GitHub.OAuth2, ::Array{String,1}, ::String, ::String, ::Bool, ::String, ::typeof(RegistryCI.AutoMerge.pull_request_build), ::RegistryCI.AutoMerge.NewVersion, ::GitHub.PullRequest, ::String, ::GitHub.Repo) at /home/runner/.julia/packages/RegistryCI/sfgog/src/AutoMerge/new-version.jl:27
 [19] #pull_request_build at /home/runner/.julia/packages/RegistryCI/sfgog/src/AutoMerge/util.jl:0 [inlined]
 [20] #pull_request_build#97(::GitHub.OAuth2, ::Array{String,1}, ::String, ::Bool, ::Bool, ::String, ::typeof(RegistryCI.AutoMerge.pull_request_build), ::GitHub.PullRequest, ::String, ::GitHub.Repo, ::String) at /home/runner/.julia/packages/RegistryCI/sfgog/src/AutoMerge/pull-requests.jl:84
 [21] #pull_request_build at ./none:0 [inlined]
 [22] #pull_request_build#94(::String, ::GitHub.OAuth2, ::Array{String,1}, ::String, ::Bool, ::Bool, ::typeof(RegistryCI.AutoMerge.pull_request_build), ::Int32, ::String, ::GitHub.Repo, ::String) at /home/runner/.julia/packages/RegistryCI/sfgog/src/AutoMerge/pull-requests.jl:40
 [23] #pull_request_build at ./none:0 [inlined]
 [24] #run#18(::Bool, ::Bool, ::Second, ::Second, ::String, ::Array{String,1}, ::String, ::Bool, ::Bool, ::Array{String,1}, ::typeof(RegistryCI.AutoMerge.run), ::Base.EnvDict, ::RegistryCI.AutoMerge.GitHubActions) at /home/runner/.julia/packages/RegistryCI/sfgog/src/AutoMerge/public.jl:38
 [25] (::RegistryCI.AutoMerge.var"#kw##run")(::NamedTuple{(:merge_new_packages, :merge_new_versions, :new_package_waiting_period, :new_version_waiting_period, :registry, :authorized_authors, :suggest_onepointzero, :registry_deps),Tuple{Bool,Bool,Second,Second,String,Array{String,1},Bool,Array{String,1}}}, ::typeof(RegistryCI.AutoMerge.run), ::Base.EnvDict, ::RegistryCI.AutoMerge.GitHubActions) at ./none:0 (repeats 3 times)
 [26] top-level scope at none:1

Running with julia-arch: x64 fixes the issue. I was confused at first since automerge.yml in General also defines julia-arch: x86, but it never gets used.

Seems like it's an issue in GitHub.jl, but posting this here in case anyone else runs into this issue.

@DilumAluthge
Copy link
Member

Yeah this is an issue in GitHub.jl. Can you open an issue on that repo?

Anyway, it seems like the workaround is to just run on x64.

@colinxs
Copy link
Author

colinxs commented Nov 30, 2019

Yup, easy enough to workaround.

Done: JuliaWeb/GitHub.jl#154

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

2 participants