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

Issue 1247993002: Return Windows error code when create-process fails. (Closed)

Created:
5 years, 5 months ago by bcwhite
Modified:
5 years, 4 months ago
CC:
chromium-reviews, grt+watch_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Return Windows error code when create-process fails. COULD_NOT_CREATE_PROCESS makes up about 10% of the setup errors; include the actual DWORD result code returned by ::CreateProcess by placing all result information into the proper location of the Registry for reading by Omaha. BUG= Committed: https://crrev.com/135f5f669574bd07eaedaf6b57503984aeb13be8 Cr-Commit-Position: refs/heads/master@{#341938} Committed: https://crrev.com/41465440adac9c4ca529d42bc685eedb640c8eb7 Cr-Commit-Position: refs/heads/master@{#342528} Committed: https://crrev.com/4e19d36202c2d3efcded709c2ac67c48f5665334 Cr-Commit-Position: refs/heads/master@{#342683}

Patch Set 1 #

Patch Set 2 : report exit-code and last-error through registry #

Total comments: 9

Patch Set 3 : addressed review comments by grt #

Patch Set 4 : clean up of comments and formatting #

Total comments: 1

Patch Set 5 : only write result if error doesn't exist #

Patch Set 6 : don't write success results #

Total comments: 16

Patch Set 7 : complete rebuild based on grt suggestions #

Patch Set 8 : fixed setup_unittests build #

Patch Set 9 : fixed configuration tests and added new ones #

Total comments: 23

Patch Set 10 : addressed review comments by robertshield #

Patch Set 11 : remove stale comment #

Patch Set 12 : fix additional call to OpenClientStateKey #

Patch Set 13 : add regkey to new build system #

Patch Set 14 : rebased #

Patch Set 15 : added mini_installer_constants referenced via configuration to .gn file #

Patch Set 16 : fixed uninitialized values in some tests #

