Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(408)

Issue 1896903002: [GN/iOS] Explicitly list test data in net_unittests_bundle_data. (Closed)

Created:
4 years, 8 months ago by sdefresne
Modified:
4 years, 7 months ago
CC:
cbentzel+watch_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@gn-fix-tests-ui-gfx
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[GN/iOS] Explicitly list test data in net_unittests_bundle_data. Since timestamp of directory is not always updated when the content is changed (e.g. when a file content is changed, ...) listing just the directory lead to flaky incremental builds and bot failures. Explicitly list all test data files to fix those flakes in net.gypi and use those list in both gyp and gn. Document how the list have been generated inline in net.gypi. BUG=459705 Committed: https://crrev.com/04f9114d3168d9e59830a22d68547e06dbf9409e Cr-Commit-Position: refs/heads/master@{#388725}

Patch Set 1 #

Patch Set 2 : Add test_support_bundle_data #

Patch Set 3 : List all the files used (previous patchset incorrectly list just a subset) #

Patch Set 4 : Define the file list in net/net.gypi and sync gyp & gn #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+1173 lines, -44 lines) Patch
M components/security_state/BUILD.gn View 1 2 chunks +0 lines, -13 lines 0 comments Download
M net/BUILD.gn View 1 2 3 4 chunks +7 lines, -19 lines 4 comments Download
M net/net.gyp View 1 2 3 1 chunk +2 lines, -12 lines 0 comments Download
M net/net.gypi View 1 2 3 1 chunk +1164 lines, -0 lines 1 comment Download

Dependent Patchsets:

Messages

Total messages: 29 (6 generated)
sdefresne
Please take a look. See https://codereview.chromium.org/1889483003 for explanation of why it is required to explicitly ...
4 years, 8 months ago (2016-04-18 17:14:41 UTC) #2
davidben
Hrmf, that's a nuisance. Why does GN even support depending on directories if it doesn't ...
4 years, 8 months ago (2016-04-18 18:02:04 UTC) #4
Ryan Sleevi
I didn't see an explanation why we couldn't/shouldn't fix GN. Did I miss it?
4 years, 8 months ago (2016-04-18 18:07:49 UTC) #5
eroman
+1 If this is specifically an implementation issue with GN + iOS rather than an ...
4 years, 8 months ago (2016-04-18 18:20:54 UTC) #6
sdefresne
bundle_data does support listing a directory. This ends up generating a ninja build rule that ...
4 years, 8 months ago (2016-04-19 08:27:38 UTC) #8
brettw
On 2016/04/19 08:27:38, sdefresne wrote: > bundle_data does support listing a directory. This ends up ...
4 years, 8 months ago (2016-04-19 18:16:12 UTC) #9
sdefresne
davidben/eroman/rsleevi: what do you think about this CL given the extra information?
4 years, 8 months ago (2016-04-19 19:01:27 UTC) #10
eroman
Previously "data/ssl/certificates" was a data dependency of //net:test_support, whereas now it is just a data ...
4 years, 8 months ago (2016-04-19 19:21:10 UTC) #11
sdefresne
On 2016/04/19 at 19:21:10, eroman wrote: > Previously "data/ssl/certificates" was a data dependency of //net:test_support, ...
4 years, 8 months ago (2016-04-20 07:17:25 UTC) #12
Ryan Sleevi
On 2016/04/20 07:17:25, sdefresne wrote: > No source file in //net:test_support directly load any data ...
4 years, 8 months ago (2016-04-20 08:01:21 UTC) #13
sdefresne
On 2016/04/20 at 08:01:21, rsleevi wrote: > On 2016/04/20 07:17:25, sdefresne wrote: > > No ...
4 years, 8 months ago (2016-04-20 08:11:23 UTC) #14
sdefresne
Please take another look.
4 years, 8 months ago (2016-04-20 10:15:03 UTC) #15
eroman
https://codereview.chromium.org/1896903002/diff/60001/net/BUILD.gn File net/BUILD.gn (right): https://codereview.chromium.org/1896903002/diff/60001/net/BUILD.gn#newcode1451 net/BUILD.gn:1451: "data/", Why are these not a problem? The current ...
4 years, 8 months ago (2016-04-20 18:04:05 UTC) #17
eroman
https://codereview.chromium.org/1896903002/diff/60001/net/BUILD.gn File net/BUILD.gn (right): https://codereview.chromium.org/1896903002/diff/60001/net/BUILD.gn#newcode1451 net/BUILD.gn:1451: "data/", On 2016/04/20 18:04:05, eroman wrote: > Why are ...
4 years, 8 months ago (2016-04-20 18:11:01 UTC) #18
sdefresne
https://codereview.chromium.org/1896903002/diff/60001/net/BUILD.gn File net/BUILD.gn (right): https://codereview.chromium.org/1896903002/diff/60001/net/BUILD.gn#newcode1451 net/BUILD.gn:1451: "data/", On 2016/04/20 at 18:04:05, eroman wrote: > Why ...
4 years, 8 months ago (2016-04-20 18:13:51 UTC) #19
sdefresne
https://codereview.chromium.org/1896903002/diff/60001/net/BUILD.gn File net/BUILD.gn (right): https://codereview.chromium.org/1896903002/diff/60001/net/BUILD.gn#newcode1451 net/BUILD.gn:1451: "data/", On 2016/04/20 at 18:11:00, eroman wrote: > On ...
4 years, 8 months ago (2016-04-20 18:21:02 UTC) #20
eroman
Thanks for explaining. LGTM then, to fix iOS build. Hopefully we can unify this into ...
4 years, 8 months ago (2016-04-20 21:55:50 UTC) #21
sdefresne
Thank you for the review.
4 years, 8 months ago (2016-04-21 08:37:45 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1896903002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1896903002/60001
4 years, 8 months ago (2016-04-21 08:38:02 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-21 08:42:09 UTC) #25
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/04f9114d3168d9e59830a22d68547e06dbf9409e Cr-Commit-Position: refs/heads/master@{#388725}
4 years, 8 months ago (2016-04-22 19:32:48 UTC) #27
eroman
https://codereview.chromium.org/1896903002/diff/60001/net/net.gypi File net/net.gypi (right): https://codereview.chromium.org/1896903002/diff/60001/net/net.gypi#newcode2209 net/net.gypi:2209: 'data/certificate_policies_unittest/generate_policies.py', FYI: Didn't notice this earlier, but the script ...
4 years, 8 months ago (2016-04-22 20:07:11 UTC) #28
sdefresne
4 years, 7 months ago (2016-04-27 08:59:14 UTC) #29
Message was sent while issue was closed.
On 2016/04/22 at 20:07:11, eroman wrote:
> https://codereview.chromium.org/1896903002/diff/60001/net/net.gypi
> File net/net.gypi (right):
> 
> https://codereview.chromium.org/1896903002/diff/60001/net/net.gypi#newcode2209
> net/net.gypi:2209: 'data/certificate_policies_unittest/generate_policies.py',
> FYI: Didn't notice this earlier, but the script should also exclude *.py,
*.pyc, *.sh.
> 
> I can follow-up on this..

Done with https://codereview.chromium.org/1923203002.

Powered by Google App Engine
This is Rietveld 408576698