Skip to content

Clone fewer submodules in CI - #585

Merged
michalpelka merged 2 commits into
MapsHD:mainfrom
capCafu:ci-fewer-submodule-clones
Oct 27, 2026
Merged

michalpelka merged 2 commits into
MapsHD:mainfrom
capCafu:ci-fewer-submodule-clones

Conversation

@capCafu

@capCafu capCafu commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Part of #583.

15 of the last 40 failed CI runs failed while cloning Eigen from GitLab. Every workflow checked out submodules recursively, so each push cloned Eigen 14 times, including a nested copy in observation_equations' examples that HDMapping doesn't use.

  • Skip submodules in the clang-format check (it only formats our own code)
  • Check out top-level submodules only in the build workflows (the nested ones are
    libE57Format's googletest and observation_equations' example eigen/imgui, which
    the build doesn't use)

This cuts GitLab clones per push from 14 to 6. Once there is a GitHub mirror of Eigen (e.g. MapsHD/eigen), switching to it is a one-line .gitmodules change I'm happy to follow up with.

Tested in a fresh clone with top-level submodules only: the Linux build, ctest and the Python bindings job pass.

@michalpelka
michalpelka merged commit cad294d into MapsHD:main Oct 27, 2026
7 checks passed
@mwlasiuk mwlasiuk mentioned this pull request Oct 27, 2026
@capCafu
capCafu deleted the ci-fewer-submodule-clones branch October 27, 2026 20:49
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.

2 participants