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

Issue 2669543003: Use the app snapshot when testing with -cdartk. (Closed)

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

Description

Use the app snapshot when testing with -cdartk. Fix snapshot features check to use the checked mode status of the current isolate, and peg the kernel isolate to production mode. BUG=

Patch Set 1 #

Patch Set 2 : . #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -58 lines) Patch
M runtime/vm/clustered_snapshot.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/dart.h View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/dart.cc View 1 chunk +0 lines, -52 lines 0 comments Download
M runtime/vm/kernel_isolate.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/vm/snapshot.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/snapshot.cc View 3 chunks +55 lines, -2 lines 0 comments Download
M tests/language/language.status View 1 1 chunk +4 lines, -0 lines 0 comments Download
M tools/testing/dart/compiler_configuration.dart View 1 chunk +1 line, -1 line 3 comments Download

Messages

Total messages: 9 (2 generated)
rmacnak
Note this increases test time relative to batch mode, but means we test the configuration ...
3 years, 10 months ago (2017-02-01 00:10:18 UTC) #2
hausner
LGTM. Is the kernel-isolate snapshot still built with the 'runtime' target?
3 years, 10 months ago (2017-02-01 01:03:49 UTC) #3
rmacnak
On 2017/02/01 01:03:49, hausner wrote: > LGTM. > > Is the kernel-isolate snapshot still built ...
3 years, 10 months ago (2017-02-01 01:08:55 UTC) #4
kustermann
https://codereview.chromium.org/2669543003/diff/20001/tools/testing/dart/compiler_configuration.dart File tools/testing/dart/compiler_configuration.dart (right): https://codereview.chromium.org/2669543003/diff/20001/tools/testing/dart/compiler_configuration.dart#newcode226 tools/testing/dart/compiler_configuration.dart:226: args.add('--dfe=$buildDir/gen/kernel-service.dart.snapshot'); You should do the same in tools/testing/dart/test_runner.dart: class ...
3 years, 10 months ago (2017-02-01 08:48:07 UTC) #6
Vyacheslav Egorov (Google)
https://codereview.chromium.org/2669543003/diff/20001/tools/testing/dart/compiler_configuration.dart File tools/testing/dart/compiler_configuration.dart (right): https://codereview.chromium.org/2669543003/diff/20001/tools/testing/dart/compiler_configuration.dart#newcode226 tools/testing/dart/compiler_configuration.dart:226: args.add('--dfe=$buildDir/gen/kernel-service.dart.snapshot'); On 2017/02/01 08:48:06, kustermann wrote: > You should ...
3 years, 10 months ago (2017-02-01 08:51:22 UTC) #7
kustermann
https://codereview.chromium.org/2669543003/diff/20001/tools/testing/dart/compiler_configuration.dart File tools/testing/dart/compiler_configuration.dart (right): https://codereview.chromium.org/2669543003/diff/20001/tools/testing/dart/compiler_configuration.dart#newcode226 tools/testing/dart/compiler_configuration.dart:226: args.add('--dfe=$buildDir/gen/kernel-service.dart.snapshot'); On 2017/02/01 08:51:22, Vyacheslav Egorov (Google) wrote: > ...
3 years, 10 months ago (2017-02-01 08:56:15 UTC) #8
Vyacheslav Egorov (Google)
3 years, 10 months ago (2017-02-01 11:27:22 UTC) #9
Thanks for doing this Ryan! 

I am looking forward to using this.

Here is a comparison for the configuration that which we are testing all the
time: 

$ tools/test.py -a x64 -c dartk -r vm -m {debug, release} co19 language kernel

# Kernel isolate with batch mode workers.
[16:11 | 100% | +12685 | -    2] RELEASE
[57:45 | 100% | +12682 | -    5] DEBUG      

# Kernel isolate with APPJIT, no batch mode workers
[37:50 | 100% | +12675 | -   12] RELEASE
[92:42 | 100% | +12607 | -   80] DEBUG

Two things to notice here:

- cycle time is increased by 20 and 30 minutes respectively. I don't think this
is good; 

- there are additional failures in both debug and release - these need to be
investigated before this can become a default mode;

I have the following suggestion:

- We keep default -c dartk configuration as a batch mode runner. This saves
noticable amount of time for those of us who work on correctness of Kernel
compilation and Kernel-to-IL transformation.

- We add flag to turn on app-jit mode on the bots and add bots that run "-c dart
--use-app-jit" configuration in the meanwhile.

- We need to figure out how to make build times reasonable: DEBUG and simulator
builds really suffer from the training time. Maybe we should file a bug for this
as well?

Powered by Google App Engine
This is Rietveld 408576698