dart-sdk/tools
Clement Skau 0ce83987d6 Reland "[SDK] Adds an SDK hash to kernels and the VM."
Note: This is a reland of https://dart-review.googlesource.com/c/sdk/+/150343

Adds a new SDK hash to kernels and the VM which is optionally checked
to verify kernels are built for the same SDK as the VM.
This helps catch incompatibilities that are currently causing
subtle bugs and (not so subtle) crashes.

The SDK hash is encoded in kernels as a new field in components.
The hash is derived from the 10 byte git short hash.

This new check can be disabled via:
  tools/gn.py ... --no-verify-sdk-hash

This CL bumps the min. (and max.) supported kernel format version,
making the VM backwards incompatible from this point back.

This also bumps the min. and current ABI version.

Bug: https://github.com/dart-lang/sdk/issues/41802
Change-Id: I2f85945045a603eb9dcfd1f2c0d0d024bd84a956
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/152802
Commit-Queue: Clement Skau <cskau@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2020-07-07 06:08:20 +00:00
..
abiversions [SDK] Adds documentation about updating ABI_VERSION 2020-05-07 12:33:37 +00:00
android Mass format python with yapf 2019-08-05 20:34:31 +00:00
apps/update_homebrew [homebrew] Modify the version string when updating the version 2020-04-03 10:32:34 +00:00
bots [benchmark] Test dart2js sound nullability options. 2020-07-03 14:27:32 +00:00
buildtools Mass format python with yapf 2019-08-05 20:34:31 +00:00
dart2js Update File.openRead to return Stream<Uint8List> 2019-06-27 00:22:17 +00:00
dom [dart:html] Revert commits using MDN compatibility info 2020-07-02 01:33:18 +00:00
linux_dist_support/debian Reland "[vm] Build dart2native dependencies with the normal "create_sdk" target" 2020-06-17 16:12:26 +00:00
migration Correctly run legacy tests. 2020-06-23 23:06:05 +00:00
patches update collection dep, and add flutter-engine patch 2020-07-01 20:50:38 +00:00
sdks [release] Update checked-in SDKs to 2.9.0-4.0.dev 2020-04-28 14:20:48 +00:00
spec_parser For external/abstract fields: add tests and update Dart.g 2020-07-02 13:39:39 +00:00
test_generators Migrate language_2/async_nested to NNBD. 2020-02-12 20:46:37 +00:00
testing [infra] Remove obsolete webdriver/selenium support from testing 2019-06-18 06:59:09 +00:00
.gitignore Reland https://dart-review.googlesource.com/c/sdk/+/96500 2019-03-13 21:03:01 +00:00
3xhead_flutter_hooks.sh [infra] Extend 3head patching to apply patches for flutter/flutter depending on pinned engine commit 2019-02-04 12:37:10 +00:00
addlatexhash.dart [tools] Fix addlatexhash.dart in NNBD mode 2020-03-23 19:47:52 +00:00
build.py Reland "Revert "Add an --os=fuchsia option to build.py:"" 2020-06-18 00:24:31 +00:00
canary.dart - Prevent running of the dart_bootstrap script by default. 2015-12-11 13:23:12 -08:00
clean_output_directory.py Mass format python with yapf 2019-08-05 20:34:31 +00:00
copy_dart.py Force copy_dart.py to use python2.7 2020-05-29 22:57:27 +00:00
copy_tree.py Mass format python with yapf 2019-08-05 20:34:31 +00:00
create_debian_chroot.sh [infra] Remove wheezy left overs from SDK 2020-06-04 18:32:29 +00:00
create_debian_packages.py Mass format python with yapf 2019-08-05 20:34:31 +00:00
create_pkg_manifest.py Mass format python with yapf 2019-08-05 20:34:31 +00:00
create_tarball.py Mass format python with yapf 2019-08-05 20:34:31 +00:00
create_timestamp_file.py Mass format python with yapf 2019-08-05 20:34:31 +00:00
diff_results.dart [vm] DBC is obsolete. Remove dead code. 2019-10-27 18:18:29 +00:00
download_abi_dills.py Mass format python with yapf 2019-08-05 20:34:31 +00:00
download_chromium_sysroot.sh [infra] Remove wheezy left overs from SDK 2020-06-04 18:32:29 +00:00
download_latest_dev_sdk.py Mass format python with yapf 2019-08-05 20:34:31 +00:00
execute_recorded_testcases.py Mass format python with yapf 2019-08-05 20:34:31 +00:00
experimental_features.yaml [dartdev] Implement --enable-experiments for dart run and dart pub run. 2020-06-30 23:22:42 +00:00
FAKE_COMMITS [infra] Empty SDK commit to validate recipe changes 2020-06-22 04:54:21 +00:00
find_depot_tools.py Mass format python with yapf 2019-08-05 20:34:31 +00:00
gen_fuchsia_test_manifest.py Mass format python with yapf 2019-08-05 20:34:31 +00:00
generate_buildfiles.py [vm] DBC is obsolete. Remove dead code. 2019-10-27 18:18:29 +00:00
generate_idefiles.py [Core Libraries] Eliminate the fork in the core libraries. 2020-06-16 23:37:36 +00:00
generate_package_config.dart Remove references to removed tools/gardening 2020-05-12 18:42:30 +00:00
gn.py Reland "[SDK] Adds an SDK hash to kernels and the VM." 2020-07-07 06:08:20 +00:00
gn_helpers.py Mass format python with yapf 2019-08-05 20:34:31 +00:00
line_doc_comments.dart Fix path to pkg/path – .packages resolution works to the root of repo 2017-08-04 11:14:23 -07:00
list_dart_files.py Fix list_files.py so it is python3-compatible. 2020-02-15 00:12:50 +00:00
list_files.py Fix list_files.py so it is python3-compatible. 2020-02-15 00:12:50 +00:00
make_bundle_unittest.py Mass format python with yapf 2019-08-05 20:34:31 +00:00
make_version.py Reland "[SDK] Adds an SDK hash to kernels and the VM." 2020-07-07 06:08:20 +00:00
minidump.py Mass format python with yapf 2019-08-05 20:34:31 +00:00
only_in_release_mode.py Mass format python with yapf 2019-08-05 20:34:31 +00:00
presubmit.sh Refs #25328 Use a portable shebang 2016-01-05 16:26:28 +01:00
promote.py [infra] Remove wheezy left overs from SDK 2020-06-04 18:32:29 +00:00
publish_pkg.py Mass format python with yapf 2019-08-05 20:34:31 +00:00
revert.py Mass format python with yapf 2019-08-05 20:34:31 +00:00
run_abi_tests.py [infra] Add explanation to ABI test logs 2020-06-12 15:58:25 +00:00
run_debian_build.sh [infra] Fix debianpackage build 2019-04-01 08:26:46 +00:00
run_offsets_extractor.sh [vm] Update offsets 2020-01-27 15:59:56 +00:00
safari_factory_reset.py Mass format python with yapf 2019-08-05 20:34:31 +00:00
set_ia32_sysroot.sh [build] Move to Jessie sysroots from Wheezy sysroots. 2018-10-25 15:05:22 +00:00
set_x64_sysroot.sh [build] Move to Jessie sysroots from Wheezy sysroots. 2018-10-25 15:05:22 +00:00
spec_parse.py Mass format python with yapf 2019-08-05 20:34:31 +00:00
task_kill.py Mass format python with yapf 2019-08-05 20:34:31 +00:00
test.dart [infra] Handle test steps with no tested configuration 2020-03-27 07:09:37 +00:00
test.py Mass format python with yapf 2019-08-05 20:34:31 +00:00
upload_abi_dills.sh [SDK] Adds documentation about updating ABI_VERSION 2020-05-07 12:33:37 +00:00
utils.py Reland "[SDK] Adds an SDK hash to kernels and the VM." 2020-07-07 06:08:20 +00:00
validate_test_matrix.dart [presubmit] Add presubmit check for valid test matrix 2020-05-12 05:48:22 +00:00
VERSION Bump ABI version 2020-06-30 18:33:54 +00:00
write_dartdoc_options_file.py Mass format python with yapf 2019-08-05 20:34:31 +00:00
write_revision_file.py Mass format python with yapf 2019-08-05 20:34:31 +00:00
write_version_file.py Mass format python with yapf 2019-08-05 20:34:31 +00:00
yaml2json.dart Mention that libraries.json is generated. 2017-11-01 12:55:42 +00:00
yaml2json.py Mass format python with yapf 2019-08-05 20:34:31 +00:00