Skip to content

Commit d79a204

Browse files
committed
debug
1 parent c703363 commit d79a204

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

ci/fireci/fireciplugins/macrobenchmark/commands.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ def ci(pull_request, repeat):
160160
ftl_results = list(map(lambda x: {'bucket': ftl_bucket_name, 'dir': x}, ftl_dirs))
161161
startup_time_data = {'log': log, 'ftlResults': ftl_results}
162162

163-
metric_service_url = 'https://api.firebase-sdk-health-metrics.com'
163+
# metric_service_url = 'https://api.firebase-sdk-health-metrics.com'
164+
metric_service_url = 'https://metric-service-staging-tv5rmd4a6q-uc.a.run.app'
164165
access_token = ci_utils.gcloud_identity_token()
165166
uploader.post_report(startup_time_data, metric_service_url, access_token, 'startup-time')
166167

ci/fireci/fireciplugins/macrobenchmark/run/test_project.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@
1414

1515
import asyncio
1616
import glob
17+
import random
1718
import re
1819
import shutil
1920

21+
import click
22+
2023
from .log_decorator import LogDecorator
2124
from .utils import execute, execute_async, generate_test_run_id
2225
from fireci.dir_utils import chdir
@@ -90,6 +93,10 @@ async def run(index: int, run_id: str) -> str:
9093
args += ['--environment-variables', ','.join(ftl_environment_variables)]
9194
args += ['--timeout', '45m']
9295
args += ['--project', 'fireescape-c4819']
96+
97+
if random.random() > 0.5:
98+
raise click.ClickException(f'Intentional failure: {run_id}')
99+
93100
await execute_async(executable, *args, logger=run_logger)
94101
return run_id
95102

0 commit comments

Comments
 (0)