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

Issue 1209743002: Generate a static struct from fieldtrial_testing_config (Closed)

Created:
5 years, 6 months ago by danduong
Modified:
5 years, 5 months ago
CC:
chromium-reviews, telemetry-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@codegen_nested_structs
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Generate a static struct from fieldtrial_testing_config This is gives Chromium developers visibility into what features are active, but hidden behind field trial testing while developing Chromium. There is already a JSON file in Chromium with which field trials should be active. The goal is make a code generator to output a struct based off the contents of this JSON file. The next step after this is to create a mechanism to activate the trials defined by this generated struct. BUG=504075 Committed: https://crrev.com/970b79a8adc8c3fa3593054681b6d4bc5ae3ec94 Cr-Commit-Position: refs/heads/master@{#338416}

Patch Set 1 #

Patch Set 2 : add gn #

Patch Set 3 : #

Patch Set 4 : add configs for the rest of the platforms #

Patch Set 5 : fix gn build #

Total comments: 7

Patch Set 6 : add unittest and cleanup #

Patch Set 7 : add another unittest #

Total comments: 1

Patch Set 8 : #

Patch Set 9 : remove gni template #

Total comments: 7

Patch Set 10 : gn cleanup #

Patch Set 11 : #

Total comments: 2

Patch Set 12 : #

Patch Set 13 : add +x file permission #

