@@ -38,9 +38,9 @@ def get_run_id(commit, workflow):
3838 return run_id
3939
4040
41- def get_dep_sizes_json (current_commit , platform ):
41+ def get_dep_sizes_json (current_commit , platform , run_id ):
4242 print (f"Getting dependency sizes json for commit: { current_commit } , platform: { platform } " )
43- run_id = get_run_id (current_commit , '.github/workflows/resolve-build-deps.yaml' )
43+ # run_id = get_run_id(current_commit, '.github/workflows/resolve-build-deps.yaml')
4444 if run_id and check_artifact_exists (run_id , f'target-{ platform } ' ):
4545 dep_sizes_json = get_current_sizes_json (run_id , platform )
4646 print (f"Dependency sizes json path: { dep_sizes_json } " )
@@ -176,9 +176,10 @@ def main():
176176 parser .add_argument ('--base-commit' , required = True , help = 'Base commit hash' )
177177 parser .add_argument ('--platform' , required = True , help = 'Platform to compare' )
178178 parser .add_argument ('--to-dd-key' , required = False , help = 'Send to Datadog' )
179+ parser .add_argument ('--run-id' , required = False , help = 'Run id' )
179180 args = parser .parse_args ()
180181
181- dep_sizes_json = get_dep_sizes_json (args .current_commit , args .platform )
182+ dep_sizes_json = get_dep_sizes_json (args .current_commit , args .platform , args . run_id )
182183 if not dep_sizes_json :
183184 dep_sizes_json = get_previous_dep_sizes_json (args .base_commit , args .platform )
184185
0 commit comments