I'm trying to update my Chromium checkout (host=Linux, target=Windows), but seem stuck on an issue when running the `ciopfs_linux` hook within Dawn (triggered by gclient runhooks/sync).
Last time I made a successful build on this machine was with a checkout from end of November 2022. Today I updated my checkout using `git rebase-update` and `gclient sync`, along with updating my MSVC toolchain, and started facing this issue.
alesandro@chromium-build-9:~/chromium/cr/src$ gclient runhooks
Updating depot_tools...
using /run/user/1001/goma_alesandro as tmpdir
compiler_proxy is not running
Running hooks: 83% (115/137) ciopfs_linux
________ running 'download_from_google_storage --no_resume --no_auth --bucket chromium-browser-clang/ciopfs -s build/ciopfs.sha1' in '/home/alesandro/chromium/cr/src/third_party/dawn'
Fatal error: build/ciopfs.sha1 not found when attempting enumerate files to download.
Error: Command 'download_from_google_storage --no_resume --no_auth --bucket chromium-browser-clang/ciopfs -s build/ciopfs.sha1' returned non-zero exit status 1 in /home/alesandro/chromium/cr/src/third_party/dawn
Fatal error: build/ciopfs.sha1 not found when attempting enumerate files to download.
(same relevant output with gclient sync vs. gclient runhooks, the issue is when running the hooks)
The Dawn ciopfs_linux hook seems to have been added [1] within the past 24 hours to the dawn DEPS file.
However, a similar hook has also been present in the main DEPS [2] file since 2018 and seemed to work in the past.
The local file does exist relative to the top-level checkout directory:
alesandro@chromium-build-9:~/chromium/cr/src$ cat build/ciopfs.sha1
5454b3c4f1c9992047e7ae9d6d14d5b49b1b12f3
The issue seems to be that the working directory is /home/alesandro/chromium/cr/src/third_party/dawn instead of /home/alesandro/chromium/cr/src when running depot_tools' download_from_google_storage.py. This is based on output of os.getcwd() within /home/alesandro/chromium/depot_tools/download_from_google_storage.py (which is the Python script that is run in this case).