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

Issue 1343103002: Observatory build should try backup method if the SDK doesn't work. (Closed)

Created:
5 years, 3 months ago by Bill Hesse
Modified:
5 years, 3 months ago
Reviewers:
ricow1, Cutch, Ivan Posva
CC:
reviews_dartlang.org, ricow1, Ivan Posva, rmacnak
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Observatory build should try backup method if the SDK doesn't work. Fix up SDK for mips and arm processors on demand. BUG= R=iposva@google.com, johnmccutchan@google.com Committed: https://github.com/dart-lang/sdk/commit/9aeb907f9d1c0bac2dbde13c1aa8380f685085e6

Patch Set 1 #

Total comments: 13

Patch Set 2 : Merge CL 1342853004 #

Patch Set 3 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -181 lines) Patch
M tools/build.py View 1 2 chunks +0 lines, -7 lines 0 comments Download
M tools/observatory_tool.py View 1 2 7 chunks +79 lines, -65 lines 0 comments Download
M tools/run_pub.py View 1 1 chunk +0 lines, -104 lines 0 comments Download
M tools/utils.py View 1 2 3 chunks +26 lines, -5 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
Bill Hesse
The script run_pub.py is basically useless now, since it just runs a subprocess with similar ...
5 years, 3 months ago (2015-09-15 13:41:03 UTC) #2
Bill Hesse
On 2015/09/15 13:41:03, Bill Hesse wrote: > The script run_pub.py is basically useless now, since ...
5 years, 3 months ago (2015-09-15 13:41:49 UTC) #3
Cutch
lgtm
5 years, 3 months ago (2015-09-15 16:45:03 UTC) #4
Ivan Posva
Does not LGTM as it breaks sharing of a checkout across multiple devices. And potentially ...
5 years, 3 months ago (2015-09-15 17:01:42 UTC) #6
Bill Hesse
https://codereview.chromium.org/1343103002/diff/1/tools/run_pub.py File tools/run_pub.py (right): https://codereview.chromium.org/1343103002/diff/1/tools/run_pub.py#newcode41 tools/run_pub.py:41: https://github.com/dart-lang/sdk/wiki/The-checked-in-SDK-in--tools On 2015/09/15 17:01:42, Ivan Posva wrote: > Why ...
5 years, 3 months ago (2015-09-15 17:09:02 UTC) #7
Bill Hesse
https://codereview.chromium.org/1343103002/diff/1/tools/utils.py File tools/utils.py (right): https://codereview.chromium.org/1343103002/diff/1/tools/utils.py#newcode635 tools/utils.py:635: executable) On 2015/09/15 17:01:42, Ivan Posva wrote: > Here ...
5 years, 3 months ago (2015-09-15 22:37:06 UTC) #8
Ivan Posva
Per offline discussion either of the two recoverable options is acceptable, with the pick the ...
5 years, 3 months ago (2015-09-15 23:32:59 UTC) #9
Bill Hesse
Committed patchset #3 (id:40001) manually as 9aeb907f9d1c0bac2dbde13c1aa8380f685085e6 (presubmit successful).
5 years, 3 months ago (2015-09-16 11:13:37 UTC) #10
Bill Hesse
5 years, 3 months ago (2015-09-21 10:05:06 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/1343103002/diff/1/tools/utils.py
File tools/utils.py (right):

https://codereview.chromium.org/1343103002/diff/1/tools/utils.py#newcode621
tools/utils.py:621: def CheckedInSdkFixExecutable():
On 2015/09/15 17:09:02, Bill Hesse wrote:
> On 2015/09/15 17:01:42, Ivan Posva wrote:
> > The documentation talks about a CheckedInSdkFixedExecutable, but here we are
> > missing the Fixed and instead have a Fix, which reads really strangely.
Please
> > update to the documented name.
> 
> I like Fix, because it is an active verb, and this function has an effect. 
But
> I will change to Fixed if others agree.

Changed to CheckedInSdkCheckExecutable, since it now only checks whether
CheckedInSdkExecutable works or not.

https://codereview.chromium.org/1343103002/diff/1/tools/utils.py#newcode635
tools/utils.py:635: executable)
On 2015/09/15 23:32:59, Ivan Posva wrote:
> On 2015/09/15 22:37:05, Bill Hesse wrote:
> > On 2015/09/15 17:01:42, Ivan Posva wrote:
> > > Here you are overwriting the ia32 executable which is really a bad thing
to
> do
> > > as you now have completely disabled running on a ia32 or x64 machine. Also
> it
> > > breaks the "do-not-change" your source repository rule.
> > 
> > We can avoid doing this, if you absolutely don't want to change the "dart"
> file,
> > by running pub always with an explicitly given dart executable, and the
> snapshot
> > from the SDK, rather than from the runnable pub command.  We would still
want
> to
> > test that this command works, and fall back to the bootstrap executable if
pub
> > doesn't run this way.
> 
> Summarizing offline discussion here:
> Specifying a dart executable is preferred over the copying the currently valid
> executable over the dart binary. Thinking about it a bit further, we already
> have a function which gives us the CheckedInSdkExecutable so the smarts of
> figuring out the currect architecture can be added right there. No?

Done.

Powered by Google App Engine
This is Rietveld 408576698