Skip to contentSkip to conversation

CI: do not checkout submodules

PATCH In review Cyril Hrubis 2 participants 3 messages Nov 25, 2025 – Nov 26, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CI: do not checkout submodules

This was originally added so that kirk installation is tested. The problem is that this brings random failures when git.kernel.org timeouts when we are checking out submodules that are not needed for the build and neither for the installation.

Unfortunatelly there is no support for selective submodule installation in github checkout action. There is an issue and pull request hanging:

https://github.com/actions/checkout/pull/1866
https://github.com/actions/checkout/issues/1969

It looks like if we wanted to checkout only kirk submodule we would have to install git and run all the commands ourselves in the CI, which I would like to avoid. Hence this commit removes the submodules checkout from the CI, with that we sacrifice kirk installation testing but avoid random failures.

---
 .github/workflows/ci-docker-build.yml | 2 --
 1 file changed, 2 deletions(-)
.github/workflows/ci-docker-build.yml +0 -2
index f7c779f63..09eb8bb6d 100644
@@ -125,8 +125,6 @@ jobs:
 
     - name: Git checkout
       uses: actions/checkout@v1
-      with:
-        submodules: 'true'
 
     - name: Install additional packages
       run: |
Signature · 5 lines
2.51.2


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
Reviewed-by on v1 1/1
#1 lore raw

Hi Cyril,

Quoted 11 lines

This was originally added so that kirk installation is tested. The problem is that this brings random failures when git.kernel.org timeouts when we are checking out submodules that are not needed for the build and neither for the installation.

Unfortunatelly there is no support for selective submodule installation in github checkout action. There is an issue and pull request hanging:

https://github.com/actions/checkout/pull/1866
https://github.com/actions/checkout/issues/1969

Quoted 7 lines

It looks like if we wanted to checkout only kirk submodule we would have to install git and run all the commands ourselves in the CI, which I would like to avoid. Hence this commit removes the submodules checkout from the CI, with that we sacrifice kirk installation testing but avoid random failures.

I'm ok with it.
nit: I'd mention it is actually a revert of 9cde2740cc.

Kind regards,
Petr

Quoted 17 lines
---
 .github/workflows/ci-docker-build.yml | 2 --
 1 file changed, 2 deletions(-)
.github/workflows/ci-docker-build.yml +0 -2
index f7c779f63..09eb8bb6d 100644
@@ -125,8 +125,6 @@ jobs:
 
     - name: Git checkout
       uses: actions/checkout@v1
-      with:
-        submodules: 'true'
 
     - name: Install additional packages
       run: |
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp