OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # This file is meant to be included into a target to provide a rule | 5 # This file is meant to be included into a target to provide a rule |
6 # to "build" .isolate files into a .isolated file. | 6 # to "build" .isolate files into a .isolated file. |
7 # | 7 # |
8 # To use this, create a gyp target with the following form: | 8 # To use this, create a gyp target with the following form: |
9 # 'conditions': [ | 9 # 'conditions': [ |
10 # ['test_isolation_mode != "noop"', { | 10 # ['test_isolation_mode != "noop"', { |
(...skipping 22 matching lines...) Expand all Loading... |
33 # | 33 # |
34 # The generated .isolated file will be: | 34 # The generated .isolated file will be: |
35 # <(PRODUCT_DIR)/foo_test.isolated | 35 # <(PRODUCT_DIR)/foo_test.isolated |
36 | 36 |
37 { | 37 { |
38 'rules': [ | 38 'rules': [ |
39 { | 39 { |
40 'rule_name': 'isolate', | 40 'rule_name': 'isolate', |
41 'extension': 'isolate', | 41 'extension': 'isolate', |
42 'inputs': [ | 42 'inputs': [ |
43 '<@(isolate_dependency_tracked)', | |
44 '<(RULE_INPUT_PATH)', | 43 '<(RULE_INPUT_PATH)', |
| 44 # Disable file tracking by the build driver for now. This means the |
| 45 # project must have the proper build-time dependency for their runtime |
| 46 # dependency. This improves the runtime of the build driver since it |
| 47 # doesn't have to stat() all these files. |
| 48 # |
| 49 # More importantly, it means that even if a isolate_dependency_tracked |
| 50 # file is missing, for example if a file was deleted and the .isolate |
| 51 # file was not updated, that won't break the build, especially in the |
| 52 # case where foo_tests_run is not built! This should be reenabled once |
| 53 # the switch-over to running tests on Swarm is completed. |
| 54 #'<@(isolate_dependency_tracked)', |
45 ], | 55 ], |
46 'outputs': [ | 56 'outputs': [ |
47 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated', | 57 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated', |
48 ], | 58 ], |
49 'action': [ | 59 'action': [ |
50 'python', | 60 'python', |
51 '<(DEPTH)/tools/swarm_client/isolate.py', | 61 '<(DEPTH)/tools/swarm_client/isolate.py', |
52 '<(test_isolation_mode)', | 62 '<(test_isolation_mode)', |
53 '--outdir', '<(test_isolation_outdir)', | 63 '--outdir', '<(test_isolation_outdir)', |
54 '--variable', 'PRODUCT_DIR', '<(PRODUCT_DIR)', | 64 '--variable', 'PRODUCT_DIR', '<(PRODUCT_DIR)', |
55 '--variable', 'OS', '<(OS)', | 65 '--variable', 'OS', '<(OS)', |
56 '--result', '<@(_outputs)', | 66 '--result', '<@(_outputs)', |
57 '--isolate', '<(RULE_INPUT_PATH)', | 67 '--isolate', '<(RULE_INPUT_PATH)', |
58 ], | 68 ], |
59 'msvs_cygwin_shell': 0, | 69 'msvs_cygwin_shell': 0, |
60 }, | 70 }, |
61 ], | 71 ], |
62 } | 72 } |
OLD | NEW |