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

Issue 2605943002: Removing the mutation in the factories for getting dep repositories (Closed)

Created:
3 years, 11 months ago by wrengr
Modified:
3 years, 11 months ago
CC:
chromium-reviews, infra-reviews+infra_chromium.org
Target Ref:
refs/heads/master
Project:
infra
Visibility:
Public.

Description

Removing the mutation in the factories for getting dep repositories This CL also removes passing the main repository as an argument, since it was never actually used for the main repo it was only ever used as an ad-hoc factory. This CL addresses the first issues described in https://crrev.com/2608483002 BUG=677224 TBR=stgao@chromium.org Review-Url: https://codereview.chromium.org/2605943002 Committed: https://chromium.googlesource.com/infra/infra/+/49521996b621b7cdb4c070f15b171c38630f6f34

Patch Set 1 #

Total comments: 6

Patch Set 2 : Added the Factory method to CachedGitilesRepository #

Total comments: 11

Patch Set 3 : addressing nits and cleaning up #

Patch Set 4 : rebasing #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -182 lines) Patch
M appengine/findit/common/chrome_dependency_fetcher.py View 3 chunks +14 lines, -13 lines 0 comments Download
M appengine/findit/common/test/chrome_dependency_fetcher_test.py View 1 2 3 4 3 chunks +15 lines, -7 lines 0 comments Download
M appengine/findit/crash/changelist_classifier.py View 7 chunks +14 lines, -11 lines 0 comments Download
M appengine/findit/crash/crash_pipeline.py View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M appengine/findit/crash/findit.py View 3 chunks +15 lines, -10 lines 0 comments Download
M appengine/findit/crash/findit_for_chromecrash.py View 1 chunk +3 lines, -15 lines 0 comments Download
M appengine/findit/crash/findit_for_clusterfuzz.py View 1 chunk +2 lines, -2 lines 0 comments Download
M appengine/findit/crash/loglinear/changelist_classifier.py View 3 chunks +3 lines, -6 lines 0 comments Download
M appengine/findit/crash/loglinear/test/changelist_classifier_test.py View 1 2 2 chunks +5 lines, -17 lines 0 comments Download
M appengine/findit/crash/test/changelist_classifier_test.py View 3 chunks +15 lines, -18 lines 0 comments Download
M appengine/findit/crash/test/findit_for_chromecrash_test.py View 1 2 3 4 4 chunks +9 lines, -12 lines 0 comments Download
M appengine/findit/crash/test/findit_test.py View 3 chunks +5 lines, -3 lines 0 comments Download
M appengine/findit/handlers/crash/crash_handler.py View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M appengine/findit/handlers/crash/test/crash_handler_test.py View 4 chunks +6 lines, -3 lines 0 comments Download
M appengine/findit/libs/gitiles/gitiles_repository.py View 1 2 1 chunk +19 lines, -7 lines 0 comments Download
M appengine/findit/libs/gitiles/test/gitiles_repository_test.py View 1 chunk +0 lines, -7 lines 0 comments Download
M appengine/findit/util_scripts/crash_queries/delta_test/delta_util.py View 1 1 chunk +2 lines, -0 lines 0 comments Download
M appengine/findit/util_scripts/crash_queries/delta_test/run-delta-test.py View 1 1 chunk +1 line, -0 lines 0 comments Download
M appengine/findit/util_scripts/crash_queries/delta_test/run-predator.py View 1 1 chunk +1 line, -1 line 0 comments Download
M appengine/findit/util_scripts/git_checkout/local_git_repository.py View 1 2 2 chunks +8 lines, -18 lines 0 comments Download
M appengine/findit/util_scripts/git_checkout/test/local_git_parsers_test.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
M appengine/findit/util_scripts/git_checkout/test/local_git_repository_test.py View 1 2 2 chunks +10 lines, -22 lines 0 comments Download
M appengine/findit/waterfall/extract_deps_info_pipeline.py View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 14 (6 generated)
wrengr
This CL solves the other half of the issue about FindSuspects mutating the Repository object. ...
3 years, 11 months ago (2016-12-28 20:58:11 UTC) #3
Sharu Jiang
There is another place to clean. In run-predator.py under delta_test/, the LocalGitRepository() should be replaced ...
3 years, 11 months ago (2016-12-28 23:05:13 UTC) #4
wrengr
https://codereview.chromium.org/2605943002/diff/1/appengine/findit/crash/crash_pipeline.py File appengine/findit/crash/crash_pipeline.py (right): https://codereview.chromium.org/2605943002/diff/1/appengine/findit/crash/crash_pipeline.py#newcode90 appengine/findit/crash/crash_pipeline.py:90: def _CachedGitilesRepositoryFactory(repo_url): # pragma: no cover On 2016/12/28 23:05:12, ...
3 years, 11 months ago (2016-12-29 20:57:31 UTC) #5
Martin Barbella
lgtm
3 years, 11 months ago (2016-12-29 21:52:33 UTC) #6
Sharu Jiang
lgtm with comments. https://codereview.chromium.org/2605943002/diff/20001/appengine/findit/crash/crash_pipeline.py File appengine/findit/crash/crash_pipeline.py (right): https://codereview.chromium.org/2605943002/diff/20001/appengine/findit/crash/crash_pipeline.py#newcode95 appengine/findit/crash/crash_pipeline.py:95: CachedGitilesRepository.Factory(HttpClientAppengine())) This indentation is incorrect: https://google.github.io/styleguide/pyguide.html#Indentation ...
3 years, 11 months ago (2016-12-30 00:00:46 UTC) #7
wrengr
https://codereview.chromium.org/2605943002/diff/20001/appengine/findit/crash/crash_pipeline.py File appengine/findit/crash/crash_pipeline.py (right): https://codereview.chromium.org/2605943002/diff/20001/appengine/findit/crash/crash_pipeline.py#newcode95 appengine/findit/crash/crash_pipeline.py:95: CachedGitilesRepository.Factory(HttpClientAppengine())) On 2016/12/30 00:00:46, Sharu Jiang wrote: > This ...
3 years, 11 months ago (2017-01-03 19:01:02 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2605943002/80001
3 years, 11 months ago (2017-01-03 20:07:27 UTC) #11
commit-bot: I haz the power
3 years, 11 months ago (2017-01-03 20:16:18 UTC) #14
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/infra/infra/+/49521996b621b7cdb4c070f15b171...

Powered by Google App Engine
This is Rietveld 408576698