New issue
Advanced search Search tips

Issue 728903 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Jun 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

`gclient-new-workdir.py` fails with "No such file or directory"

Project Member Reported by lgar...@chromium.org, Jun 2 2017

Issue description

`gclient-new-workdir.py` is failing on all my machines (Mac, Linux).

It appears to do so while trying to do .a copy in btrfs, which was recently added in Issue 721585.

> gclient-new-workdir.py /Users/lgarron/chromium alt
Traceback (most recent call last):
  File "/Users/lgarron/Code/depot_tools/gclient-new-workdir.py", line 117, in <module>
    sys.exit(main())
  File "/Users/lgarron/Code/depot_tools/gclient-new-workdir.py", line 78, in main
    if try_vol_snapshot(args.repository, args.new_workdir):
  File "/Users/lgarron/Code/depot_tools/gclient-new-workdir.py", line 66, in try_vol_snapshot
    stderr=subprocess.STDOUT)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 535, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
 
Status: Started (was: Assigned)
Thanks for reporting this issue.
Can you see if this CL fixes it?
https://chromium-review.googlesource.com/c/522232/
Project Member

Comment 3 by bugdroid1@chromium.org, Jun 2 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/tools/depot_tools/+/2fa1203a22622a151df86f34704068b93ba84ee3

commit 2fa1203a22622a151df86f34704068b93ba84ee3
Author: Wei-Yin Chen (陳威尹) <wychen@chromium.org>
Date: Fri Jun 02 20:14:19 2017

Fix regression of gclient-new-workdir.py

gclient-new-workdir.py should work on systems not supporting reflink now.

Bug:  728903 , 721585
Change-Id: I1385c4281bbf61d4ccae64c3595a39972fbe9d9e
Reviewed-on: https://chromium-review.googlesource.com/522232
Commit-Queue: Wei-Yin Chen (陳威尹) <wychen@chromium.org>
Reviewed-by: Robbie Iannucci <iannucci@chromium.org>

[modify] https://crrev.com/2fa1203a22622a151df86f34704068b93ba84ee3/gclient-new-workdir.py

Status: Fixed (was: Started)

Sign in to add a comment