Hashar has submitted this change and it was merged.

Change subject: WMF: less build description updates
......................................................................


WMF: less build description updates

Whenever a job status change (in progress, completed), Zuul would update
the job description of all other jobs. Each update takes roughly 500ms
according to Jenkins access log.

A change made to Mediawiki core triggers 9 jobs, each of them will have
two states changes hence 18 updates are submitted or 9 seconds (at
least).

This change disable the description update when a build starts or
completes.  The description would only be updated when the change is
reported back in Gerrit.

bug: 48025
Change-Id: I3bf4096659b071fec25370397ffb21dd6ee77426
---
M zuul/scheduler.py
1 file changed, 4 insertions(+), 2 deletions(-)

Approvals:
  Hashar: Verified; Looks good to me, approved



diff --git a/zuul/scheduler.py b/zuul/scheduler.py
index 1628642..20dd5c2 100644
--- a/zuul/scheduler.py
+++ b/zuul/scheduler.py
@@ -803,7 +803,8 @@
             # or restarted
             return False
 
-        self.updateBuildDescriptions(build.build_set)
+        # HASHAR Wikimedia hack
+        #self.updateBuildDescriptions(build.build_set)
         return True
 
     def handleFailedChange(self, change):
@@ -831,7 +832,8 @@
 
         self.reportChanges()
         self.launchJobs()
-        self.updateBuildDescriptions(build.build_set)
+        # HASHAR Wikimedia hack
+        #self.updateBuildDescriptions(build.build_set)
         return True
 
     def reportChanges(self):

-- 
To view, visit https://gerrit.wikimedia.org/r/102465
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I3bf4096659b071fec25370397ffb21dd6ee77426
Gerrit-PatchSet: 1
Gerrit-Project: integration/zuul
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>
Gerrit-Reviewer: Hashar <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>
Gerrit-Reviewer: Ori.livneh <[email protected]>
Gerrit-Reviewer: QChris <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to