Bug 208920 - [ews] Resubmit patches to commit-queue which were cq- by commit-queue and later cq+
Summary: [ews] Resubmit patches to commit-queue which were cq- by commit-queue and lat...
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-03-11 08:56 PDT by Aakash Jain
Modified: 2020-03-18 07:44 PDT (History)
4 users (show)

See Also:


Attachments
WIP (6.71 KB, patch)
2020-03-11 09:08 PDT, Aakash Jain
no flags Details | Formatted Diff | Diff
Patch (9.70 KB, patch)
2020-03-17 12:47 PDT, Aakash Jain
no flags Details | Formatted Diff | Diff
Patch (9.51 KB, patch)
2020-03-17 14:32 PDT, Aakash Jain
no flags 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-03-11 08:56:38 PDT
EWS django app should resubmit patches to commit-queue which were cq- by commit-queue (e.g.: due to flaky test failure) and later were cq+. Currently ews django app does not re-submit any patch, it sends the patch to buildbot only once. Because of this is a patch which was rejected by commit-queue, and later cq+ again by patch author, would not be picked up again.
Comment 1 Aakash Jain 2020-03-11 09:08:42 PDT
Created attachment 393247 [details]
WIP
Comment 2 Aakash Jain 2020-03-17 12:47:50 PDT
Created attachment 393778 [details]
Patch
Comment 3 Jonathan Bedard 2020-03-17 13:44:39 PDT
Comment on attachment 393778 [details]
Patch

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

> Tools/BuildSlaveSupport/ews-app/ews/fetcher.py:106
>      def patches_to_send_to_buildbot(self, patch_ids, commit_queue=False):

If we are adding a new 'patches_to_send_to_commit_queue' function, what's the point of this flag?

> Tools/BuildSlaveSupport/ews-app/ews/common/bugzilla.py:67
> +    def convert_iso_timestamp(cls, iso_timestamp):

Nit: Not convinced that this should be a separate function, I would have put the logic in the above function.

> Tools/BuildSlaveSupport/ews-app/ews/common/buildbot.py:-102
> -        return Buildbot.icons_for_queues_mapping

I think this deletion was unintentional.

> Tools/BuildSlaveSupport/ews-app/ews/common/buildbot.py:104
> +    def fetch_builders(cls):

Do we ever intend to call this outside of update_builder_name_to_id_mapping? Seems like we should consider putting the contents inside that function
Comment 4 Aakash Jain 2020-03-17 14:32:02 PDT
Created attachment 393788 [details]
Patch
Comment 5 Aakash Jain 2020-03-17 14:35:36 PDT
(In reply to Jonathan Bedard from comment #3)
> If we are adding a new 'patches_to_send_to_commit_queue' function, what's the point of this flag?
Removed in updated patch

> Nit: Not convinced that this should be a separate function, I would have put the logic in the above function.
Moved inside same function.

> > -        return Buildbot.icons_for_queues_mapping
> I think this deletion was unintentional.
It was actually intentional. The return value is never used and the function name also doesn't indicate that the function will return anything.

> Do we ever intend to call this outside of update_builder_name_to_id_mapping? Seems like we should consider putting the contents inside that function
Done in updated patch.
Comment 6 EWS 2020-03-17 17:01:48 PDT
Committed r258611: <https://trac.webkit.org/changeset/258611>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 393788 [details].
Comment 7 Radar WebKit Bug Importer 2020-03-17 17:02:16 PDT
<rdar://problem/60561892>