From 26b928596d32451c5c5c848088db4378afcab7b7 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Wed, 13 Nov 2024 19:43:06 -0800 Subject: [PATCH] CI: always run submodule check (#34021) * CI: always run submodule check * ignore tinygrad * skip --- .github/workflows/selfdrive_tests.yaml | 2 +- release/check-submodules.sh | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/selfdrive_tests.yaml b/.github/workflows/selfdrive_tests.yaml index 477be3546d..446b0ab44b 100644 --- a/.github/workflows/selfdrive_tests.yaml +++ b/.github/workflows/selfdrive_tests.yaml @@ -52,7 +52,7 @@ jobs: run: TARGET_DIR=$STRIPPED_DIR release/build_devel.sh - uses: ./.github/workflows/setup-with-retry - name: Check submodules - if: github.ref == 'refs/heads/master' && github.repository == 'commaai/openpilot' + if: github.repository == 'commaai/openpilot' timeout-minutes: 3 run: release/check-submodules.sh - name: Build openpilot and run checks diff --git a/release/check-submodules.sh b/release/check-submodules.sh index 61b37fd870..93869a7403 100755 --- a/release/check-submodules.sh +++ b/release/check-submodules.sh @@ -1,7 +1,12 @@ #!/usr/bin/env bash while read hash submodule ref; do - git -C $submodule fetch --depth 5000 origin master + if [ "$submodule" = "tinygrad_repo" ]; then + echo "Skipping $submodule" + continue + fi + + git -C $submodule fetch --depth 100 origin master git -C $submodule branch -r --contains $hash | grep "origin/master" if [ "$?" -eq 0 ]; then echo "$submodule ok"