From 2e00ef91a9f6a1fd57cb1edb9642bb314d2ac07f Mon Sep 17 00:00:00 2001 From: Andrew Fasano Date: Thu, 1 Jul 2021 11:31:28 -0400 Subject: [PATCH] CI: workaround for github actions bug Github Actions checkout@v2 fails to properly cleanup state in self-hosted runners which leads to errors from prior CI runs. https://github.com/actions/checkout/issues/385 Adding the created submodule directory to gitignore should hopefully prevent this from happening: https://github.com/actions/checkout/pull/424#issuecomment-764944641. --- .github/workflows/parallel_tests.yml | 1 - .gitignore | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/parallel_tests.yml b/.github/workflows/parallel_tests.yml index 1ee64d6a5b5..0367fd84f7a 100644 --- a/.github/workflows/parallel_tests.yml +++ b/.github/workflows/parallel_tests.yml @@ -97,7 +97,6 @@ jobs: run: | docker system prune -af --filter "until=72h" docker builder prune -af --filter "until=72h" - [[ ! -z "$GITHUB_WORKSPACE" ]] && rm -rf $GITHUB_WORKSPACE build_and_check_fork: # Forked repos can't use self-hosted test suite - just checkout and run make check if: github.repository != 'panda-re/panda' diff --git a/.gitignore b/.gitignore index 563af9e5344..c42a5c80359 100644 --- a/.gitignore +++ b/.gitignore @@ -166,3 +166,7 @@ panda/plugins/syscalls_logger/test/test_fw # Local files to be gitignored local + +# Workaround for CI to avoid github checkout@v2 actions bug when auto-generating documentation +auto_pydoc +auto_pydoc/pandare