Unified diffs Side-by-side diffs Delta from patch set Stats (+439 lines, -59 lines) Patch
M build/json_to_struct.gypi View 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/variations/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/common/variations/fieldtrial_testing_config.gyp View 1 2 3 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/common/variations/fieldtrial_testing_config_schema.json View 1 2 3 4 5 1 chunk +31 lines, -0 lines 0 comments Download
D testing/variations/fieldtrial_testing_config.json View 1 chunk +0 lines, -1 line 0 comments Download
A + testing/variations/fieldtrial_testing_config_chromeos.json View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A + testing/variations/fieldtrial_testing_config_ios.json View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
M testing/variations/fieldtrial_testing_config_linux.json View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M testing/variations/fieldtrial_testing_config_mac.json View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M tools/json_to_struct/json_to_struct.py View 1 2 3 4 5 6 7 4 chunks +27 lines, -5 lines 0 comments Download
M tools/perf/core/perf_benchmark.py View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download
A tools/variations/fieldtrial_to_struct.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +95 lines, -0 lines 0 comments Download
A tools/variations/fieldtrial_to_struct_unittest.py View 1 2 3 4 5 6 7 1 chunk +76 lines, -0 lines 0 comments Download
M tools/variations/fieldtrial_util.py View 1 2 3 4 5 6 1 chunk +2 lines, -9 lines 0 comments Download
M tools/variations/fieldtrial_util_unittest.py View 2 chunks +14 lines, -38 lines 0 comments Download
A tools/variations/unittest_data/expected_output.h View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A tools/variations/unittest_data/expected_output.cc View 1 2 3 4 5 6 1 chunk +40 lines, -0 lines 0 comments Download
A tools/variations/unittest_data/test_config.json View 1 2 3 4 5 6 1 chunk +14 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 36 (10 generated)
danduong
ned: I've updated the fieldtrial_util to only take 1 json instead of 2 since that ...
5 years, 6 months ago (2015-06-24 23:36:19 UTC) #2
danduong
On 2015/06/24 at 23:36:19, danduong wrote: > ned: I've updated the fieldtrial_util to only take ...
5 years, 6 months ago (2015-06-24 23:40:56 UTC) #4
nednguyen
On 2015/06/24 23:40:56, danduong wrote: > On 2015/06/24 at 23:36:19, danduong wrote: > > ned: ...
5 years, 6 months ago (2015-06-25 00:10:36 UTC) #5
danduong
On 2015/06/25 at 00:10:36, nednguyen wrote: > On 2015/06/24 23:40:56, danduong wrote: > > On ...
5 years, 6 months ago (2015-06-25 16:59:09 UTC) #6
nednguyen
tools/perf/ owner lgtm
5 years, 6 months ago (2015-06-25 17:00:47 UTC) #7
beaudoin
On 2015/06/25 17:00:47, nednguyen wrote: > tools/perf/ owner lgtm Modifs to config and json_to_struct LGTM. ...
5 years, 5 months ago (2015-07-06 15:24:13 UTC) #8
Alexei Svitkine (slow)
https://codereview.chromium.org/1209743002/diff/80001/tools/json_to_struct/json_to_struct.py File tools/json_to_struct/json_to_struct.py (right): https://codereview.chromium.org/1209743002/diff/80001/tools/json_to_struct/json_to_struct.py#newcode177 tools/json_to_struct/json_to_struct.py:177: description_filename, schema_filename): Nit: Align https://codereview.chromium.org/1209743002/diff/80001/tools/json_to_struct/json_to_struct.py#newcode178 tools/json_to_struct/json_to_struct.py:178: head = HEAD ...
5 years, 5 months ago (2015-07-08 16:54:54 UTC) #9
Alexei Svitkine (slow)
Also please expand the CL description to provide more context. What you have in the ...
5 years, 5 months ago (2015-07-08 17:07:20 UTC) #10
danduong
On 2015/07/08 at 17:07:20, asvitkine wrote: > Also please expand the CL description to provide ...
5 years, 5 months ago (2015-07-08 23:33:46 UTC) #11
danduong
https://codereview.chromium.org/1209743002/diff/80001/tools/json_to_struct/json_to_struct.py File tools/json_to_struct/json_to_struct.py (right): https://codereview.chromium.org/1209743002/diff/80001/tools/json_to_struct/json_to_struct.py#newcode177 tools/json_to_struct/json_to_struct.py:177: description_filename, schema_filename): On 2015/07/08 at 16:54:54, Alexei Svitkine wrote: ...
5 years, 5 months ago (2015-07-09 00:12:54 UTC) #12
Alexei Svitkine (slow)
https://codereview.chromium.org/1209743002/diff/80001/tools/variations/fieldtrial_to_struct.py File tools/variations/fieldtrial_to_struct.py (right): https://codereview.chromium.org/1209743002/diff/80001/tools/variations/fieldtrial_to_struct.py#newcode87 tools/variations/fieldtrial_to_struct.py:87: json_to_struct.GenerateStruct( On 2015/07/09 00:12:54, danduong wrote: > On 2015/07/08 ...
5 years, 5 months ago (2015-07-09 16:55:33 UTC) #13
danduong
On 2015/07/09 at 16:55:33, asvitkine wrote: > https://codereview.chromium.org/1209743002/diff/80001/tools/variations/fieldtrial_to_struct.py > File tools/variations/fieldtrial_to_struct.py (right): > > https://codereview.chromium.org/1209743002/diff/80001/tools/variations/fieldtrial_to_struct.py#newcode87 ...
5 years, 5 months ago (2015-07-09 19:38:39 UTC) #14
Alexei Svitkine (slow)
LGTM % remaining comment. Thanks! https://codereview.chromium.org/1209743002/diff/120001/tools/variations/unittest_data/expected_output.h File tools/variations/unittest_data/expected_output.h (right): https://codereview.chromium.org/1209743002/diff/120001/tools/variations/unittest_data/expected_output.h#newcode1 tools/variations/unittest_data/expected_output.h:1: // Copyright 2015 The ...
5 years, 5 months ago (2015-07-09 19:48:28 UTC) #15
danduong
On 2015/07/09 at 19:48:28, asvitkine wrote: > LGTM % remaining comment. Thanks! > > https://codereview.chromium.org/1209743002/diff/120001/tools/variations/unittest_data/expected_output.h ...
5 years, 5 months ago (2015-07-09 21:55:37 UTC) #16
danduong
brettw: for gn and gyp review
5 years, 5 months ago (2015-07-09 21:58:33 UTC) #18
brettw
https://codereview.chromium.org/1209743002/diff/160001/chrome/common/variations/BUILD.gn File chrome/common/variations/BUILD.gn (right): https://codereview.chromium.org/1209743002/diff/160001/chrome/common/variations/BUILD.gn#newcode7 chrome/common/variations/BUILD.gn:7: component("fieldtrial_testing_config") { Delete this, actions are separate targets in ...
5 years, 5 months ago (2015-07-10 19:49:04 UTC) #19
danduong
https://codereview.chromium.org/1209743002/diff/160001/chrome/common/variations/BUILD.gn File chrome/common/variations/BUILD.gn (right): https://codereview.chromium.org/1209743002/diff/160001/chrome/common/variations/BUILD.gn#newcode37 chrome/common/variations/BUILD.gn:37: out_dir = get_path_info("variations", "gen_dir") On 2015/07/10 at 19:49:04, brettw ...
5 years, 5 months ago (2015-07-10 22:41:37 UTC) #20
brettw
GN lgtm https://codereview.chromium.org/1209743002/diff/200001/chrome/common/variations/BUILD.gn File chrome/common/variations/BUILD.gn (right): https://codereview.chromium.org/1209743002/diff/200001/chrome/common/variations/BUILD.gn#newcode5 chrome/common/variations/BUILD.gn:5: import("//build/config/ui.gni") I don't think this is used ...
5 years, 5 months ago (2015-07-10 23:05:33 UTC) #21
danduong
https://codereview.chromium.org/1209743002/diff/200001/chrome/common/variations/BUILD.gn File chrome/common/variations/BUILD.gn (right): https://codereview.chromium.org/1209743002/diff/200001/chrome/common/variations/BUILD.gn#newcode5 chrome/common/variations/BUILD.gn:5: import("//build/config/ui.gni") On 2015/07/10 at 23:05:33, brettw wrote: > I ...
5 years, 5 months ago (2015-07-10 23:11:24 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1209743002/220001
5 years, 5 months ago (2015-07-10 23:11:53 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/78024)
5 years, 5 months ago (2015-07-10 23:22:55 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1209743002/240001
5 years, 5 months ago (2015-07-10 23:50:49 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/72291)
5 years, 5 months ago (2015-07-11 00:07:15 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1209743002/240001
5 years, 5 months ago (2015-07-11 00:17:23 UTC) #34
commit-bot: I haz the power
Committed patchset #13 (id:240001)
5 years, 5 months ago (2015-07-11 01:04:29 UTC) #35
commit-bot: I haz the power
5 years, 5 months ago (2015-07-11 01:05:40 UTC) #36
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/970b79a8adc8c3fa3593054681b6d4bc5ae3ec94
Cr-Commit-Position: refs/heads/master@{#338416}

Powered by Google App Engine
This is Rietveld 408576698