-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[git-webkit] Reduce radar requests in clone
https://bugs.webkit.org/show_bug.cgi?id=274216 rdar://128135181 Reviewed by Dewei Zhu. Attempt to batch update requests on cloned radar, falling back to smaller updates if the larger one fails. * Tools/Scripts/libraries/webkitbugspy/webkitbugspy/mocks/radar.py: (RadarModel.commit_changes): Increment network call counter. (RadarClient.radar_for_id): Ditto (RadarClient.find_radars): Ditto (RadarClient.milestones_for_component): Ditto (RadarClient.find_components): Ditto (RadarClient.create_radar): Ditto (RadarClient.clone_radar): Ditto (RadarClient.keywords_for_name): Ditto (Radar.__init__): Keep track of function calls that result in network requests. * Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/clone.py: (Clone.main): Attempt to batch all radar updates into a single request, falling back to smaller updates if the batched update fails. * Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/clone_unittest.py: (TestClone.test_no_reason): Check the number of radar network requests made during the program. (TestClone.test_basic): Ditto. (TestClone.test_no_prompt): Ditto. (TestClone.test_prompt): Ditto. (TestClone.test_merge_back_no_parent): Ditto. (TestClone.test_merge_back): Ditto. (TestClone.test_infer_merge_back): Ditto. Canonical link: https://commits.webkit.org/279019@main
- Loading branch information
1 parent
a4d58c8
commit b1a0769
Showing
3 changed files
with
80 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters