Skip to content

Commit b974acd

Browse files
committed
binary_size.py: avoid running the binary size calculation if no sdks are affected.
1 parent 0b218b3 commit b974acd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ci/fireci/fireciplugins/binary_size.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ def binary_size(pull_request, log, metrics_service_url, access_token):
5555
affected_artifacts, all_artifacts = _parse_artifacts()
5656
artifacts = affected_artifacts if pull_request else all_artifacts
5757
sdks = ','.join(artifacts)
58+
if not sdks:
59+
_logger.info(
60+
"No sdks found whose binary size to measure ("
61+
"pull_request=%s affected_artifacts=%s all_artifacts=%s)",
62+
pull_request, affected_artifacts, all_artifacts
63+
)
64+
return
5865

5966
workdir = 'health-metrics/apk-size'
6067
process = gradle.run('assemble', '--continue', gradle.P('sdks', sdks), workdir=workdir, check=False)

0 commit comments

Comments
 (0)