Patch Set 17 : untabify and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+425 lines, -208 lines) Patch
M chrome/chrome_installer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/installer/mini_installer.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/installer/mini_installer.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/installer/mini_installer/configuration.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +16 lines, -0 lines 0 comments Download
M chrome/installer/mini_installer/configuration.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +59 lines, -3 lines 0 comments Download
M chrome/installer/mini_installer/configuration_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +46 lines, -5 lines 0 comments Download
M chrome/installer/mini_installer/mini_installer.cc View 1 2 3 4 5 6 7 8 9 10 11 23 chunks +122 lines, -200 lines 0 comments Download
M chrome/installer/mini_installer/mini_installer_constants.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/installer/mini_installer/mini_installer_constants.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/installer/mini_installer/regkey.h View 1 2 3 4 5 6 7 8 9 1 chunk +65 lines, -0 lines 0 comments Download
A chrome/installer/mini_installer/regkey.cc View 1 2 3 4 5 6 7 8 9 1 chunk +98 lines, -0 lines 0 comments Download
M chrome/installer/setup/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 60 (11 generated)
bcwhite
5 years, 5 months ago (2015-07-21 20:23:50 UTC) #2
grt (UTC plus 2)
I like the idea, but I'm concerned that this doesn't scale for associating error codes ...
5 years, 5 months ago (2015-07-23 02:30:36 UTC) #4
S. Ganesh
On 2015/07/23 02:30:36, grt wrote: > Ganesh: if Chrome's mini_installer were to write a last ...
5 years, 5 months ago (2015-07-23 05:50:35 UTC) #5
bcwhite
On 2015/07/23 05:50:35, S. Ganesh wrote: > On 2015/07/23 02:30:36, grt wrote: > > Ganesh: ...
5 years, 5 months ago (2015-07-23 10:54:00 UTC) #6
bcwhite
New CL using registry has been uploaded. PTAL.
5 years, 5 months ago (2015-07-23 19:07:22 UTC) #7
grt (UTC plus 2)
https://codereview.chromium.org/1247993002/diff/20001/chrome/installer/mini_installer/mini_installer.cc File chrome/installer/mini_installer/mini_installer.cc (right): https://codereview.chromium.org/1247993002/diff/20001/chrome/installer/mini_installer/mini_installer.cc#newcode77 chrome/installer/mini_installer/mini_installer.cc:77: LONG WriteValue(const wchar_t* value_name, const wchar_t* value); some suggestions: ...
5 years, 5 months ago (2015-07-24 14:49:11 UTC) #8
grt (UTC plus 2)
please update the CR subject and CL description as well, thanks
5 years, 5 months ago (2015-07-24 15:10:02 UTC) #9
chromium-reviews
> > please update the CR subject and CL description as well, thanks > That's ...
5 years, 5 months ago (2015-07-24 15:49:21 UTC) #10
bcwhite
https://codereview.chromium.org/1247993002/diff/20001/chrome/installer/mini_installer/mini_installer.cc File chrome/installer/mini_installer/mini_installer.cc (right): https://codereview.chromium.org/1247993002/diff/20001/chrome/installer/mini_installer/mini_installer.cc#newcode77 chrome/installer/mini_installer/mini_installer.cc:77: LONG WriteValue(const wchar_t* value_name, const wchar_t* value); On 2015/07/24 ...
5 years, 5 months ago (2015-07-24 17:08:01 UTC) #11
grt (UTC plus 2)
https://codereview.chromium.org/1247993002/diff/60001/chrome/installer/mini_installer/mini_installer.cc File chrome/installer/mini_installer/mini_installer.cc (right): https://codereview.chromium.org/1247993002/diff/60001/chrome/installer/mini_installer/mini_installer.cc#newcode929 chrome/installer/mini_installer/mini_installer.cc:929: WriteInstallResults(configuration, exit_code, LastWindowsError); i had a thought over the ...
5 years, 4 months ago (2015-07-27 15:21:37 UTC) #12
bcwhite
On 2015/07/27 15:21:37, grt wrote: > https://codereview.chromium.org/1247993002/diff/60001/chrome/installer/mini_installer/mini_installer.cc > File chrome/installer/mini_installer/mini_installer.cc (right): > > https://codereview.chromium.org/1247993002/diff/60001/chrome/installer/mini_installer/mini_installer.cc#newcode929 > ...
5 years, 4 months ago (2015-07-27 16:37:54 UTC) #13
grt (UTC plus 2)
On 2015/07/27 16:37:54, bcwhite wrote: > On 2015/07/27 15:21:37, grt wrote: > > > https://codereview.chromium.org/1247993002/diff/60001/chrome/installer/mini_installer/mini_installer.cc ...
5 years, 4 months ago (2015-07-27 17:05:34 UTC) #14
bcwhite
On 2015/07/27 17:05:34, grt wrote: > On 2015/07/27 16:37:54, bcwhite wrote: > > On 2015/07/27 ...
5 years, 4 months ago (2015-07-27 17:49:49 UTC) #15
bcwhite
On 2015/07/27 17:49:49, bcwhite wrote: > On 2015/07/27 17:05:34, grt wrote: > > On 2015/07/27 ...
5 years, 4 months ago (2015-07-27 18:00:58 UTC) #16
grt (UTC plus 2)
On 2015/07/27 18:00:58, bcwhite wrote: > On 2015/07/27 17:49:49, bcwhite wrote: > > On 2015/07/27 ...
5 years, 4 months ago (2015-07-27 19:47:51 UTC) #17
bcwhite
On 2015/07/27 19:47:51, grt wrote: > On 2015/07/27 18:00:58, bcwhite wrote: > > On 2015/07/27 ...
5 years, 4 months ago (2015-07-27 20:17:00 UTC) #18
grt (UTC plus 2)
On 2015/07/27 20:17:00, bcwhite wrote: > On 2015/07/27 19:47:51, grt wrote: > > On 2015/07/27 ...
5 years, 4 months ago (2015-07-27 20:33:12 UTC) #19
bcwhite
> > > how about this: mini_installer writes values to the registry only if > ...
5 years, 4 months ago (2015-07-27 21:16:30 UTC) #20
grt (UTC plus 2)
https://codereview.chromium.org/1247993002/diff/100001/chrome/installer/mini_installer/mini_installer.cc File chrome/installer/mini_installer/mini_installer.cc (right): https://codereview.chromium.org/1247993002/diff/100001/chrome/installer/mini_installer/mini_installer.cc#newcode42 chrome/installer/mini_installer/mini_installer.cc:42: DWORD LastWindowsError = 0; can you do away with ...
5 years, 4 months ago (2015-07-28 02:30:07 UTC) #21
bcwhite
https://codereview.chromium.org/1247993002/diff/100001/chrome/installer/mini_installer/mini_installer.cc File chrome/installer/mini_installer/mini_installer.cc (right): https://codereview.chromium.org/1247993002/diff/100001/chrome/installer/mini_installer/mini_installer.cc#newcode42 chrome/installer/mini_installer/mini_installer.cc:42: DWORD LastWindowsError = 0; On 2015/07/28 02:30:07, grt wrote: ...
5 years, 4 months ago (2015-07-28 13:14:01 UTC) #22
grt (UTC plus 2)
https://codereview.chromium.org/1247993002/diff/100001/chrome/installer/mini_installer/mini_installer.cc File chrome/installer/mini_installer/mini_installer.cc (right): https://codereview.chromium.org/1247993002/diff/100001/chrome/installer/mini_installer/mini_installer.cc#newcode42 chrome/installer/mini_installer/mini_installer.cc:42: DWORD LastWindowsError = 0; On 2015/07/28 13:14:01, bcwhite wrote: ...
5 years, 4 months ago (2015-07-28 14:00:04 UTC) #23
bcwhite
https://codereview.chromium.org/1247993002/diff/100001/chrome/installer/mini_installer/mini_installer.cc File chrome/installer/mini_installer/mini_installer.cc (right): https://codereview.chromium.org/1247993002/diff/100001/chrome/installer/mini_installer/mini_installer.cc#newcode246 chrome/installer/mini_installer/mini_installer.cc:246: if (key.ReadDWValue(kInstallerResultRegistryValue, &value) > > I don't think so. ...
5 years, 4 months ago (2015-07-28 14:52:59 UTC) #24
bcwhite
Okay... - regkey moved into separate file - moved some static "helper" registry functions to ...
5 years, 4 months ago (2015-07-28 19:24:51 UTC) #25
bcwhite
On 2015/07/28 19:24:51, bcwhite wrote: > Okay... > - regkey moved into separate file > ...
5 years, 4 months ago (2015-07-29 15:18:38 UTC) #26
bcwhite
+robertshield Greg is away until late August. Would you mind continuing the review?
5 years, 4 months ago (2015-08-03 12:35:23 UTC) #28
robertshield
Looking good, mostly minor nits https://codereview.chromium.org/1247993002/diff/160001/chrome/installer/mini_installer/configuration.cc File chrome/installer/mini_installer/configuration.cc (right): https://codereview.chromium.org/1247993002/diff/160001/chrome/installer/mini_installer/configuration.cc#newcode41 chrome/installer/mini_installer/configuration.cc:41: has_chrome_frame_ ? Maybe out ...
5 years, 4 months ago (2015-08-04 03:11:36 UTC) #29
bcwhite
https://codereview.chromium.org/1247993002/diff/160001/chrome/installer/mini_installer/configuration.cc File chrome/installer/mini_installer/configuration.cc (right): https://codereview.chromium.org/1247993002/diff/160001/chrome/installer/mini_installer/configuration.cc#newcode41 chrome/installer/mini_installer/configuration.cc:41: has_chrome_frame_ ? On 2015/08/04 03:11:36, robertshield wrote: > Maybe ...
5 years, 4 months ago (2015-08-04 19:34:31 UTC) #30
robertshield
lgtm https://codereview.chromium.org/1247993002/diff/160001/chrome/installer/mini_installer/configuration.cc File chrome/installer/mini_installer/configuration.cc (right): https://codereview.chromium.org/1247993002/diff/160001/chrome/installer/mini_installer/configuration.cc#newcode41 chrome/installer/mini_installer/configuration.cc:41: has_chrome_frame_ ? On 2015/08/04 19:34:30, bcwhite wrote: > ...
5 years, 4 months ago (2015-08-05 18:39:48 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1247993002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1247993002/220001
5 years, 4 months ago (2015-08-05 18:53:52 UTC) #33
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 4 months ago (2015-08-05 19:26:02 UTC) #34
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/135f5f669574bd07eaedaf6b57503984aeb13be8 Cr-Commit-Position: refs/heads/master@{#341938}
5 years, 4 months ago (2015-08-05 19:26:43 UTC) #35
vabr (Chromium)
A revert of this CL (patchset #12 id:220001) has been created in https://codereview.chromium.org/1277833002/ by vabr@chromium.org. ...
5 years, 4 months ago (2015-08-06 06:12:55 UTC) #36
bcwhite
I've updated the .gn file that should allow "Win 64 GN" to build. However, the ...
5 years, 4 months ago (2015-08-07 21:46:56 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1247993002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1247993002/260001
5 years, 4 months ago (2015-08-07 21:48:15 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/88316)
5 years, 4 months ago (2015-08-07 22:45:02 UTC) #42
bcwhite
win_chromium_x64_rel_ng appears to be flaky with a lot of builds failing at the same point. ...
5 years, 4 months ago (2015-08-08 15:28:37 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1247993002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1247993002/260001
5 years, 4 months ago (2015-08-08 15:28:56 UTC) #45
commit-bot: I haz the power
Committed patchset #14 (id:260001)
5 years, 4 months ago (2015-08-08 15:33:09 UTC) #46
commit-bot: I haz the power
Patchset 14 (id:??) landed as https://crrev.com/41465440adac9c4ca529d42bc685eedb640c8eb7 Cr-Commit-Position: refs/heads/master@{#342528}
5 years, 4 months ago (2015-08-08 15:33:53 UTC) #47
bcwhite
A revert of this CL (patchset #14 id:260001) has been created in https://codereview.chromium.org/1285473002/ by bcwhite@chromium.org. ...
5 years, 4 months ago (2015-08-08 16:12:22 UTC) #48
bcwhite
Sigh. Revert in progress. Some other file other than regkey.cc needs to be added as ...
5 years, 4 months ago (2015-08-08 16:13:54 UTC) #49
Nico
Looks like this might also break setup_unittests in official builds: http://build.chromium.org/p/chromium.fyi/builders/CrWinClang%20tester/builds/2006 MiniInstallerConfigurationTest.ChromeAppGuid (run #1): [ ...
5 years, 4 months ago (2015-08-08 17:49:24 UTC) #51
bcwhite
On 2015/08/08 17:49:24, Nico (hiding) wrote: > Looks like this might also break setup_unittests in ...
5 years, 4 months ago (2015-08-08 19:35:01 UTC) #52
Nico
On 2015/08/08 19:35:01, bcwhite wrote: > On 2015/08/08 17:49:24, Nico (hiding) wrote: > > Looks ...
5 years, 4 months ago (2015-08-08 19:38:59 UTC) #53
bcwhite
> Are you doing a buildtype=Official branding=Chrome build locally? (We don't have > trybots in ...
5 years, 4 months ago (2015-08-08 19:53:59 UTC) #54
bcwhite
> The specific test you list as failing is definitely affected by new code and ...
5 years, 4 months ago (2015-08-10 17:47:19 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1247993002/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1247993002/320001
5 years, 4 months ago (2015-08-10 19:39:57 UTC) #58
commit-bot: I haz the power
Committed patchset #17 (id:320001)
5 years, 4 months ago (2015-08-10 20:29:23 UTC) #59
commit-bot: I haz the power
5 years, 4 months ago (2015-08-10 20:29:58 UTC) #60
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/4e19d36202c2d3efcded709c2ac67c48f5665334
Cr-Commit-Position: refs/heads/master@{#342683}

Powered by Google App Engine
This is Rietveld 408576698