File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -497,6 +497,15 @@ jobs:
497
497
name : e2e-instrumentation-apks
498
498
path : android/test/e2e/build/outputs/apk
499
499
500
+ - name : Determine whether highly rate limited tests should run
501
+ id : determine-run-highly-rate-limited-tests
502
+ run : |
503
+ if [ ${{github.event_name}} == 'schedule' ]; then
504
+ echo "ignore_highly_rate_limited_tests=false" >> $GITHUB_ENV
505
+ else
506
+ echo "ignore_highly_rate_limited_tests=true" >> $GITHUB_ENV
507
+ fi
508
+
500
509
- name : Run instrumented test script
501
510
shell : bash -ieo pipefail {0}
502
511
env :
@@ -506,6 +515,7 @@ jobs:
506
515
INFRA_FLAVOR : prod
507
516
VALID_TEST_ACCOUNT_NUMBER : ${{ secrets.ANDROID_PROD_TEST_ACCOUNT }}
508
517
INVALID_TEST_ACCOUNT_NUMBER : ' 0000000000000000'
518
+ IGNORE_HIGHLY_RATE_LIMITED_TESTS : ${{ env.ignore_highly_rate_limited_tests }}
509
519
REPORT_DIR : ${{ steps.prepare-report-dir.outputs.report_dir }}
510
520
run : ./android/scripts/run-instrumented-tests.sh
511
521
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ TEST_SERVICES_URL=https://dl.google.com/android/maven2/androidx/test/services/te
16
16
PARTNER_AUTH=" ${PARTNER_AUTH:- } "
17
17
VALID_TEST_ACCOUNT_NUMBER=" ${VALID_TEST_ACCOUNT_NUMBER:- } "
18
18
INVALID_TEST_ACCOUNT_NUMBER=" ${INVALID_TEST_ACCOUNT_NUMBER:- } "
19
+ IGNORE_HIGHLY_RATE_LIMITED_TESTS=" ${IGNORE_HIGHLY_RATE_LIMITED_TESTS:- false} "
19
20
REPORT_DIR=" ${REPORT_DIR:- } "
20
21
21
22
while [[ " $# " -gt 0 ]]; do
@@ -130,6 +131,9 @@ case "$TEST_TYPE" in
130
131
echo " Error: The variable PARTNER_AUTH or VALID_TEST_ACCOUNT_NUMBER must be set."
131
132
exit 1
132
133
fi
134
+ if [[ " ${IGNORE_HIGHLY_RATE_LIMITED_TESTS} " == " true" ]]; then
135
+ OPTIONAL_TEST_ARGUMENTS+=" -e ignore_highly_rate_limited_tests true"
136
+ fi
133
137
USE_ORCHESTRATOR=" true"
134
138
PACKAGE_NAME=" net.mullvad.mullvadvpn"
135
139
if [[ " $INFRA_FLAVOR " =~ ^(devmole| stagemole)$ ]]; then
You can’t perform that action at this time.
0 commit comments