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

Issue 3001013002: Pass path to platform kernel binary to kernel-service. (Closed)

Created:
3 years, 4 months ago by aam
Modified:
3 years, 4 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org, rmacnak
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Pass path to platform kernel binary to kernel-service. Currently kernel-service derives path to platform binary from path to dart executable. It doesn't always work, so dartk tests fail. R=asiva@google.com, sigmund@google.com BUG:http://dartbug.com/30456 Committed: https://github.com/dart-lang/sdk/commit/ba543167ec656ec85aa675ca2d90037a999726a8

Patch Set 1 #

Patch Set 2 : Fix comment and ws #

Patch Set 3 : Fix comment #

Total comments: 2

Patch Set 4 : Add TODO to switch to outline.dill #

Total comments: 5

Patch Set 5 : Fix filenames, add comment regarding null platform_binary #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -38 lines) Patch
M runtime/bin/dfe.cc View 1 2 3 2 chunks +8 lines, -2 lines 0 comments Download
M runtime/include/dart_api.h View 2 chunks +2 lines, -1 line 0 comments Download
M runtime/vm/dart_api_impl.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M runtime/vm/kernel_isolate.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/kernel_isolate.cc View 1 5 chunks +19 lines, -8 lines 0 comments Download
M runtime/vm/unit_test.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M utils/kernel-service/kernel-service.dart View 1 2 9 chunks +28 lines, -23 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
aam
This is slightly different implementation than what was suggested on http://dartbug.com/30456. Here I pass path ...
3 years, 4 months ago (2017-08-16 19:59:33 UTC) #2
Siggi Cherem (dart-lang)
lgtm https://codereview.chromium.org/3001013002/diff/40001/runtime/bin/dfe.cc File runtime/bin/dfe.cc (right): https://codereview.chromium.org/3001013002/diff/40001/runtime/bin/dfe.cc#newcode77 runtime/bin/dfe.cc:77: Dart_CompileToKernel(url_string, platform_binary_filename_); Could you add a TODO here ...
3 years, 4 months ago (2017-08-16 23:29:19 UTC) #3
aam
https://codereview.chromium.org/3001013002/diff/40001/runtime/bin/dfe.cc File runtime/bin/dfe.cc (right): https://codereview.chromium.org/3001013002/diff/40001/runtime/bin/dfe.cc#newcode77 runtime/bin/dfe.cc:77: Dart_CompileToKernel(url_string, platform_binary_filename_); On 2017/08/16 23:29:18, Siggi Cherem (dart-lang) wrote: ...
3 years, 4 months ago (2017-08-17 02:10:51 UTC) #4
siva
lgtm https://codereview.chromium.org/3001013002/diff/60001/runtime/vm/isolate_reload_test.cc File runtime/vm/isolate_reload_test.cc (right): https://codereview.chromium.org/3001013002/diff/60001/runtime/vm/isolate_reload_test.cc#newcode191 runtime/vm/isolate_reload_test.cc:191: "file:///test-app.dart", why is the '.dart' suffix needed ? ...
3 years, 4 months ago (2017-08-17 15:40:57 UTC) #6
aam
https://codereview.chromium.org/3001013002/diff/60001/runtime/vm/isolate_reload_test.cc File runtime/vm/isolate_reload_test.cc (right): https://codereview.chromium.org/3001013002/diff/60001/runtime/vm/isolate_reload_test.cc#newcode191 runtime/vm/isolate_reload_test.cc:191: "file:///test-app.dart", On 2017/08/17 15:40:57, siva wrote: > why is ...
3 years, 4 months ago (2017-08-17 16:29:58 UTC) #8
aam
Committed patchset #5 (id:80001) manually as ba543167ec656ec85aa675ca2d90037a999726a8 (presubmit successful).
3 years, 4 months ago (2017-08-17 16:49:54 UTC) #10
siva
3 years, 4 months ago (2017-08-18 00:40:45 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/3001013002/diff/60001/runtime/vm/unit_test.cc
File runtime/vm/unit_test.cc (right):

https://codereview.chromium.org/3001013002/diff/60001/runtime/vm/unit_test.cc...
runtime/vm/unit_test.cc:194: url, NULL /* platform_binary */, sourcefiles_count,
sourcefiles,
On 2017/08/17 16:29:58, aam wrote:
> On 2017/08/17 15:40:57, siva wrote:
> > Why is platform_binary null here, is it because the unit tests do not depend
> on
> > anything in the platform?
> > 
> > I am wondering if we are testing in a different mode than what is used in
> > regular runs.
> 
> Basically for these tests we don't have to pass path to platform.dill because
it
> can be found in standard place, deduced by kernel-service relative to the
> executable($PATH/run_vm_tests -> $PATH/patched_sdk/platform.dill).
> It felt like making this test framework aware of platform.dill was not
necessary
> at this point.

Sounds good. I agree not necessary for the unit test framework.

Powered by Google App Engine
This is Rietveld 408576698