Skip to content

[CI] - Transient failure in macos CI when cloning git submodules #4739

@mitchdz

Description

@mitchdz

Required prerequisites

  • Consult the security policy. If reporting a security vulnerability, do not report the bug using this form. Use the process described in the policy to report the issue.
  • Make sure you've read the documentation. Your issue may be addressed there.
  • Search the issue tracker to verify that this hasn't already been reported. +1 or comment there if it has.
  • If possible, make a PR with a failing test to give us a starting point to work on!

Describe the bug

See https://github.com/NVIDIA/cuda-quantum/actions/runs/27561257921/job/81473865350?pr=4737

Run actions/checkout@v6
Syncing repository: NVIDIA/cuda-quantum
Getting Git version info
Copying '/Users/runner/.gitconfig' to '/Users/runner/work/_temp/70f2484a-9984-40f5-9c1b-f531348d7db2/.gitconfig'
Temporarily overriding HOME='/Users/runner/work/_temp/70f2484a-9984-40f5-9c1b-f531348d7db2' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
/opt/homebrew/bin/git config --global --add safe.directory /Users/runner/work/cuda-quantum/cuda-quantum
Deleting the contents of '/Users/runner/work/cuda-quantum/cuda-quantum'
Determining repository object format
Initializing the repository
Disabling automatic garbage collection
Setting up auth
Fetching the repository
Determining the checkout info
/opt/homebrew/bin/git sparse-checkout disable
/opt/homebrew/bin/git config --local --unset-all extensions.worktreeConfig
Checking out the ref
Setting up auth for fetching submodules
Fetching submodules
  /opt/homebrew/bin/git submodule sync
  /opt/homebrew/bin/git -c protocol.version=2 submodule update --init --force --depth=1
  Submodule 'tpls/Stim' (https://github.com/quantumlib/Stim) registered for path 'tpls/Stim'
  Submodule 'tpls/armadillo' (https://gitlab.com/conradsnicta/armadillo-code.git) registered for path 'tpls/armadillo'
  Submodule 'tpls/cpr' (https://github.com/libcpr/cpr.git) registered for path 'tpls/cpr'
  Submodule 'tpls/eigen' (https://gitlab.com/libeigen/eigen.git) registered for path 'tpls/eigen'
  Submodule 'tpls/ensmallen' (https://github.com/mlpack/ensmallen) registered for path 'tpls/ensmallen'
  Submodule 'tpls/fmt' (https://github.com/fmtlib/fmt) registered for path 'tpls/fmt'
  Submodule 'tpls/googletest-src' (https://github.com/google/googletest) registered for path 'tpls/googletest-src'
  Submodule 'tpls/llvm' (https://github.com/llvm/llvm-project.git) registered for path 'tpls/llvm'
  Submodule 'tpls/nanobind' (https://github.com/wjakob/nanobind.git) registered for path 'tpls/nanobind'
  Submodule 'tpls/qpp' (https://github.com/softwareQinc/qpp.git) registered for path 'tpls/qpp'
  Submodule 'tpls/spdlog' (https://github.com/gabime/spdlog) registered for path 'tpls/spdlog'
  Submodule 'tpls/xtensor' (https://github.com/xtensor-stack/xtensor) registered for path 'tpls/xtensor'
  Submodule 'tpls/xtl' (https://github.com/xtensor-stack/xtl) registered for path 'tpls/xtl'
  Cloning into '/Users/runner/work/cuda-quantum/cuda-quantum/tpls/Stim'...
  Cloning into '/Users/runner/work/cuda-quantum/cuda-quantum/tpls/armadillo'...
  Cloning into '/Users/runner/work/cuda-quantum/cuda-quantum/tpls/cpr'...
  Cloning into '/Users/runner/work/cuda-quantum/cuda-quantum/tpls/eigen'...
  Cloning into '/Users/runner/work/cuda-quantum/cuda-quantum/tpls/ensmallen'...
  Cloning into '/Users/runner/work/cuda-quantum/cuda-quantum/tpls/fmt'...
  Cloning into '/Users/runner/work/cuda-quantum/cuda-quantum/tpls/googletest-src'...
  Cloning into '/Users/runner/work/cuda-quantum/cuda-quantum/tpls/llvm'...
  Cloning into '/Users/runner/work/cuda-quantum/cuda-quantum/tpls/nanobind'...
  Cloning into '/Users/runner/work/cuda-quantum/cuda-quantum/tpls/qpp'...
  Cloning into '/Users/runner/work/cuda-quantum/cuda-quantum/tpls/spdlog'...
  Cloning into '/Users/runner/work/cuda-quantum/cuda-quantum/tpls/xtensor'...
  Cloning into '/Users/runner/work/cuda-quantum/cuda-quantum/tpls/xtl'...
  From https://github.com/quantumlib/Stim
   * branch            42e0b9e099180e8570407c33f87b4683cac00d81 -> FETCH_HEAD
  Submodule path 'tpls/Stim': checked out '42e0b9e099180e8570407c33f87b4683cac00d81'
  From https://gitlab.com/conradsnicta/armadillo-code
   * branch            102a354e0ceded132bb1f38b5d0be90806a3070b -> FETCH_HEAD
  Submodule path 'tpls/armadillo': checked out '102a354e0ceded132bb1f38b5d0be90806a3070b'
  From https://github.com/libcpr/cpr
   * branch            d202b82fbccf897604a18e035c09e1330dffd082 -> FETCH_HEAD
  Submodule path 'tpls/cpr': checked out 'd202b82fbccf897604a18e035c09e1330dffd082'
  From https://gitlab.com/libeigen/eigen
   * branch            81fe2d424f05e5596772caeaa0e2b7e6518da92c -> FETCH_HEAD
  Submodule path 'tpls/eigen': checked out '81fe2d424f05e5596772caeaa0e2b7e6518da92c'
  From https://github.com/mlpack/ensmallen
   * branch            b702f6db50b5f92f4e9a8aeb4b5f985bcbba38f4 -> FETCH_HEAD
  Submodule path 'tpls/ensmallen': checked out 'b702f6db50b5f92f4e9a8aeb4b5f985bcbba38f4'
  From https://github.com/fmtlib/fmt
   * branch            fc8d07cfe54ba9f5019453dfdb112491246ee017 -> FETCH_HEAD
  Submodule path 'tpls/fmt': checked out 'fc8d07cfe54ba9f5019453dfdb112491246ee017'
  From https://github.com/google/googletest
   * branch            f8d7d77c06936315286eb55f8de22cd23c188571 -> FETCH_HEAD
  Submodule path 'tpls/googletest-src': checked out 'f8d7d77c06936315286eb55f8de22cd23c188571'
  From https://github.com/llvm/llvm-project
   * branch                def143a6c624dc9b991ebfdfec5c36a7084171eb -> FETCH_HEAD
  Submodule path 'tpls/llvm': checked out 'def143a6c624dc9b991ebfdfec5c36a7084171eb'
  Error: fatal: unable to access 'https://github.com/wjakob/nanobind.git/': Could not resolve host: github.com
  Unable to fetch in submodule path 'tpls/nanobind'; trying to directly fetch 2a61ad2494d09fecb2e13322c1383342c299900d:
  Error: fatal: unable to access 'https://github.com/wjakob/nanobind.git/': Could not resolve host: github.com
  Error: fatal: Fetched in submodule path 'tpls/nanobind', but it did not contain 2a61ad2494d09fecb2e13322c1383342c299900d. Direct fetching of that commit failed.
  Error: The process '/opt/homebrew/bin/git' failed with exit code 128

Steps to reproduce the bug

Run in CI

Expected behavior

No failure

Is this a regression? If it is, put the last known working version (or commit) here.

Not a regression

Environment

CI

Suggestions

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions