Changeset 229618 in webkit
- Timestamp:
- Mar 14, 2018, 8:17:37 PM (7 years ago)
- Location:
- trunk/Websites/perf.webkit.org
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Websites/perf.webkit.org/ChangeLog
r229501 r229618 1 2018-03-14 Aakash Jain <aakash_jain@apple.com> 2 3 Add support for boolean properties in BuildbotSyncer while submitting build request to Buildbot 0.9 server 4 https://bugs.webkit.org/show_bug.cgi?id=183638 5 6 Reviewed by Ryosuke Niwa. 7 8 * tools/js/buildbot-syncer.js: 9 (BuildbotSyncer._parseRepositoryGroupPropertyTemplate): Allow boolean properties. 10 * server-tests/tools-sync-buildbot-integration-tests.js: Tests for boolean properties. 11 * unit-tests/buildbot-syncer-tests.js: Ditto. 12 1 13 2018-03-04 Dewei Zhu <dewei_zhu@apple.com> 2 14 -
trunk/Websites/perf.webkit.org/server-tests/tools-sync-buildbot-integration-tests.js
r227184 r229618 26 26 buildProperties: {'wk': {'revision': 'WebKit'}, 'wk-patch': {'patch': 'WebKit'}, 27 27 'checkbox': {'ifRepositorySet': ['WebKit'], 'value': 'build-wk'}, 28 'build-wk': {'ifRepositorySet': ['WebKit'], 'value': true}, 28 29 'owned-commits': {'ownedRevisions': 'WebKit'}}, 29 30 acceptsRoots: true, … … 71 72 buildProperties: {'wk': {'revision': 'WebKit'}, 'wk-patch': {'patch': 'WebKit'}, 72 73 'checkbox': {'ifRepositorySet': ['WebKit'], 'value': 'build-wk'}, 74 'build-wk': {'ifRepositorySet': ['WebKit'], 'value': true}, 73 75 'owned-commits': {'ownedRevisions': 'WebKit'}}, 74 76 acceptsRoots: true, … … 115 117 buildProperties: {'wk': {'revision': 'WebKit'}, 'wk-patch': {'patch': 'WebKit'}, 116 118 'checkbox': {'ifRepositorySet': ['WebKit'], 'value': 'build-wk'}, 119 'build-wk': {'ifRepositorySet': ['WebKit'], 'value': true}, 117 120 'owned-commits': {'ownedRevisions': 'WebKit'}}, 118 121 acceptsRoots: true, … … 383 386 assertAndResolveRequest(requests[6], 'POST', '/builders/some%20builder/force', 'OK'); 384 387 assert.deepEqual(requests[6].data, {'wk': '191622', 'wk-patch': RemoteAPI.url('/api/uploaded-file/1.dat'), 385 'build-request-id': '1', 'forcescheduler': 'force-ab-builds', 'checkbox': 'build-wk' });388 'build-request-id': '1', 'forcescheduler': 'force-ab-builds', 'checkbox': 'build-wk', 'build-wk': true}); 386 389 return MockRemoteAPI.waitForRequest(); 387 390 }).then(() => { … … 497 500 assert.equal(requests.length, 7); 498 501 assertAndResolveRequest(requests[6], 'POST', '/builders/some%20builder/force', 'OK'); 499 assert.deepEqual(requests[6].data, {'wk': '191622', 'build-request-id': '2', 'forcescheduler': 'force-ab-builds', 'checkbox': 'build-wk' });502 assert.deepEqual(requests[6].data, {'wk': '191622', 'build-request-id': '2', 'forcescheduler': 'force-ab-builds', 'checkbox': 'build-wk', 'build-wk': true}); 500 503 return MockRemoteAPI.waitForRequest(); 501 504 }).then(() => { … … 656 659 assertAndResolveRequest(requests[6], 'POST', '/builders/some%20builder/force', 'OK'); 657 660 assert.deepEqual(requests[6].data, {'wk': '191622', 'wk-patch': RemoteAPI.url('/api/uploaded-file/1.dat'), 658 'build-request-id': '1', 'forcescheduler': 'force-ab-builds', 'checkbox': 'build-wk', ' platform-name': 'some platform'});661 'build-request-id': '1', 'forcescheduler': 'force-ab-builds', 'checkbox': 'build-wk', 'build-wk': true, 'platform-name': 'some platform'}); 659 662 return MockRemoteAPI.waitForRequest(); 660 663 }).then(() => { … … 770 773 assert.equal(requests.length, 7); 771 774 assertAndResolveRequest(requests[6], 'POST', '/builders/some%20builder/force', 'OK'); 772 assert.deepEqual(requests[6].data, {'wk': '191622', 'build-request-id': '2', 'forcescheduler': 'force-ab-builds', 'checkbox': 'build-wk', ' platform-name': 'some platform'});775 assert.deepEqual(requests[6].data, {'wk': '191622', 'build-request-id': '2', 'forcescheduler': 'force-ab-builds', 'checkbox': 'build-wk', 'build-wk': true, 'platform-name': 'some platform'}); 773 776 return MockRemoteAPI.waitForRequest(); 774 777 }).then(() => { -
trunk/Websites/perf.webkit.org/tools/js/buildbot-syncer.js
r229489 r229618 577 577 let value = properties[propertyName]; 578 578 const isDictionary = typeof(value) == 'object'; 579 assert(isDictionary || typeof(value) == 'string' ,579 assert(isDictionary || typeof(value) == 'string' || typeof(value) == 'boolean', 580 580 `Repository group "${groupName}" uses an invalid value "${value}" in property "${propertyName}"`); 581 581 -
trunk/Websites/perf.webkit.org/unit-tests/buildbot-syncer-tests.js
r229489 r229618 1103 1103 'webkit-patch': {'patch': 'WebKit'}, 1104 1104 'checkbox': {'ifRepositorySet': ['WebKit'], 'value': 'build-webkit'}, 1105 'build-webkit': {'ifRepositorySet': ['WebKit'], 'value': true}, 1105 1106 'shared': {'revision': 'Shared'}, 1106 1107 }, … … 1113 1114 assert.equal(properties['webkit-patch'], 'http://build.webkit.org/api/uploaded-file/453.dat'); 1114 1115 assert.equal(properties['checkbox'], 'build-webkit'); 1116 assert.equal(properties['build-webkit'], true); 1115 1117 }); 1116 1118 … … 1163 1165 'shared': {'revision': 'Shared'}, 1164 1166 'roots': {'roots': {}}, 1165 'checkbox': {'ifBuilt': ['WebKit'], 'value': 'test-webkit'} 1167 'checkbox': {'ifBuilt': ['WebKit'], 'value': 'test-webkit'}, 1168 'test-webkit': {'ifBuilt': ['WebKit'], 'value': true} 1166 1169 }, 1167 1170 'buildProperties': { … … 1169 1172 'webkit-patch': {'patch': 'WebKit'}, 1170 1173 'checkbox': {'ifRepositorySet': ['WebKit'], 'value': 'build-webkit'}, 1174 'build-webkit': {'ifRepositorySet': ['WebKit'], 'value': true}, 1171 1175 'shared': {'revision': 'Shared'}, 1172 1176 }, … … 1180 1184 assert.equal(properties['roots'], '[{"url":"http://build.webkit.org/api/uploaded-file/456.dat"}]'); 1181 1185 assert.equal(properties['checkbox'], 'test-webkit'); 1186 assert.equal(properties['test-webkit'], true); 1182 1187 }); 1183 1188 … … 1191 1196 'owner-repo': {'revision': 'Owner Repository'}, 1192 1197 'roots': {'roots': {}}, 1193 'checkbox': {'ifBuilt': ['WebKit'], 'value': 'test-webkit'} 1198 'checkbox': {'ifBuilt': ['WebKit'], 'value': 'test-webkit'}, 1199 'test-webkit': {'ifBuilt': ['WebKit'], 'value': true} 1194 1200 }, 1195 1201 'buildProperties': { … … 1198 1204 'owner-repo': {'revision': 'Owner Repository'}, 1199 1205 'checkbox': {'ifRepositorySet': ['WebKit'], 'value': 'build-webkit'}, 1206 'build-webkit': {'ifRepositorySet': ['WebKit'], 'value': true}, 1200 1207 'owned-commits': {'ownedRevisions': 'Owner Repository'} 1201 1208 }, … … 1210 1217 assert.equal(properties['roots'], '[{"url":"http://build.webkit.org/api/uploaded-file/456.dat"}]'); 1211 1218 assert.equal(properties['checkbox'], undefined); 1219 assert.equal(properties['test-webkit'], undefined); 1212 1220 }); 1213 1221 … … 1227 1235 'owner-repo': {'revision': 'Owner Repository'}, 1228 1236 'checkbox': {'ifRepositorySet': ['WebKit'], 'value': 'build-webkit'}, 1237 'build-webkit': {'ifRepositorySet': ['WebKit'], 'value': true}, 1229 1238 'owned-commits': {'ownedRevisions': 'Owner Repository'} 1230 1239 }, … … 1237 1246 assert.equal(properties['owner-repo'], 'owner-001'); 1238 1247 assert.equal(properties['checkbox'], undefined); 1248 assert.equal(properties['build-webkit'], undefined); 1239 1249 assert.deepEqual(JSON.parse(properties['owned-commits']), {'Owner Repository': [{revision: 'owned-002', repository: 'Owned Repository', ownerRevision: 'owner-001'}]}); 1240 1250 }); … … 1256 1266 'owner-repo': {'revision': 'Owner Repository'}, 1257 1267 'checkbox': {'ifRepositorySet': ['WebKit'], 'value': 'build-webkit'}, 1268 'build-webkit': {'ifRepositorySet': ['WebKit'], 'value': true}, 1258 1269 'owned-commits': {'ownedRevisions': 'Owner Repository'} 1259 1270 }, … … 1266 1277 assert.equal(properties['owner-repo'], 'owner-001'); 1267 1278 assert.equal(properties['checkbox'], 'build-webkit'); 1279 assert.equal(properties['build-webkit'], true); 1268 1280 assert.equal(properties['webkit-patch'], 'http://build.webkit.org/api/uploaded-file/453.dat'); 1269 1281 assert.deepEqual(JSON.parse(properties['owned-commits']), {'Owner Repository': [{revision: 'owned-002', repository: 'Owned Repository', ownerRevision: 'owner-001'}]});
Note:
See TracChangeset
for help on using the changeset viewer.