Title: [229101] trunk/Websites/perf.webkit.org
Revision
229101
Author
[email protected]
Date
2018-02-28 13:54:56 -0800 (Wed, 28 Feb 2018)

Log Message

Rename samplePendingBuild to samplePendingBuildRequest
https://bugs.webkit.org/show_bug.cgi?id=183171

Reviewed by Ryosuke Niwa.

* unit-tests/buildbot-syncer-tests.js:
(samplePendingBuildRequests): Renamed from samplePendingBuild.
(samplePendingBuildRequestDeprecated): Renamed from samplePendingBuildDeprecated.
(samplePendingBuild): Deleted.
(samplePendingBuildDeprecated): Deleted.

Modified Paths

Diff

Modified: trunk/Websites/perf.webkit.org/ChangeLog (229100 => 229101)


--- trunk/Websites/perf.webkit.org/ChangeLog	2018-02-28 19:53:58 UTC (rev 229100)
+++ trunk/Websites/perf.webkit.org/ChangeLog	2018-02-28 21:54:56 UTC (rev 229101)
@@ -1,3 +1,16 @@
+2018-02-28  Aakash Jain  <[email protected]>
+
+        Rename samplePendingBuild to samplePendingBuildRequest
+        https://bugs.webkit.org/show_bug.cgi?id=183171
+
+        Reviewed by Ryosuke Niwa.
+
+        * unit-tests/buildbot-syncer-tests.js:
+        (samplePendingBuildRequests): Renamed from samplePendingBuild.
+        (samplePendingBuildRequestDeprecated): Renamed from samplePendingBuildDeprecated.
+        (samplePendingBuild): Deleted.
+        (samplePendingBuildDeprecated): Deleted.
+
 2018-02-02  Aakash Jain  <[email protected]>
 
         Add support for submitting build request to Buildbot 0.9 server in BuildbotSyncer

Modified: trunk/Websites/perf.webkit.org/unit-tests/buildbot-syncer-tests.js (229100 => 229101)


--- trunk/Websites/perf.webkit.org/unit-tests/buildbot-syncer-tests.js	2018-02-28 19:53:58 UTC (rev 229100)
+++ trunk/Websites/perf.webkit.org/unit-tests/buildbot-syncer-tests.js	2018-02-28 21:54:56 UTC (rev 229101)
@@ -297,7 +297,7 @@
         'commitSet': commitSet, 'status': 'pending', 'platform': platform, 'test': test, 'order': order});
 }
 
-function samplePendingBuildData(buildRequestId, buildTime, builderId)
+function samplePendingBuildRequestData(buildRequestId, buildTime, builderId)
 {
     return {
         "builderid": builderId || 102,
@@ -315,10 +315,10 @@
     };
 }
 
-function samplePendingBuild(buildRequestId, buildTime, builderName)
+function samplePendingBuildRequests(buildRequestId, buildTime, builderName)
 {
     return {
-        "buildrequests" : [samplePendingBuildData(buildRequestId, buildTime, builderNameToIDMap()[builderName])]
+        "buildrequests" : [samplePendingBuildRequestData(buildRequestId, buildTime, builderNameToIDMap()[builderName])]
     };
 }
 
@@ -370,7 +370,7 @@
     };
 }
 
