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

Issue 621533002: Added orphaned compiled Python file checks. (Closed)

Created:
6 years, 2 months ago by dnj
Modified:
6 years, 1 month ago
Reviewers:
iannucci, Nico, szager1
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, iannucci+depot_tools_chromium.org
Project:
tools
Visibility:
Public.

Description

Added orphaned compiled Python file checks. There have been a handful of cases where orphaned compiled Python files (.pyc files without an accompanying .py file) have been loaded preferentially by the presubmit scripts, causing weird problems. This adds a check and a mode for such files, either warning the user or deleting them. BUG=None TEST=local - Tested against local repository. R=iannucci@chromium.org, szager@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=292703

Patch Set 1 #

Total comments: 4

Patch Set 2 : Updated tests w/ suggestions. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -3 lines) Patch
M presubmit_support.py View 1 5 chunks +48 lines, -2 lines 0 comments Download
M tests/presubmit_unittest.py View 1 8 chunks +93 lines, -1 line 0 comments Download

Messages

Total messages: 11 (2 generated)
dnj
Shot at a check to ensure errant "pyc" files don't silently ruin presubmit runs.
6 years, 2 months ago (2014-09-30 21:31:00 UTC) #1
dnj
le ping
6 years, 1 month ago (2014-10-27 19:13:27 UTC) #2
szager1
lgtm with nits https://codereview.chromium.org/621533002/diff/1/tests/presubmit_unittest.py File tests/presubmit_unittest.py (right): https://codereview.chromium.org/621533002/diff/1/tests/presubmit_unittest.py#newcode139 tests/presubmit_unittest.py:139: self.UnMock(presubmit.os, 'walk') Can you group this ...
6 years, 1 month ago (2014-10-28 17:08:14 UTC) #3
dnj
https://codereview.chromium.org/621533002/diff/1/tests/presubmit_unittest.py File tests/presubmit_unittest.py (right): https://codereview.chromium.org/621533002/diff/1/tests/presubmit_unittest.py#newcode139 tests/presubmit_unittest.py:139: self.UnMock(presubmit.os, 'walk') On 2014/10/28 17:08:14, szager1 wrote: > Can ...
6 years, 1 month ago (2014-10-28 18:37:35 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/621533002/20001
6 years, 1 month ago (2014-10-28 19:28:03 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001) as 292703
6 years, 1 month ago (2014-10-28 19:29:56 UTC) #7
Nico
Uploading has been very very slow for me at times. Every time I ctrl-c it ...
6 years, 1 month ago (2014-11-03 23:31:13 UTC) #9
dnj
On 2014/11/03 23:31:13, Nico wrote: > Uploading has been very very slow for me at ...
6 years, 1 month ago (2014-11-04 00:08:28 UTC) #10
Nico
6 years, 1 month ago (2014-11-04 00:11:23 UTC) #11
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/701683002/ by thakis@chromium.org.

The reason for reverting is: Makes `git cl upload` very slow in chrome
checkouts..

Powered by Google App Engine
This is Rietveld 408576698