From e89a02c57063221604b278f0aa4673c65c8982a5 Mon Sep 17 00:00:00 2001 From: Godofredo Contreras Date: Wed, 1 Jun 2022 17:39:03 -0700 Subject: [PATCH 1/2] Update filter to run tasks only on PRs and main branch. The filter will run post-submit tests only on main branch and all the PRs. --- .cirrus.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.cirrus.yml b/.cirrus.yml index c786a4a14418..c8d17a1e3984 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -3,7 +3,7 @@ gcp_credentials: ENCRYPTED[!ebad0a1f4f7a446b77944c33651460a7ab010b4617273cb016cf # Don't run on release tags since it creates O(n^2) tasks where n is the # number of plugins. # Don't run on 'master' since it's a mirror of 'main'. -only_if: $CIRRUS_TAG == '' && $CIRRUS_BRANCH != 'master' +only_if: $CIRRUS_PR != '' || $CIRRUS_BRANCH == 'main' env: CHANNEL: "master" # Default to master when not explicitly set by a task. PLUGIN_TOOL: "./script/tool/bin/flutter_plugin_tools.dart" From 7fbde317bc9511fefb07692e03bc0322b98917aa Mon Sep 17 00:00:00 2001 From: Godofredo Contreras Date: Thu, 2 Jun 2022 19:47:37 -0700 Subject: [PATCH 2/2] Update filter docs. --- .cirrus.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index c8d17a1e3984..3f4be974b4d2 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -1,8 +1,6 @@ gcp_credentials: ENCRYPTED[!ebad0a1f4f7a446b77944c33651460a7ab010b4617273cb016cf354eb8fc22aa92e37a3c58bfa4a0c40a799351e027a6!] -# Don't run on release tags since it creates O(n^2) tasks where n is the -# number of plugins. -# Don't run on 'master' since it's a mirror of 'main'. +# Run on PRs and main branch post submit only. only_if: $CIRRUS_PR != '' || $CIRRUS_BRANCH == 'main' env: CHANNEL: "master" # Default to master when not explicitly set by a task.