Bug 207387 - [ews] add commit-queue build step to close the bug
Summary: [ews] add commit-queue build step to close the bug
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Aakash Jain
URL:
Keywords: InRadar
Depends on:
Blocks: 201934
  Show dependency treegraph
 
Reported: 2020-02-07 09:28 PST by Aakash Jain
Modified: 2020-02-19 07:41 PST (History)
4 users (show)

See Also:


Attachments
Patch (2.50 KB, patch)
2020-02-07 09:33 PST, Aakash Jain
jbedard: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aakash Jain 2020-02-07 09:28:03 PST
[ews] add commit-queue build step to close the bug (after the patch has been committed to repository).
Comment 1 Aakash Jain 2020-02-07 09:33:45 PST
Created attachment 390088 [details]
Patch
Comment 2 Aakash Jain 2020-02-07 09:38:34 PST
Sample run: https://ews-build.webkit-uat.org/#/builders/26/builds/428
Comment 3 Jonathan Bedard 2020-02-07 09:51:59 PST
Comment on attachment 390088 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=390088&action=review

> Tools/BuildSlaveSupport/ews-build/steps.py:562
> +            self._addToLog('stdio', 'bug_id build property not found.\n')

Seems like we're duplicating this one a lot. Maybe add a 'has_bug_id' step to BugzillaMixin in a separate patch?
Comment 4 Aakash Jain 2020-02-07 10:10:58 PST
Comment on attachment 390088 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=390088&action=review

>> Tools/BuildSlaveSupport/ews-build/steps.py:562
>> +            self._addToLog('stdio', 'bug_id build property not found.\n')
> 
> Seems like we're duplicating this one a lot. Maybe add a 'has_bug_id' step to BugzillaMixin in a separate patch?

I am actually not sure if we should even have this additional check or not, theoretically this shouldn't ever be hit. ews django app does send both bug_id and patch_id with the patch to buildbot.

Also, if the patch_id is missing, ValidatePatch step will halt the build. For bug_id, it's theoretically possible to have missing bug_id though (e.g.: for security patch, if ews django app didn't send the bug_id for some reason).

However, it's possible for someone to define a new factory and add this build-step in some other order/manner, so it's probably fine to have this additional check.
Comment 5 Aakash Jain 2020-02-07 10:13:24 PST
Committed r256031: <https://trac.webkit.org/changeset/256031>
Comment 6 Radar WebKit Bug Importer 2020-02-07 10:14:17 PST
<rdar://problem/59263355>