This repository was archived by the owner on Jun 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1313
1414from api .shared .mixins import RepoPropertyMixin
1515from core .models import Branch , Pull
16- from graphql_api .dataloader .bundle_analysis import load_bundle_analysis_report
1716from graphs .settings import settings
18- from services .bundle_analysis import BundleAnalysisReport
17+ from services .bundle_analysis import BundleAnalysisReport , load_report
1918from services .components import commit_components
2019
2120from .helpers .badge import (
@@ -254,15 +253,17 @@ def get_bundle_size(self) -> int | None:
254253 log .warning ("Commit not found" , extra = dict (commit = branch .head ))
255254 return None
256255
257- bundle_report = load_bundle_analysis_report (commit )
256+ shared_bundle_report = load_report (commit )
258257
259- if not isinstance ( bundle_report , BundleAnalysisReport ) :
258+ if shared_bundle_report is None :
260259 log .warning (
261260 "Bundle analysis report not found for commit" ,
262261 extra = dict (commit = branch .head ),
263262 )
264263 return None
265264
265+ bundle_report = BundleAnalysisReport (shared_bundle_report )
266+
266267 return bundle_report .size_total
267268
268269
You can’t perform that action at this time.
0 commit comments