-function samplePendingBuildDeprecated(buildRequestId, buildTime, slaveName)
+function samplePendingBuildRequestDeprecated(buildRequestId, buildTime, slaveName)
 {
     return {
         'builderName': 'ABTest-iPad-RunBenchmark-Tests',
@@ -1275,7 +1275,7 @@
     describe('BuildbotBuildEntry', () => {
         it('should create BuildbotBuildEntry for pending build', () => {
             let syncer = BuildbotSyncer._loadConfig(MockRemoteAPI, sampleiOSConfig(), builderNameToIDMap())[1];
-            const buildbotData = samplePendingBuild();
+            const buildbotData = samplePendingBuildRequests();
             const pendingEntries = buildbotData.buildrequests.map((entry) => new BuildbotBuildEntry(syncer, entry));
 
             assert.equal(pendingEntries.length, 1);
@@ -1452,7 +1452,7 @@
         it('should create BuildbotBuildEntry for pending builds', () => {
             let syncer = BuildbotSyncer._loadConfig(MockRemoteAPI, sampleiOSConfig(), builderNameToIDMap())[1];
             let promise = syncer.pullBuildbot();
-            requests[0].resolve([samplePendingBuildDeprecated()]);
+            requests[0].resolve([samplePendingBuildRequestDeprecated()]);
             return promise.then((entries) => {
                 assert.equal(entries.length, 1);
                 let entry = entries[0];
@@ -1521,7 +1521,7 @@
             let promise = syncer.pullBuildbot(5);
             assert.equal(requests.length, 1);
 
-            requests[0].resolve([samplePendingBuildDeprecated(123)]);
+            requests[0].resolve([samplePendingBuildRequestDeprecated(123)]);
 
             return MockRemoteAPI.waitForRequest().then(() => {
                 assert.equal(requests.length, 2);
@@ -1568,7 +1568,7 @@
             let promise = syncer.pullBuildbot(5);
             assert.equal(requests.length, 1);
 
-            requests[0].resolve([samplePendingBuildDeprecated(456, 2), samplePendingBuildDeprecated(123, 1)]);
+            requests[0].resolve([samplePendingBuildRequestDeprecated(456, 2), samplePendingBuildRequestDeprecated(123, 1)]);
 
             return MockRemoteAPI.waitForRequest().then(() => {
                 assert.equal(requests.length, 2);
@@ -1625,7 +1625,7 @@
             let promise = syncer.pullBuildbot(5);
             assert.equal(requests.length, 1);
 
-            requests[0].resolve([samplePendingBuildDeprecated()]);
+            requests[0].resolve([samplePendingBuildRequestDeprecated()]);
 
             return MockRemoteAPI.waitForRequest().then(() => {
                 assert.equal(requests.length, 2);
@@ -1652,7 +1652,7 @@
             let promise = syncer.pullBuildbot(5);
             assert.equal(requests.length, 1);
 
-            requests[0].resolve([samplePendingBuildDeprecated()]);
+            requests[0].resolve([samplePendingBuildRequestDeprecated()]);
 
             return MockRemoteAPI.waitForRequest().then(() => {
                 assert.equal(requests.length, 2);
@@ -1801,7 +1801,7 @@
         it('should not schedule a build if builder has a pending build on the maching slave', () => {
             let syncer = BuildbotSyncer._loadConfig(MockRemoteAPI, sampleiOSConfig(), builderNameToIDMap())[1];
 
-            pullBuildbotWithAssertion(syncer, [samplePendingBuildDeprecated()], {}).then(() => {
+            pullBuildbotWithAssertion(syncer, [samplePendingBuildRequestDeprecated()], {}).then(() => {
                 const request = createSampleBuildRequest(MockModels.ipad, MockModels.speedometer);
                 syncer.scheduleRequestInGroupIfAvailable(request, [request], null);
                 assert.equal(requests.length, 0);
@@ -1811,7 +1811,7 @@
         it('should schedule a build if builder only has a pending build on a non-maching slave', () => {
             let syncer = BuildbotSyncer._loadConfig(MockRemoteAPI, sampleiOSConfig(), builderNameToIDMap())[1];
 
-            return pullBuildbotWithAssertion(syncer, [samplePendingBuildDeprecated(1, 1, 'another-slave')], {}).then(() => {
+            return pullBuildbotWithAssertion(syncer, [samplePendingBuildRequestDeprecated(1, 1, 'another-slave')], {}).then(() => {
                 const request = createSampleBuildRequest(MockModels.ipad, MockModels.speedometer);
                 syncer.scheduleRequestInGroupIfAvailable(request, [request], null);
                 assert.equal(requests.length, 1);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to