Don't allow data and data_deps listing generated directories |
|||
Issue descriptiondata and data_deps allow listing directories. That's so far ok. However, if a directory is in the build out dir, then that's a problem: Consider a process that copies a bunch of files into the build out dir. Later, it copies fewer files. Now, incremental bots will still have the now-removed file sitting around, and due to the listed directory, the stale file will be zipped up and sent to swarming. That's bad for correctness, for build determinism, and for swarming cache rate (since otherwise identical builds now sometimes include that stale file and sometimes not). Here's a list of all the places where we put generated dirs in data_deps: https://cs.chromium.org/search/?q=%5Cbdata%5B%5E%5D%5D*%5C%22%5C$%5B%5E%22%5D*%5C/%5C%22+file:%5C.gn+pcre:yes&sq=package:chromium&type=cs It's not that many places. It looks feasible to make all those just explicitly list files and then forbid having dirs below generated dirs in data_deps.
,
Dec 11
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/bd9b00b3d439110133d7d434f81504ef8c7eb61d commit bd9b00b3d439110133d7d434f81504ef8c7eb61d Author: Nico Weber <thakis@chromium.org> Date: Tue Dec 11 18:47:28 2018 Remove explicit data dep on $root_out_dir/remoting/unittests/ directory. Listing a generated directory in the isolate means that incremental builders (and devs doing incremental builds) can have stale files in their generated isolated files. Since we already have data_deps on all these copy steps, the isolate already contains an explicit list of all files in that directory, and having a data line for the directory is not necessary. Just remove it. Bug: 912946 Change-Id: Id7232369905fb651227d5e913247271dd39a4211 Reviewed-on: https://chromium-review.googlesource.com/c/1368584 Reviewed-by: Joe Downing <joedow@chromium.org> Commit-Queue: Nico Weber <thakis@chromium.org> Cr-Commit-Position: refs/heads/master@{#615606} [modify] https://crrev.com/bd9b00b3d439110133d7d434f81504ef8c7eb61d/chrome/test/BUILD.gn [modify] https://crrev.com/bd9b00b3d439110133d7d434f81504ef8c7eb61d/remoting/webapp/files.gni
,
Jan 7
,
Jan 7
|
|||
►
Sign in to add a comment |
|||
Comment 1 by bugdroid1@chromium.org
, Dec 7