Skip to content

Commit 9be763a

Browse files
committed
Fix a bug that platform groups cannot be updated on 'admin/platform'.
https://bugs.webkit.org/show_bug.cgi?id=219118 Reviewed by Ryosuke Niwa. Admins should be able to update platform group on 'admin/platform'. Update the assertion on BuildbotTriggerable._pullBuildbotOnAllSyncers so that when there is no corresponding entry in buildRequestByGroup, the test group for the request should be finished. * public/admin/platforms.php: * tools/js/buildbot-triggerable.js: Updated the assert statement. (BuildbotTriggerable.prototype._pullBuildbotOnAllSyncers): Canonical link: https://commits.webkit.org/231847@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@270138 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 23d98fa commit 9be763a

3 files changed

Lines changed: 18 additions & 4 deletions

File tree

Websites/perf.webkit.org/ChangeLog

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
2020-11-18 Dewei Zhu <dewei_zhu@apple.com>
2+
3+
Fix a bug that platform groups cannot be updated on 'admin/platform'.
4+
https://bugs.webkit.org/show_bug.cgi?id=219118
5+
6+
Reviewed by Ryosuke Niwa.
7+
8+
Admins should be able to update platform group on 'admin/platform'.
9+
Update the assertion on BuildbotTriggerable._pullBuildbotOnAllSyncers so that when there is no
10+
corresponding entry in buildRequestByGroup, the test group for the request should be finished.
11+
12+
* public/admin/platforms.php:
13+
* tools/js/buildbot-triggerable.js: Updated the assert statement.
14+
(BuildbotTriggerable.prototype._pullBuildbotOnAllSyncers):
15+
116
2020-11-16 Dewei Zhu <dewei_zhu@apple.com>
217

318
BuildbotTriggerable should not process a completed build request from a completed test group.

Websites/perf.webkit.org/public/admin/platforms.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ function merge_platforms($platform_to_merge, $destination_platform) {
5959
if ($db) {
6060
if ($action == 'update') {
6161
if (update_field('platforms', 'platform', 'name')
62-
|| update_boolean_field('platforms', 'platform', 'hidden')
63-
|| update_field('platforms', 'platform', 'hidden')
64-
|| update_field('platforms', 'platform', 'group'))
62+
|| update_field('platforms', 'platform', 'group')
63+
|| update_boolean_field('platforms', 'platform', 'hidden'))
6564
regenerate_manifest();
6665
else
6766
notice('Invalid parameters.');

Websites/perf.webkit.org/tools/js/buildbot-triggerable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class BuildbotTriggerable {
179179

180180
const info = buildReqeustsByGroup.get(request.testGroupId());
181181
if (!info) {
182-
assert(request.hasFinished());
182+
assert(request.testGroup().hasFinished());
183183
continue;
184184
}
185185

0 commit comments

Comments
 (0)