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

Issue 2399353002: Chromium-recipe: add rmtree before copy for llvm_tools_to_copy. (Closed)

Created:
4 years, 2 months ago by mmoroz
Modified:
4 years, 2 months ago
CC:
chromium-reviews, infra-reviews+build_chromium.org, kjellander-cc_chromium.org
Target Ref:
refs/heads/master
Project:
build
Visibility:
Public.

Description

Chromium-recipe: add rmtree before copy for llvm_tools_to_copy. BUG=636168

Patch Set 1 #

Patch Set 2 : Fix arguments. #

Patch Set 3 : Remove third_argument from rmtree call. #

Patch Set 4 : Rebase onto fresh master with reverted CL. #

Patch Set 5 : Added expected results generated by simulation test. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+2448 lines, -0 lines) Patch
M scripts/slave/recipe_modules/archive/api.py View 1 2 3 1 chunk +12 lines, -0 lines 4 comments Download
M scripts/slave/recipe_modules/archive/example.expected/cf_archiving_component.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipe_modules/archive/example.expected/cf_archiving_component_svn_with_git.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipe_modules/archive/example.expected/cf_archiving_linux.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipe_modules/archive/example.expected/cf_archiving_mac.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipe_modules/archive/example.expected/cf_archiving_svn_no_git.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipe_modules/archive/example.expected/cf_archiving_svn_with_git.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipe_modules/archive/example.expected/cf_archiving_win.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_fyi_CFI_Linux_CF.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_lkgr_ASAN_Debug.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_lkgr_ASAN_Release.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_lkgr_ASAN_Release_Media.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_lkgr_ASan_Debug__32_bit_x86_with_V8_ARM_.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_lkgr_ASan_Release_Media__32_bit_x86_with_V8_ARM_.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_lkgr_ASan_Release__32_bit_x86_with_V8_ARM_.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_lkgr_ChromiumOS_ASAN_Release.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_lkgr_MSAN_Release__chained_origins_.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_lkgr_MSAN_Release__no_origins_.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_lkgr_Mac_ASAN_Debug.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_lkgr_Mac_ASAN_Release.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_lkgr_Mac_ASAN_Release_Media.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_lkgr_TSAN_Debug.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_lkgr_TSAN_Release.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_lkgr_UBSan_Release.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_lkgr_UBSan_vptr_Release.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_lkgr_Win_ASan_Release.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_lkgr_Win_ASan_Release_Coverage.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_lkgr_Win_ASan_Release_Media.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_chromium_lkgr_Win_SyzyASAN_LKGR.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_client_v8_fyi_Chromium_ASAN___debug.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_client_v8_fyi_Chromium_ASAN__symbolized_.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium.expected/full_client_v8_fyi_Chromium_Win_SyzyASAN.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium_afl.expected/full_chromium_fyi_Afl_Upload_Linux_ASan.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium_libfuzzer.expected/full_chromium_fyi_Libfuzzer_Upload_Linux_ASan.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium_libfuzzer.expected/full_chromium_fyi_Libfuzzer_Upload_Linux_ASan_Debug.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium_libfuzzer.expected/full_chromium_fyi_Libfuzzer_Upload_Linux_MSan.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium_libfuzzer.expected/full_chromium_fyi_Libfuzzer_Upload_Linux_UBSan.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/chromium_libfuzzer.expected/full_chromium_fyi_Libfuzzer_Upload_Mac_ASan.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/v8.expected/full_client_v8_V8_Linux64_ASAN___debug_builder.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/v8.expected/full_client_v8_V8_Linux64_ASAN_arm64___debug_builder.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/v8.expected/full_client_v8_V8_Linux64_ASAN_no_inline___release_builder.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/v8.expected/full_client_v8_V8_Linux_ASAN_arm___debug_builder.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M scripts/slave/recipes/v8.expected/full_client_v8_V8_Linux_ASAN_mipsel___debug_builder.json View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
mmoroz
https://codereview.chromium.org/2399353002/diff/80001/scripts/slave/recipe_modules/archive/api.py File scripts/slave/recipe_modules/archive/api.py (right): https://codereview.chromium.org/2399353002/diff/80001/scripts/slave/recipe_modules/archive/api.py#newcode280 scripts/slave/recipe_modules/archive/api.py:280: self.m.file.rmtree('Purge ' + tool, I'm not sure that it ...
4 years, 2 months ago (2016-10-07 12:20:03 UTC) #2
tandrii(chromium)
https://codereview.chromium.org/2399353002/diff/80001/scripts/slave/recipe_modules/archive/api.py File scripts/slave/recipe_modules/archive/api.py (right): https://codereview.chromium.org/2399353002/diff/80001/scripts/slave/recipe_modules/archive/api.py#newcode280 scripts/slave/recipe_modules/archive/api.py:280: self.m.file.rmtree('Purge ' + tool, On 2016/10/07 12:20:02, mmoroz wrote: ...
4 years, 2 months ago (2016-10-07 12:23:31 UTC) #3
Oliver Chang
https://codereview.chromium.org/2399353002/diff/80001/scripts/slave/recipe_modules/archive/api.py File scripts/slave/recipe_modules/archive/api.py (right): https://codereview.chromium.org/2399353002/diff/80001/scripts/slave/recipe_modules/archive/api.py#newcode280 scripts/slave/recipe_modules/archive/api.py:280: self.m.file.rmtree('Purge ' + tool, On 2016/10/07 12:20:02, mmoroz wrote: ...
4 years, 2 months ago (2016-10-07 16:41:26 UTC) #4
mmoroz
https://codereview.chromium.org/2399353002/diff/80001/scripts/slave/recipe_modules/archive/api.py File scripts/slave/recipe_modules/archive/api.py (right): https://codereview.chromium.org/2399353002/diff/80001/scripts/slave/recipe_modules/archive/api.py#newcode280 scripts/slave/recipe_modules/archive/api.py:280: self.m.file.rmtree('Purge ' + tool, On 2016/10/07 16:41:26, Oliver Chang ...
4 years, 2 months ago (2016-10-07 16:50:22 UTC) #5
Oliver Chang
4 years, 2 months ago (2016-10-07 17:38:44 UTC) #6
On 2016/10/07 16:50:22, mmoroz wrote:
>
https://codereview.chromium.org/2399353002/diff/80001/scripts/slave/recipe_mo...
> File scripts/slave/recipe_modules/archive/api.py (right):
> 
>
https://codereview.chromium.org/2399353002/diff/80001/scripts/slave/recipe_mo...
> scripts/slave/recipe_modules/archive/api.py:280: self.m.file.rmtree('Purge ' +
> tool,
> On 2016/10/07 16:41:26, Oliver Chang wrote:
> > On 2016/10/07 12:20:02, mmoroz wrote:
> > > I'm not sure that it will work fine if the file doesn't exist. I've tried
to
> > add
> > > ignore_errors=True argument to the call, but got an error:
> > > 
> > > https://paste.googleplex.com/5613218135277568
> > 
> > Why rmtree, and not remove?
> > 
> > Also, did you figure out what was going wrong?
> > 
> > I see 2 errors (on lkgr only, and not on our libfuzzer bots):
> > 
> > shutil.Error:
> >
>
`/b/c/b/ASAN_Release/src/third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer`
> > and `/b/c/b/ASAN_Release/src/out/Release/llvm-symbolizer` are the same file
> > 
> > and
> > 
> > IOError: [Errno 2] No such file or directory:
> >
>
'C:\\b\\c\\b\\Win_SyzyASAN_LKGR\\src\\third_party\\llvm-build\\Release+Asserts\\bin\\llvm-symbolizer.exe'
> > 
> > on syzyasan win bots.
> > 
> > The first error is weird, as I think that would imply the one in
> llvm-symbolizer
> > is a hard link of llvm-symbolizer. Not sure why it happens only on LKGR
> builds.
> > 
> > For the second one, I think we'll need to check if the binary exists before
we
> > copy.
> > 
> > Maybe we should just add checks to make sure that the source exists, and the
> > destination doesn't, before doing the copy. The file recipe_module doesn't
> > actually pass your kwargs to the copy call:
> >
>
https://cs.chromium.org/chromium/build/scripts/slave/recipe_modules/file/api.py
> 
> Basically, I was working on this CL while waiting for someone to LGTM the
> revert. I thought that I could implement some good fix faster then get a LGTM
> for the revert. Since the revert has been landed, I would be happy to delete
> this CL and leave this problem up to you :)
> 
> 
> rmtree() because I haven't figured out that there is remove() function :)
> 
> Adding checks sounds good to me.

Created https://codereview.chromium.org/2394163006/. Closing this one.

Powered by Google App Engine
This is Rietveld 408576698