JuliaRegistries / RegistryCI.jl

Continuous integration (CI) tools for Julia package registries, including registry consistency testing, automatic merging (automerge) of pull requests, and automatic TagBot triggers
https://juliaregistries.github.io/RegistryCI.jl/stable
Other
31 stars 30 forks source link

LibGit2 Fails in AutoMerge #482

Open anirudh2 opened 1 year ago

anirudh2 commented 1 year ago

I'm running into issues during the cloning step of verifying that we can add the package.

SSH host verification: the identity of the server `github.com:22` does not match its known hosts record. Someone could be trying to man-in-the-middle your connection. It is also possible that the server has changed its key, in which case you should check with the server administrator and if they confirm that the key has been changed, update your known hosts file.
ERROR: failed to clone from git@github.com:semiotic-ai/TheGraphData.jl.git, error: GitError(Code:ERROR, Class:Net, user cancelled hostkey check)
Stacktrace:
  [1] pkgerror(msg::String)
    @ Pkg.Types /opt/hostedtoolcache/julia/1.8.1/x64/share/julia/stdlib/v1.8/Pkg/src/Types.jl:67
  [2] clone(io::IOContext{Base.PipeEndpoint}, url::String, source_path::String; header::String, credentials::Nothing, kwargs::Base.Pairs{Symbol, Bool, Tuple{Symbol}, NamedTuple{(:isbare,), Tuple{Bool}}})
    @ Pkg.GitTools /opt/hostedtoolcache/julia/1.8.1/x64/share/julia/stdlib/v1.8/Pkg/src/GitTools.jl:126
  [3] #ensure_clone#2
    @ /opt/hostedtoolcache/julia/1.8.1/x64/share/julia/stdlib/v1.8/Pkg/src/GitTools.jl:74 [inlined]
  [4] install_git(io::IOContext{Base.PipeEndpoint}, uuid::Base.UUID, name::String, hash::Base.SHA1, urls::Set{String}, version_path::String)
    @ Pkg.Operations /opt/hostedtoolcache/julia/1.8.1/x64/share/julia/stdlib/v1.8/Pkg/src/Operations.jl:587
  [5] download_source(ctx::Pkg.Types.Context; readonly::Bool)
    @ Pkg.Operations /opt/hostedtoolcache/julia/1.8.1/x64/share/julia/stdlib/v1.8/Pkg/src/Operations.jl:814
  [6] download_source
    @ /opt/hostedtoolcache/julia/1.8.1/x64/share/julia/stdlib/v1.8/Pkg/src/Operations.jl:700 [inlined]
  [7] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}, new_git::Set{Base.UUID}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform)
    @ Pkg.Operations /opt/hostedtoolcache/julia/1.8.1/x64/share/julia/stdlib/v1.8/Pkg/src/Operations.jl:1278
  [8] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::Base.Pairs{Symbol, IOContext{Base.PipeEndpoint}, Tuple{Symbol}, NamedTuple{(:io,), Tuple{IOContext{Base.PipeEndpoint}}}})
    @ Pkg.API /opt/hostedtoolcache/julia/1.8.1/x64/share/julia/stdlib/v1.8/Pkg/src/API.jl:275
  [9] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::IOContext{Base.PipeEndpoint}, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Pkg.API /opt/hostedtoolcache/julia/1.8.1/x64/share/julia/stdlib/v1.8/Pkg/src/API.jl:156
 [10] add(pkgs::Vector{Pkg.Types.PackageSpec})
    @ Pkg.API /opt/hostedtoolcache/julia/1.8.1/x64/share/julia/stdlib/v1.8/Pkg/src/API.jl:145
 [11] #add#26
    @ /opt/hostedtoolcache/julia/1.8.1/x64/share/julia/stdlib/v1.8/Pkg/src/API.jl:143 [inlined]
 [12] add(pkg::Pkg.Types.PackageSpec)
    @ Pkg.API /opt/hostedtoolcache/julia/1.8.1/x64/share/julia/stdlib/v1.8/Pkg/src/API.jl:143
 [13] top-level scope
    @ none:14

