From 950230ab19755dd71b278136aa1095e12fd5189b Mon Sep 17 00:00:00 2001 From: Advait Jain Date: Fri, 4 Jun 2021 11:32:29 -0700 Subject: [PATCH] Fixes for Xtensa workflow. (#130) * Trigger workflow from pull_request_target. * Explicitly call third_party_downloads prior to running the tests. BUG=http://b/190108540 --- .github/workflows/xtensa.yml | 2 +- tensorflow/lite/micro/tools/ci_build/test_xtensa_fusion_f1.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/xtensa.yml b/.github/workflows/xtensa.yml index d64122b7..785caac7 100644 --- a/.github/workflows/xtensa.yml +++ b/.github/workflows/xtensa.yml @@ -26,7 +26,7 @@ jobs: if: | github.event_name == 'workflow_dispatch' || - (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ci:run')) || + (github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'ci:run')) || (github.event_name == 'schedule' && github.repository == 'tensorflow/tflite-micro') name: Fusion F1 Unit Tests (presubmit) diff --git a/tensorflow/lite/micro/tools/ci_build/test_xtensa_fusion_f1.sh b/tensorflow/lite/micro/tools/ci_build/test_xtensa_fusion_f1.sh index 2ea1c6e5..06d399dd 100755 --- a/tensorflow/lite/micro/tools/ci_build/test_xtensa_fusion_f1.sh +++ b/tensorflow/lite/micro/tools/ci_build/test_xtensa_fusion_f1.sh @@ -24,6 +24,10 @@ pwd source tensorflow/lite/micro/tools/ci_build/helper_functions.sh readable_run make -f tensorflow/lite/micro/tools/make/Makefile clean + +# TODO(b/143904317): downloading first to allow for parallel builds. +readable_run make -f tensorflow/lite/micro/tools/make/Makefile third_party_downloads + readable_run make -f tensorflow/lite/micro/tools/make/Makefile \ TARGET=xtensa \ TARGET_ARCH=fusion_f1 \ -- GitLab