Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sxychenjing
engine
提交
ab434c55
E
engine
项目概览
sxychenjing
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
ab434c55
编写于
4月 06, 2020
作者:
K
Kaushik Iska
提交者:
GitHub
4月 06, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Revert "[tools][fuchsia] Do not tar debug symbol CIPD uploads (#17506)" (#17537)
This reverts commit
4b69cf2c
.
上级
19a7fbf0
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
15 addition
and
20 deletion
+15
-20
tools/fuchsia/merge_and_upload_debug_symbols.py
tools/fuchsia/merge_and_upload_debug_symbols.py
+15
-20
未找到文件。
tools/fuchsia/merge_and_upload_debug_symbols.py
浏览文件 @
ab434c55
...
...
@@ -73,22 +73,16 @@ def ProcessCIPDPackage(upload, cipd_yaml, engine_version, out_dir, target_arch):
if
tries
==
num_tries
-
1
:
raise
# Recursively hardlinks contents from one directory to another,
# skipping over collisions.
def
HardlinkContents
(
dirA
,
dirB
):
for
src_dir
,
_
,
filenames
in
os
.
walk
(
dirA
):
for
filename
in
filenames
:
src
=
os
.
path
.
join
(
src_dir
,
filename
)
dest_dir
=
os
.
path
.
join
(
dirB
,
os
.
path
.
relpath
(
src_dir
,
dirA
))
os
.
makedirs
(
dest_dir
,
exist_ok
=
True
)
dest
=
os
.
path
.
join
(
dest_dir
,
filename
)
if
os
.
path
.
exists
(
dest
):
# The last two path components provide a content address for a .build-id entry.
tokens
=
os
.
path
.
split
(
dest
)
name
=
os
.
path
.
join
(
tokens
[
-
2
],
tokens
[
-
1
])
print
(
'%s already exists in destination; skipping linking'
%
name
)
continue
os
.
link
(
src
,
dest
)
def
CreateTarFile
(
folder_path
,
base_dir
):
archive_name
=
os
.
path
.
basename
(
folder_path
)
tar_file_path
=
os
.
path
.
join
(
base_dir
,
archive_name
+
'.tar.bz2'
)
with
tarfile
.
open
(
tar_file_path
,
"w:bz2"
)
as
archive
:
for
root
,
dirs
,
_
in
os
.
walk
(
folder_path
):
for
dir_name
in
dirs
:
dir_path
=
os
.
path
.
join
(
root
,
dir_name
)
archive
.
add
(
dir_path
,
arcname
=
dir_name
)
return
tar_file_path
def
main
():
parser
=
argparse
.
ArgumentParser
()
...
...
@@ -120,17 +114,18 @@ def main():
for
symbol_dir
in
symbol_dirs
:
assert
os
.
path
.
exists
(
symbol_dir
)
and
os
.
path
.
isdir
(
symbol_dir
)
out_dir
=
args
.
out_dir
arch
=
args
.
target_arch
out_dir
=
os
.
path
.
join
(
args
.
out_dir
,
'flutter-fuchsia-debug-symbols-%s'
%
arch
)
if
os
.
path
.
exists
(
out_dir
):
print
'Directory: %s is not empty, deleting it.'
%
out_dir
shutil
.
rmtree
(
out_dir
)
os
.
makedirs
(
out_dir
)
for
symbol_dir
in
symbol_dirs
:
HardlinkContents
(
symbol_dir
,
out_dir
)
archive_path
=
CreateTarFile
(
symbol_dir
,
out_dir
)
print
(
'Created archive: '
+
archive_path
)
arch
=
args
.
target_arch
cipd_def
=
WriteCIPDDefinition
(
arch
,
out_dir
)
ProcessCIPDPackage
(
args
.
upload
,
cipd_def
,
args
.
engine_version
,
out_dir
,
arch
)
return
0
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录