New issue
Advanced search Search tips

Issue 625877 link

Starred by 5 users

Issue metadata

Status: Fixed
Owner:
Closed: Jul 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

Stale .pyc files in webkitpy can lead to failures.

Project Member Reported by qyears...@chromium.org, Jul 5 2016

Issue description

For example, after http://crrev.com/2112133002, which removed a member of webkitpy.common.config.urls previously used by webkitpy.common.net.buildbot, running layout tests, caused an error:

  File "./third_party/WebKit/Tools/Scripts/webkitpy/common/net/buildbot/buildbot.py", line 222, in BuildBot
AttributeError: 'module' object has no attribute 'chromium_buildbot_url'

This caused several people to see errors and waste some time --  bug 625594  and  bug 625869 .

Dirk noted in http://crrev.com/2112133002:

> We have presubmit checks and hooks that clean up stale .pyc files in various places in the repo. We should check and make sure we have one for webkitpy as well.
 
Cc: primiano@chromium.org qyears...@chromium.org
 Issue 625594  has been merged into this issue.
Cc: xidac...@chromium.org
 Issue 625869  has been merged into this issue.
Cc: -xidac...@chromium.org mlamouri@chromium.org
This sounds like the kind of issues we should have avoided and we might want to find a fix ASAP. US folks coming back from their 4-day week-end might waste a lot of time trying to understand what's happening here.
Cc: xidac...@chromium.org
(sorry, didn't mean to remove xidachen@)

Comment 5 by pdr@chromium.org, Jul 5 2016

"rm third_party/WebKit/Tools/Scripts/webkitpy/common/net/buildbot/__init__.pyc" seems to workaround this issue.
Cc: -qyears...@chromium.org
Owner: qyears...@chromium.org
Status: Assigned (was: Available)
https://cs.chromium.org/chromium/src/tools/remove_stale_pyc_files.py looks very relevant; it's currently only being used here: https://cs.chromium.org/chromium/src/DEPS?l=537
FYI, I think this also breaks Tools/Scripts/lint-test-expectations which runs on presubmit if your patch includes a change to LayoutTests/TestExpectations.
+1 developer bitten by this, who spent too much time discovering this bug.
Project Member

Comment 9 by bugdroid1@chromium.org, Jul 8 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/dfda207ba80f0a5989c727e0b9ed08bb918db72f

commit dfda207ba80f0a5989c727e0b9ed08bb918db72f
Author: qyearsley <qyearsley@chromium.org>
Date: Fri Jul 08 14:16:12 2016

Add hook to run remove_stale_pyc_files for WebKit/Tools/Scripts.

I believe that this will clear unwanted pyc files when `gclient sync` is run, which may prevent people from hitting  http://crbug.com/625877 .

I tested this by adding a bogus pyc file to WebKit/Tools/Scripts and running gclient sync, which deleted it.

BUG= 625877 

Review-Url: https://codereview.chromium.org/2124273004
Cr-Commit-Position: refs/heads/master@{#404363}

[modify] https://crrev.com/dfda207ba80f0a5989c727e0b9ed08bb918db72f/DEPS

Status: Fixed (was: Assigned)
I believe that this is fixed now, assuming that people generally regularly run gclient sync; please re-open if it's still an issue.
Yes, I can confirm that I had this issue until I synced past the the commit in #9 which fixed things. Thank you for the fix :)

Sign in to add a comment