Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ci/builders/linux_fuchsia.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
{
"name": "Upload to Symbol Server for arch: arm64",
"language": "python3",
"contexts": ["depot_tools_on_path"],
"script": "flutter/tools/fuchsia/upload_to_symbol_server.py",
"parameters": [
"--symbol-dir",
Expand Down Expand Up @@ -162,6 +163,7 @@
{
"name": "Upload to Symbol Server for arch: x64",
"language": "python3",
"contexts": ["depot_tools_on_path"],
"script": "flutter/tools/fuchsia/upload_to_symbol_server.py",
"parameters": [
"--symbol-dir",
Expand Down
11 changes: 8 additions & 3 deletions tools/fuchsia/upload_to_symbol_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,20 @@ def process_symbols(should_upload, symbol_dir):
for (dirpath, dirnames, filenames) in os.walk(full_path):
files.extend([os.path.join(dirpath, f) for f in filenames])

print('List of files to upload')
print('\n'.join(files))

# Remove dbg_files
files = [f for f in files if 'dbg_success' not in f]

for file in files:
remote_path = 'gs://%s/%s' % (
FUCHSIA_ARTIFACTS_BUCKET_NAME, remote_filename(file)
remote_path = 'gs://%s/%s/%s' % (
FUCHSIA_ARTIFACTS_BUCKET_NAME, FUCHSIA_ARTIFACTS_DEBUG_NAMESPACE,
remote_filename(file)
)
if should_upload:
command = 'gsutil cp %s %s' % (full_path, remote_path)
gsutil = os.path.join(os.environ['DEPOT_TOOLS'], 'gsutil.py')
command = ['python3', gsutil, '--', 'cp', gsutil, file, remote_path]
subprocess.check_call(command)
else:
print(remote_path)
Expand Down