New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 902967 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

[Findit] Cron job to scan all flake bugs and update their merging information

Project Member Reported by chanli@chromium.org, Nov 7

Issue description

Create a cron job to scan all open FlakeIssue entities and update their 'merge_destination' field if 1. the bug has been merged into another bug; 2. the bug's merge chain's final destination has changed.
 
Cc: chanli@chromium.org
 Issue 908274  has been merged into this issue.
Also add status, priority, last updated time
Project Member

Comment 3 by bugdroid1@chromium.org, Dec 18

The following revision refers to this bug:
  https://chromium.googlesource.com/infra/infra/+/0a55056a6a1c4590948acb655e0822d0766c3d75

commit 0a55056a6a1c4590948acb655e0822d0766c3d75
Author: Jeffrey Li <lijeffrey@chromium.org>
Date: Tue Dec 18 23:58:56 2018

[Findit] Cron job to sync FlakeIssues with Monorail

Syncs Findit's FlakeIssues with what's in Monorail.

1. Only bugs that have open statuses are updated, once they are closed
   they will no longer be queried for updates (as an initial version).
   Later, we should query closed issues as well within a time window
   to prevent too many issues needing updates or checking on issues that
   are too old.
2. If an existing FlakeIssue is merged in monorail (e.g. manually), a new
   corresponding FlakeIssue is created and impacted FlakeIssue
   merge_destination_keys are updated accordingly.
3. Updates status, labels, and last_updated_time_in_monorail for all
   issues that have changes that will be used for display purposes in
   Ranked Flakes.

Bug: 902967
Change-Id: I6ae69c30dd128e9dd51d312c02c1583cec5dd700
Reviewed-on: https://chromium-review.googlesource.com/c/1370562
Commit-Queue: Jeffrey Li <lijeffrey@chromium.org>
Reviewed-by: Chan Li <chanli@chromium.org>
Cr-Commit-Position: refs/heads/master@{#19651}
[modify] https://crrev.com/0a55056a6a1c4590948acb655e0822d0766c3d75/appengine/findit/dispatch.yaml
[add] https://crrev.com/0a55056a6a1c4590948acb655e0822d0766c3d75/appengine/findit/handlers/flake/update_open_flake_issues.py
[add] https://crrev.com/0a55056a6a1c4590948acb655e0822d0766c3d75/appengine/findit/handlers/flake/test/update_open_flake_issues_test.py
[modify] https://crrev.com/0a55056a6a1c4590948acb655e0822d0766c3d75/appengine/findit/services/test/flake_issue_util_test.py
[modify] https://crrev.com/0a55056a6a1c4590948acb655e0822d0766c3d75/appengine/findit/backend_main.py
[modify] https://crrev.com/0a55056a6a1c4590948acb655e0822d0766c3d75/appengine/findit/queue.yaml
[modify] https://crrev.com/0a55056a6a1c4590948acb655e0822d0766c3d75/appengine/findit/common/constants.py
[modify] https://crrev.com/0a55056a6a1c4590948acb655e0822d0766c3d75/appengine/findit/services/flake_issue_util.py
[modify] https://crrev.com/0a55056a6a1c4590948acb655e0822d0766c3d75/appengine/findit/cron.yaml

Sign in to add a comment