Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Issue 1866883002: [Findit] A huge refactoring and some bug fixing. (Closed)

Created:
4 years, 8 months ago by stgao
Modified:
4 years, 8 months ago
Reviewers:
lijeffrey
CC:
chromium-reviews, infra-reviews+infra_chromium.org, chanli, Sharu Jiang
Base URL:
https://chromium.googlesource.com/infra/infra.git@master
Target Ref:
refs/heads/master
Project:
infra
Visibility:
Public.

Description

[Findit] A huge refactoring and some bug fixing. The refactoring is a preparation to merge Findit for ClusterFuzz into the findit-for-me app and for the integration with Fracas. Refacoring includes: 1. Separate the waterfall-frontend from the default module. 2. Use dispatch to route requests to the appropriate modules. 3. Refactor wf_analysis_result_status and wf_analysis_status and removed dead code there. 4. Use constants and remove scattered hard-coded strings for queue names, module names, and urls. 5. Setup new task queues with clear names. 6. Use a new app id for testing findit-for-me-dev. Functional change: 1. Update util_scripts/run.sh to: * Enforce USER name as version for testing deployment * Make it possible to deploy to prod for staging testing * Provide commands to update task queue, cron job, and dispatch 2. Add links to step log back to build_failure.html page. Bug fixing: 1. Fix versioned_model when no entity is available yet. 2. Fix a bug in handlers/handlers_util.py BUG=600460 Committed: https://chromium.googlesource.com/infra/infra/+/b72a1b8cd1f0d3429ae8e781126596c4242ff23c

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fix nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+605 lines, -602 lines) Patch
M appengine/findit/app.yaml View 3 chunks +7 lines, -6 lines 0 comments Download
D appengine/findit/build-failure-analysis.yaml View 1 chunk +0 lines, -47 lines 0 comments Download
A appengine/findit/common/constants.py View 1 chunk +20 lines, -0 lines 0 comments Download
A + appengine/findit/common/findit_testcase.py View 1 chunk +6 lines, -5 lines 0 comments Download
A appengine/findit/dispatch.yaml View 1 chunk +12 lines, -0 lines 0 comments Download
M appengine/findit/findit_api.py View 4 chunks +6 lines, -9 lines 0 comments Download
M appengine/findit/handlers/build_failure.py View 3 chunks +5 lines, -5 lines 0 comments Download
M appengine/findit/handlers/check_duplicate_failures.py View 7 chunks +13 lines, -13 lines 0 comments Download
M appengine/findit/handlers/handlers_util.py View 3 chunks +3 lines, -3 lines 0 comments Download
M appengine/findit/handlers/list_analyses.py View 2 chunks +5 lines, -5 lines 0 comments Download
M appengine/findit/handlers/monitor_alerts.py View 3 chunks +4 lines, -6 lines 0 comments Download
M appengine/findit/handlers/result_status.py View 2 chunks +8 lines, -8 lines 0 comments Download
M appengine/findit/handlers/test/build_failure_test.py View 12 chunks +12 lines, -12 lines 0 comments Download
M appengine/findit/handlers/test/check_duplicate_failures_test.py View 9 chunks +36 lines, -36 lines 0 comments Download
M appengine/findit/handlers/test/handlers_util_test.py View 28 chunks +30 lines, -30 lines 0 comments Download
M appengine/findit/handlers/test/list_analyses_test.py View 18 chunks +27 lines, -27 lines 0 comments Download
M appengine/findit/handlers/test/monitor_alerts_test.py View 2 chunks +2 lines, -1 line 0 comments Download
M appengine/findit/handlers/test/triage_analysis_test.py View 7 chunks +11 lines, -11 lines 0 comments Download
M appengine/findit/handlers/triage_analysis.py View 2 chunks +5 lines, -5 lines 0 comments Download
M appengine/findit/handlers/trigger_analyses.py View 2 chunks +2 lines, -4 lines 0 comments Download
M appengine/findit/main.py View 2 chunks +33 lines, -24 lines 0 comments Download
A appengine/findit/model/analysis_status.py View 1 chunk +21 lines, -0 lines 0 comments Download
A + appengine/findit/model/result_status.py View 2 chunks +4 lines, -2 lines 0 comments Download
M appengine/findit/model/test/versioned_model_test.py View 1 chunk +3 lines, -0 lines 0 comments Download
M appengine/findit/model/test/wf_analysis_test.py View 1 chunk +36 lines, -36 lines 0 comments Download
M appengine/findit/model/test/wf_try_job_test.py View 1 chunk +6 lines, -6 lines 0 comments Download
M appengine/findit/model/versioned_model.py View 1 chunk +4 lines, -1 line 0 comments Download
M appengine/findit/model/wf_analysis.py View 6 chunks +14 lines, -14 lines 0 comments Download
D appengine/findit/model/wf_analysis_result_status.py View 1 chunk +0 lines, -25 lines 0 comments Download
D appengine/findit/model/wf_analysis_status.py View 1 chunk +0 lines, -37 lines 0 comments Download
M appengine/findit/model/wf_swarming_task.py View 2 chunks +2 lines, -2 lines 0 comments Download
M appengine/findit/model/wf_try_job.py View 3 chunks +4 lines, -4 lines 0 comments Download
M appengine/findit/queue.yaml View 2 chunks +28 lines, -1 line 0 comments Download
M appengine/findit/templates/build_failure.html View 5 chunks +12 lines, -5 lines 0 comments Download
M appengine/findit/templates/config.html View 2 chunks +9 lines, -15 lines 0 comments Download
M appengine/findit/templates/home.html View 1 chunk +4 lines, -4 lines 0 comments Download
M appengine/findit/templates/list_analyses.html View 2 chunks +3 lines, -3 lines 0 comments Download
M appengine/findit/test/findit_api_test.py View 7 chunks +7 lines, -7 lines 0 comments Download
M appengine/findit/util_scripts/remote_queries/swarming_task_data_query.py View 3 chunks +3 lines, -3 lines 0 comments Download
M appengine/findit/util_scripts/run.sh View 1 4 chunks +81 lines, -49 lines 0 comments Download
A + appengine/findit/waterfall-backend.yaml View 1 chunk +2 lines, -2 lines 0 comments Download
A + appengine/findit/waterfall-frontend.yaml View 1 chunk +8 lines, -18 lines 0 comments Download
M appengine/findit/waterfall/analyze_build_failure_pipeline.py View 3 chunks +3 lines, -3 lines 0 comments Download
M appengine/findit/waterfall/build_failure_analysis_pipelines.py View 5 chunks +6 lines, -5 lines 0 comments Download
M appengine/findit/waterfall/identify_culprit_pipeline.py View 3 chunks +5 lines, -5 lines 0 comments Download
M appengine/findit/waterfall/identify_try_job_culprit_pipeline.py View 2 chunks +2 lines, -2 lines 0 comments Download
M appengine/findit/waterfall/monitor_try_job_pipeline.py View 2 chunks +2 lines, -2 lines 0 comments Download
M appengine/findit/waterfall/process_swarming_task_result_pipeline.py View 4 chunks +5 lines, -5 lines 0 comments Download
M appengine/findit/waterfall/run_try_job_for_reliable_failure_pipeline.py View 4 chunks +5 lines, -8 lines 0 comments Download
M appengine/findit/waterfall/test/analyze_build_failure_pipeline_test.py View 7 chunks +8 lines, -7 lines 0 comments Download
M appengine/findit/waterfall/test/build_failure_analysis_pipelines_test.py View 11 chunks +12 lines, -11 lines 0 comments Download
M appengine/findit/waterfall/test/detect_first_failure_pipeline_test.py View 7 chunks +7 lines, -7 lines 0 comments Download
M appengine/findit/waterfall/test/identify_culprit_pipeline_test.py View 5 chunks +6 lines, -6 lines 0 comments Download
M appengine/findit/waterfall/test/identify_try_job_culprit_pipeline_test.py View 10 chunks +10 lines, -10 lines 0 comments Download
M appengine/findit/waterfall/test/monitor_try_job_pipeline_test.py View 6 chunks +6 lines, -6 lines 0 comments Download
M appengine/findit/waterfall/test/process_swarming_task_result_pipeline_test.py View 4 chunks +4 lines, -4 lines 0 comments Download
M appengine/findit/waterfall/test/run_try_job_for_reliable_failure_pipeline_test.py View 2 chunks +2 lines, -2 lines 0 comments Download
M appengine/findit/waterfall/test/trigger_swarming_task_pipeline_test.py View 3 chunks +5 lines, -5 lines 0 comments Download
M appengine/findit/waterfall/test/try_job_pipeline_test.py View 2 chunks +2 lines, -2 lines 0 comments Download
M appengine/findit/waterfall/test/try_job_util_test.py View 4 chunks +4 lines, -4 lines 0 comments Download
M appengine/findit/waterfall/test/wf_testcase.py View 2 chunks +2 lines, -2 lines 0 comments Download
M appengine/findit/waterfall/trigger_swarming_task_pipeline.py View 2 chunks +2 lines, -2 lines 0 comments Download
M appengine/findit/waterfall/try_job_pipeline.py View 2 chunks +2 lines, -2 lines 0 comments Download
M appengine/findit/waterfall/try_job_util.py View 3 chunks +7 lines, -11 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 16 (11 generated)
stgao
ptal
4 years, 8 months ago (2016-04-07 00:17:34 UTC) #3
lijeffrey
lgtm https://codereview.chromium.org/1866883002/diff/1/appengine/findit/queue.yaml File appengine/findit/queue.yaml (left): https://codereview.chromium.org/1866883002/diff/1/appengine/findit/queue.yaml#oldcode26 appengine/findit/queue.yaml:26: min_backoff_seconds: 5 Is this not needed anymore? https://codereview.chromium.org/1866883002/diff/1/appengine/findit/util_scripts/run.sh ...
4 years, 8 months ago (2016-04-07 02:57:30 UTC) #10
stgao
https://codereview.chromium.org/1866883002/diff/1/appengine/findit/queue.yaml File appengine/findit/queue.yaml (left): https://codereview.chromium.org/1866883002/diff/1/appengine/findit/queue.yaml#oldcode26 appengine/findit/queue.yaml:26: min_backoff_seconds: 5 On 2016/04/07 02:57:30, lijeffrey wrote: > Is ...
4 years, 8 months ago (2016-04-07 04:46:04 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1866883002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1866883002/20001
4 years, 8 months ago (2016-04-07 04:46:25 UTC) #14
commit-bot: I haz the power
4 years, 8 months ago (2016-04-07 06:31:15 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/infra/infra/+/b72a1b8cd1f0d3429ae8e78112659...

Powered by Google App Engine
This is Rietveld 408576698