Skip to content

Commit 8a355b4

Browse files
AdamWillmergify[bot]
authored andcommitted
Fix indicating waived failures when there is no scenario
On the Automated Tests tab, when a required test failed but the failure has been waived, we intend to show a thumbs-up icon with a tooltip with details about the waiver. However, if the failed test has no 'scenario', this doesn't work, because there's a hash key mismatch (we store the waiver under key "testcase##null" but look it up under key "testcase##no_scenario"). This should fix that, and mean we correctly note waived failures for Fedora CI results (openQA ones always have a scenario). Signed-off-by: Adam Williamson <[email protected]>
1 parent 5f66996 commit 8a355b4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

bodhi-server/bodhi/server/templates/update.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,11 @@ <h3 class="modal-title" id="waiveModalLabel">Trigger Tests</h3>
957957
if (!(requirement.subject_identifier in waived)) {
958958
waived[requirement.subject_identifier] = {};
959959
}
960-
var key = [requirement.testcase, requirement.scenario].join('##');
960+
var scenario = 'no_scenario';
961+
if (requirement.scenario) {
962+
scenario = requirement.scenario;
963+
}
964+
var key = [requirement.testcase, scenario].join('##');
961965
waived[requirement.subject_identifier][key] = requirement.waiver_id;
962966
}
963967
});

news/PR5863.bug

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The Automated Tests tab now correctly indicates when a required test failure was waived if the test case has no 'scenario'.

0 commit comments

Comments
 (0)