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

Issue 1502183004: Error checking to clarify SYSTEMROOT errors (Closed)

Created:
5 years ago by brucedawson
Modified:
5 years ago
Reviewers:
jam
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Error checking to clarify SYSTEMROOT errors Occasionally developers hit this cryptic error: Exception: Environment variable "SYSTEMROOT" required to be set to valid path The error message is well intentioned but inevitably misleading. The problem is rarely if ever caused by SYSTEMROOT not being set. In the most recent case it was caused by the "SetEnv.cmd && set" command failing. This change adds two bits of error checking - checking the error code of the Popen command, and ensuring that the results coming in to _ExtractImportantEnvironment are plausible. Both of these checks can detect this particular error, and one or both of them should detect future problems. This was initially done for gyp in crrev.com/1501673004, this makes the same fix for gn builds. R=jam@chromium.org Committed: https://crrev.com/5e289be0b06d4781610d16daec9064f6f811ce18 Cr-Commit-Position: refs/heads/master@{#363930}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M build/toolchain/win/setup_toolchain.py View 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
brucedawson
This is the tools\gyp fix copied to a new home. This should save somebody from ...
5 years ago (2015-12-07 21:27:30 UTC) #2
jam
lgtm
5 years ago (2015-12-08 17:17:32 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1502183004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1502183004/1
5 years ago (2015-12-08 18:17:20 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/89969) chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years ago (2015-12-08 18:50:18 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1502183004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1502183004/1
5 years ago (2015-12-08 19:50:03 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years ago (2015-12-09 02:29:40 UTC) #11
commit-bot: I haz the power
5 years ago (2015-12-09 02:30:38 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/5e289be0b06d4781610d16daec9064f6f811ce18
Cr-Commit-Position: refs/heads/master@{#363930}

Powered by Google App Engine
This is Rietveld 408576698