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

Issue 1807013004: Make DrMemory update process reliable (Closed)

Created:
4 years, 9 months ago by brucedawson
Modified:
4 years, 9 months ago
CC:
chromium-reviews, glider+watch_chromium.org, bruening+watch_chromium.org, zhaoqin1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make DrMemory update process reliable The DrMemory update process only runs when it thinks that it needs to but its heuristic is not accurate. A better thing to do is to always update. This change also adds setlocal so that environment variables don't leak outside. This may also help with making this script more robust in the future, once it has been in place for long enough for all machines affected by the environment variable leakage to have rebooted. BUG=595867 R=scottmg@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/38e785b06f3942adad154fddd1b83d8a0f299a5e

Patch Set 1 #

Total comments: 2

Patch Set 2 : Moved setlocal, removed comment #

Total comments: 2

Patch Set 3 : Remove @ #

Patch Set 4 : Pull to latest #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M tools/valgrind/chrome_tests.bat View 1 2 2 chunks +2 lines, -2 lines 1 comment Download

Messages

Total messages: 36 (12 generated)
brucedawson
Can you take a look at this? I don't know what the intent is but ...
4 years, 9 months ago (2016-03-17 21:09:54 UTC) #2
oshima
+other owners. can one of you approve this? cc'nig zhaoqin@
4 years, 9 months ago (2016-03-17 21:57:09 UTC) #4
scottmg
lgtm https://codereview.chromium.org/1807013004/diff/1/tools/valgrind/chrome_tests.bat File tools/valgrind/chrome_tests.bat (right): https://codereview.chromium.org/1807013004/diff/1/tools/valgrind/chrome_tests.bat#newcode1 tools/valgrind/chrome_tests.bat:1: @setlocal Normally @echo off setlocal
4 years, 9 months ago (2016-03-17 23:25:34 UTC) #6
brucedawson
https://codereview.chromium.org/1807013004/diff/1/tools/valgrind/chrome_tests.bat File tools/valgrind/chrome_tests.bat (right): https://codereview.chromium.org/1807013004/diff/1/tools/valgrind/chrome_tests.bat#newcode1 tools/valgrind/chrome_tests.bat:1: @setlocal On 2016/03/17 23:25:34, scottmg wrote: > Normally > ...
4 years, 9 months ago (2016-03-17 23:31:40 UTC) #7
brucedawson
scottmg@ - is there any risk from putting the @setlocal in there? Its absence seems ...
4 years, 9 months ago (2016-03-17 23:33:32 UTC) #8
brucedawson
I just verified that the order of @setlocal and @echo off makes no difference, so ...
4 years, 9 months ago (2016-03-17 23:53:56 UTC) #9
scottmg
Yeah, as far as I know setlocal is variables-only for better or worse. https://codereview.chromium.org/1807013004/diff/20001/tools/valgrind/chrome_tests.bat File ...
4 years, 9 months ago (2016-03-18 00:12:47 UTC) #10
brucedawson
https://codereview.chromium.org/1807013004/diff/20001/tools/valgrind/chrome_tests.bat File tools/valgrind/chrome_tests.bat (right): https://codereview.chromium.org/1807013004/diff/20001/tools/valgrind/chrome_tests.bat#newcode6 tools/valgrind/chrome_tests.bat:6: @setlocal On 2016/03/18 00:12:46, scottmg wrote: > No @ ...
4 years, 9 months ago (2016-03-18 00:22:01 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1807013004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1807013004/40001
4 years, 9 months ago (2016-03-18 00:30:41 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/6059) ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 9 months ago (2016-03-18 00:34:54 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1807013004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1807013004/60001
4 years, 9 months ago (2016-03-18 00:56:18 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/6074) ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 9 months ago (2016-03-18 00:58:59 UTC) #21
brucedawson
I don't understand why the patch is failing on all machines. The file has not ...
4 years, 9 months ago (2016-03-18 01:02:22 UTC) #22
scottmg
On 2016/03/18 01:02:22, brucedawson wrote: > I don't understand why the patch is failing on ...
4 years, 9 months ago (2016-03-18 01:12:07 UTC) #23
oshima
On 2016/03/18 01:12:07, scottmg wrote: > On 2016/03/18 01:02:22, brucedawson wrote: > > I don't ...
4 years, 9 months ago (2016-03-18 01:26:40 UTC) #24
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/38e785b06f3942adad154fddd1b83d8a0f299a5e Cr-Commit-Position: refs/heads/master@{#381870}
4 years, 9 months ago (2016-03-18 01:53:51 UTC) #26
robliao
Committed patchset #4 (id:60001) manually as 38e785b06f3942adad154fddd1b83d8a0f299a5e (presubmit successful).
4 years, 9 months ago (2016-03-18 01:54:31 UTC) #28
robliao
On 2016/03/18 01:54:31, robliao wrote: > Committed patchset #4 (id:60001) manually as > 38e785b06f3942adad154fddd1b83d8a0f299a5e (presubmit ...
4 years, 9 months ago (2016-03-18 02:38:55 UTC) #29
the_wrong_timurrrr_2
https://codereview.chromium.org/1807013004/diff/60001/tools/valgrind/chrome_tests.bat File tools/valgrind/chrome_tests.bat (left): https://codereview.chromium.org/1807013004/diff/60001/tools/valgrind/chrome_tests.bat#oldcode35 tools/valgrind/chrome_tests.bat:35: if NOT "%DRMEMORY_COMMAND%"=="" GOTO :RUN_TESTS No, you shouldn't remove ...
4 years, 9 months ago (2016-03-18 15:23:50 UTC) #31
Alexander Potapenko
I have no idea how this .bat file should be working, deferring to other owners.
4 years, 9 months ago (2016-03-18 15:44:03 UTC) #32
scottmg
On 2016/03/18 15:23:50, the_wrong_timurrrr_2 wrote: > https://codereview.chromium.org/1807013004/diff/60001/tools/valgrind/chrome_tests.bat > File tools/valgrind/chrome_tests.bat (left): > > https://codereview.chromium.org/1807013004/diff/60001/tools/valgrind/chrome_tests.bat#oldcode35 > ...
4 years, 9 months ago (2016-03-18 16:09:30 UTC) #33
brucedawson
> Sorry, should we revert then? We can put it back eventually. The main problem ...
4 years, 9 months ago (2016-03-18 17:04:16 UTC) #34
the_wrong_timurrrr_2
No, the goal of this branch is to allow using a custom Dr.Memory binary that ...
4 years, 9 months ago (2016-03-21 09:31:09 UTC) #35
brucedawson
4 years, 9 months ago (2016-03-21 17:22:46 UTC) #36
Message was sent while issue was closed.
Discussion should be on crbug.com/595867

Powered by Google App Engine
This is Rietveld 408576698