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

Issue 2303813002: Fix the YCM tests on Mac. (Closed)

Created:
4 years, 3 months ago by Sidney San Martín
Modified:
4 years, 3 months ago
Reviewers:
asanka
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix the YCM tests on Mac. macOS temporary directories (/tmp and /var/folders) are symlinks. This tripped up our YCM config and tests, which resolved symlinks with os.path.realpath in a few spots but not everywhere. Resolving symlinks doesn't seem to buy us anything, so this commit removes every use of os.path.realpath and makes things happy. BUG=643286 Committed: https://crrev.com/50d5177ecba5f3662f899a1972739571d25ffcc2 Cr-Commit-Position: refs/heads/master@{#417718}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Proper fix for symlinks in the path returned from tempfile.mkdtemp() #

Total comments: 2

Patch Set 3 : The proper^2 fix is actually to remove all uses of realpath #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -6 lines) Patch
M tools/vim/chromium.ycm_extra_conf.py View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M tools/vim/ninja_output.py View 1 1 chunk +2 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (7 generated)
Sidney San Martín
4 years, 3 months ago (2016-09-01 17:52:59 UTC) #2
asanka
https://codereview.chromium.org/2303813002/diff/1/tools/vim/tests/chromium.ycm_extra_conf_unittest.py File tools/vim/tests/chromium.ycm_extra_conf_unittest.py (right): https://codereview.chromium.org/2303813002/diff/1/tools/vim/tests/chromium.ycm_extra_conf_unittest.py#newcode77 tools/vim/tests/chromium.ycm_extra_conf_unittest.py:77: self.chrome_root = os.path.abspath(os.path.realpath( Why is this necessary on Mac?
4 years, 3 months ago (2016-09-01 18:20:58 UTC) #3
Sidney San Martín
https://codereview.chromium.org/2303813002/diff/1/tools/vim/tests/chromium.ycm_extra_conf_unittest.py File tools/vim/tests/chromium.ycm_extra_conf_unittest.py (right): https://codereview.chromium.org/2303813002/diff/1/tools/vim/tests/chromium.ycm_extra_conf_unittest.py#newcode77 tools/vim/tests/chromium.ycm_extra_conf_unittest.py:77: self.chrome_root = os.path.abspath(os.path.realpath( On 2016/09/01 18:20:58, asanka wrote: > ...
4 years, 3 months ago (2016-09-01 22:18:04 UTC) #5
asanka
On 2016/09/01 at 22:18:04, sdy wrote: > https://codereview.chromium.org/2303813002/diff/1/tools/vim/tests/chromium.ycm_extra_conf_unittest.py > File tools/vim/tests/chromium.ycm_extra_conf_unittest.py (right): > > https://codereview.chromium.org/2303813002/diff/1/tools/vim/tests/chromium.ycm_extra_conf_unittest.py#newcode77 ...
4 years, 3 months ago (2016-09-02 15:03:21 UTC) #6
asanka
Let's also fix GetNinjaOutputsForSourceFile to not rely on there not being symlinks in its input ...
4 years, 3 months ago (2016-09-02 15:05:14 UTC) #7
Sidney San Martín
Thanks for waiting! I wanted to come back to this when I had some time ...
4 years, 3 months ago (2016-09-09 14:55:49 UTC) #10
asanka
lgtm. thanks!
4 years, 3 months ago (2016-09-09 20:05:47 UTC) #11
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/2303813002/60001
4 years, 3 months ago (2016-09-09 20:44:03 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 3 months ago (2016-09-09 21:37:11 UTC) #15
commit-bot: I haz the power
4 years, 3 months ago (2016-09-09 21:39:24 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/50d5177ecba5f3662f899a1972739571d25ffcc2
Cr-Commit-Position: refs/heads/master@{#417718}

Powered by Google App Engine
This is Rietveld 408576698