New issue
Advanced search Search tips

Issue 843840 link

Starred by 4 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Fuchsia
Pri: 1
Type: Bug



Sign in to add a comment

swarming bots fail to download isolates with files without write permission

Project Member Reported by sergeyu@chromium.org, May 17 2018

Issue description

See webkit_layout_tests failure in
https://ci.chromium.org/p/chromium/builders/luci.chromium.try/fuchsia_x64/21853

4957 2018-05-16 23:01:36.077 E: internal failure: [Errno 13] Permission denied: '/b/s/w/ir/third_party/fuchsia-sdk/sdk/qemu/bin/ivshmem-client'
Traceback (most recent call last):
  File "/b/s/swarming_bot.1.zip/client/run_isolated.py", line 688, in map_and_run
    use_symlinks=data.use_symlinks)
  File "/b/s/swarming_bot.1.zip/client/run_isolated.py", line 483, in fetch_and_map
    use_symlinks=use_symlinks)
  File "/b/s/swarming_bot.1.zip/client/isolateserver.py", line 1809, in fetch_isolated
    putfile(ifd, fp, file_mode, ti.size)
  File "/b/s/swarming_bot.1.zip/client/isolateserver.py", line 250, in putfile
    with fs.open(dstpath, 'wb') as dstfileobj:
  File "/b/s/swarming_bot.1.zip/utils/fs.py", line 234, in open
    return __builtin__.open(extend(path), *args, **kwargs)
IOError: [Errno 13] Permission denied: '/b/s/w/ir/third_party/fuchsia-sdk/sdk/qemu/bin/ivshmem-client'
Sending the crash report ... done.

As far as I can tell this happens because webkit_layout_tests depends on 2 Fuchsia targets: //content/shell:content_shell_fuchsia and //build/fuchsia/layout_test_proxy:layout_test_proxy_runner and both of these targets have //third_party/fuchsia-sdk/sdk in runtime_deps . Some files in the sdk dir have r-x permissions, i.e. they are not writable. As result the script fails to write them when trying to write second duplicate of these files.

 

Comment 1 by mar...@chromium.org, May 17 2018

Labels: -Pri-2 Pri-1
Owner: mar...@chromium.org
Status: Assigned (was: Untriaged)
Ugh, the only thing I can think of is that the isolate go archiver incorrectly package a file multiple times. I'll look at the task tomorrow morning, otherwise I can revert https://chromium.googlesource.com/infra/luci/luci-py.git/+/a2c9980f9c3ae27a7b44fd5e1b04ac469e70636f temporarily.

https://chromium-swarm.appspot.com/task?id=3d8400f556ea9c10
FYI this happened in tryjobs for this CL: https://chromium-review.googlesource.com/c/chromium/src/+/1056187 - you can use this CL to repro this problem.
We don't have these tests enabled on the bots, so I don't think you need to revert anything.

Sign in to add a comment