caused by: GitError(Code:ERROR, Class:Net, user cancelled hostkey check)
Stacktrace:
  [1] macro expansion
    @ /opt/hostedtoolcache/julia/1.8.1/x64/share/julia/stdlib/v1.8/LibGit2/src/error.jl:110 [inlined]
  [2] clone(repo_url::SubString{String}, repo_path::String, clone_opts::LibGit2.CloneOptions)
    @ LibGit2 /opt/hostedtoolcache/julia/1.8.1/x64/share/julia/stdlib/v1.8/LibGit2/src/repository.jl:459
  [3] clone(repo_url::SubString{String}, repo_path::String; branch::String, isbare::Bool, remote_cb::Ptr{Nothing}, credentials::LibGit2.CachedCredentials, callbacks::Dict{Symbol, Tuple{Ptr{Nothing}, Any}})
    @ LibGit2 /opt/hostedtoolcache/julia/1.8.1/x64/share/julia/stdlib/v1.8/LibGit2/src/LibGit2.jl:583
  [4] clone(io::IOContext{Base.PipeEndpoint}, url::String, source_path::String; header::String, credentials::Nothing, kwargs::Base.Pairs{Symbol, Bool, Tuple{Symbol}, NamedTuple{(:isbare,), Tuple{Bool}}})
    @ Pkg.GitTools /opt/hostedtoolcache/julia/1.8.1/x64/share/julia/stdlib/v1.8/Pkg/src/GitTools.jl:115
  [5] #ensure_clone#2
    @ /opt/hostedtoolcache/julia/1.8.1/x64/share/julia/stdlib/v1.8/Pkg/src/GitTools.jl:74 [inlined]
  [6] install_git(io::IOContext{Base.PipeEndpoint}, uuid::Base.UUID, name::String, hash::Base.SHA1, urls::Set{String}, version_path::String)
    @ Pkg.Operations /opt/hostedtoolcache/julia/1.8.1/x64/share/julia/stdlib/v1.8/Pkg/src/Operations.jl:587
  [7] download_source(ctx::Pkg.Types.Context; readonly::Bool)
    @ Pkg.Operations /opt/hostedtoolcache/julia/1.8.1/x64/share/julia/stdlib/v1.8/Pkg/src/Operations.jl:814
  [8] download_source
    @ /opt/hostedtoolcache/julia/1.8.1/x64/share/julia/stdlib/v1.8/Pkg/src/Operations.jl:700 [inlined]
  [9] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}, new_git::Set{Base.UUID}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform)
    @ Pkg.Operations /opt/hostedtoolcache/julia/1.8.1/x64/share/julia/stdlib/v1.8/Pkg/src/Operations.jl:1278
 [10] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::Base.Pairs{Symbol, IOContext{Base.PipeEndpoint}, Tuple{Symbol}, NamedTuple{(:io,), Tuple{IOContext{Base.PipeEndpoint}}}})
    @ Pkg.API /opt/hostedtoolcache/julia/1.8.1/x64/share/julia/stdlib/v1.8/Pkg/src/API.jl:275
 [11] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::IOContext{Base.PipeEndpoint}, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Pkg.API /opt/hostedtoolcache/julia/1.8.1/x64/share/julia/stdlib/v1.8/Pkg/src/API.jl:156
 [12] add(pkgs::Vector{Pkg.Types.PackageSpec})
    @ Pkg.API /opt/hostedtoolcache/julia/1.8.1/x64/share/julia/stdlib/v1.8/Pkg/src/API.jl:145
 [13] #add#26
    @ /opt/hostedtoolcache/julia/1.8.1/x64/share/julia/stdlib/v1.8/Pkg/src/API.jl:143 [inlined]
 [14] add(pkg::Pkg.Types.PackageSpec)
    @ Pkg.API /opt/hostedtoolcache/julia/1.8.1/x64/share/julia/stdlib/v1.8/Pkg/src/API.jl:143
 [15] top-level scope
    @ none:14
┌ Error: Was not able to successfully `Pkg.add` the package
└ @ RegistryCI.AutoMerge ~/.julia/packages/RegistryCI/78Rh8/src/AutoMerge/guidelines.jl:651
┌ Info: Version can be `Pkg.add`ed
│   meets_this_guideline = false
└   message = "I was not able 
to install the package (i.e. `Pkg.add(\"TheGraphData\")` failed). See the CI logs for details."

I've tried to follow what what outlined in #245, but that hasn't worked for me.

All relevant repos are public, including the relevant automerge.yml. Any suggestions would be very much appreciated!