1
0
mirror of https://github.com/dart-lang/sdk synced 2024-07-08 12:06:26 +00:00
Commit Graph

44 Commits

Author SHA1 Message Date
Alexander Thomas
d2bd43f43e [python3] Migrate PRESUBMIT.py files
* Force depot_tools to use python3 results (USE_PYTHON3=True).
* Fixes the dart format presubmit check.
* Remove broken DOM tools presubmit check.

TEST=Manually provoked errors and ran git cl presubmit -v -f.

Cq-Include-Trybots: luci.dart.try.shared:presubmit-try
Change-Id: I8ba46e2ae1640f1b2f82e18bc8024e0aa4838b2b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/210123
Reviewed-by: Ben Konyi <bkonyi@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2021-08-16 08:29:54 +00:00
Ben Konyi
44ffad59d2 Pass filename instead of piping contents through stdin to dart format in
PRESUBMIT.py

FIXES=#46600

Change-Id: I69358185b5a8dfc863f17cd4beb0209592d3be09
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/206681
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2021-07-13 18:36:57 +00:00
Ben Konyi
cb6d0e03c1 Update PRESUBMIT.py to use dart format instead of dartfmt
`dartfmt` is deprecated and will be removed in a future release.

Change-Id: I6572efd1ba2919f6891a90c890a9475933f94202
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/206584
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2021-07-12 23:07:38 +00:00
Leaf Petersen
e585bd5655 Add gclient sync to package_config.json presubmit message
Change-Id: I1f53911efc0e809e23bdee4cd522aff9b76c8c53
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/184640
Auto-Submit: Leaf Petersen <leafp@google.com>
Commit-Queue: Leaf Petersen <leafp@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
Reviewed-by: Gary Roumanis <grouma@google.com>
2021-02-12 01:44:47 +00:00
Leaf Petersen
fe3cd179cf Add presubmit check for package_config.json .
Change-Id: Ida784b6e73601e0309e10b2808f46e70926eabc0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/183045
Commit-Queue: Leaf Petersen <leafp@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2021-02-06 01:02:38 +00:00
Vyacheslav Egorov
4b6f0f5c7b Revert "Require that all changes to VM have TEST line"
This reverts commit a2ceec3e25.

Reason for revert: presubmit hooks are run very early (before CL description is edited), which breaks common workflows.

Original change's description:
> Require that all changes to VM have TEST line
>
> All changes touching one of the following directories will after this
> change be required to contain TEST= line.
>
>     runtime/vm
>     runtime/bin
>     runtime/lib
>     runtime/include
>     runtime/observatory
>     runtime/observatory_2
>     runtime/platform
>     sdk/lib/_internal/vm
>     pkg/vm
>
> This line is supposed to describe in free form how change was validated,
> for example by listing existing or newly added tests.
>
> The goal behind this requirement is to remind both reviewer and change
> author that changes to the code base are in general expected to be
> covered by tests, especially when CL is addressing a regression which
> slipped through existing testing.
>
> Having TEST line in the description would allow both author and
> reviewer to take additional time to consider if validation was
> sufficient or additional test coverage is needed.
>
> The inspiration for this line comes from Chromium[1].
>
> [1] https://chromium.googlesource.com/chromiumos/docs/+/master/contributing.md#describe-testing-performed
>
> TEST=changed file in runtime/vm and run git cl presubmit
>
> Change-Id: Ie16cf7c14af18e3a22a17084c0aebb4d1dfd6d23
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/169640
> Commit-Queue: Vyacheslav Egorov <vegorov@google.com>
> Reviewed-by: Martin Kustermann <kustermann@google.com>
> Reviewed-by: Siva Annamalai <asiva@google.com>

TBR=vegorov@google.com,kustermann@google.com,asiva@google.com

Change-Id: Ib2e198c322447e8d1166d5d05b2f3209d168f1e9
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/169887
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
Commit-Queue: Vyacheslav Egorov <vegorov@google.com>
2020-10-30 15:28:41 +00:00
Vyacheslav Egorov
a2ceec3e25 Require that all changes to VM have TEST line
All changes touching one of the following directories will after this
change be required to contain TEST= line.

    runtime/vm
    runtime/bin
    runtime/lib
    runtime/include
    runtime/observatory
    runtime/observatory_2
    runtime/platform
    sdk/lib/_internal/vm
    pkg/vm

This line is supposed to describe in free form how change was validated,
for example by listing existing or newly added tests.

The goal behind this requirement is to remind both reviewer and change
author that changes to the code base are in general expected to be
covered by tests, especially when CL is addressing a regression which
slipped through existing testing.

Having TEST line in the description would allow both author and
reviewer to take additional time to consider if validation was
sufficient or additional test coverage is needed.

The inspiration for this line comes from Chromium[1].

[1] https://chromium.googlesource.com/chromiumos/docs/+/master/contributing.md#describe-testing-performed

TEST=changed file in runtime/vm and run git cl presubmit

Change-Id: Ie16cf7c14af18e3a22a17084c0aebb4d1dfd6d23
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/169640
Commit-Queue: Vyacheslav Egorov <vegorov@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2020-10-30 09:16:41 +00:00
Leaf Petersen
d44457f79d [Core Libraries] Eliminate the fork in the core libraries.
Move the nnbd core libraries from sdk_nnbd to sdk, and updates
references in build files and elsewhere accordingly.

Change-Id: I09760fe1e006657aacdfe80f3b22fdf6f7e30a9f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151121
Commit-Queue: Leaf Petersen <leafp@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2020-06-16 23:37:36 +00:00
Martin Kustermann
2c69fb1d53 [vm] Update PRESUBMIT.py to also check for synchronized changes between runtime/tests/vm/{dart,dart_2}
Change-Id: Iaa026a312933e14fd3d56acb4d89257efd40b6b1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150221
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2020-06-06 00:50:10 +00:00
Daco Harkes
2b84822b3a [nnbd] Make PRESUBMIT.py not warn about status files
Status files have different names in different folders.

Change-Id: I291b38cc6dae96ff7101c204a93d247580c64313
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149841
Commit-Queue: Daco Harkes <dacoharkes@google.com>
Auto-Submit: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2020-06-03 11:53:39 +00:00
Martin Kustermann
e50a064034 [nnbd] Make PRESUBMIT.py warn on upload if tests are not changed in NNBD and non-NNBD suites
This CL ensures that the presubmit check will complain if newly added
tests were only added to NNBD suite but not to non-NNBD (or vice versa).

Also add ffi test suites to the list of checked directories.

Change-Id: I090064b99e5ca30444ab53edf1f262572f60beb9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149426
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2020-05-30 08:05:11 +00:00
Karl Klose
052c642151 [presubmit] Add presubmit check for valid test matrix
This change adds a rule to the SDK PRESUBMIT.py to validate that the
test matrix used by the CI/CQ builders does not contain errors.

Change-Id: Ie967e71dda76677f4db84c1e9e613d702b57069f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/147547
Commit-Queue: Karl Klose <karlklose@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2020-05-12 05:48:22 +00:00
Nicholas Shahan
2aa6954014 Fix presubmit file path comparison
I recently added this presubmit to verify changes get replicated
between versions of the SDK and the paths of the current SDK
didn't get created correctly causing it to warn even when you
correctly replicated the changes.

Change-Id: If69e0375dfe097e0210c4249d77b49f0c3537a2c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/143640
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2020-04-16 16:16:24 +00:00
Nicholas Shahan
3b300f519d [presubmit] Add check for DDC's dart:_runtime lib
The logic in one subdirectory of the SDK is being unforked so
we need to ensure changes are mirrored in both directions.

Change-Id: I6485bcafe4ebaf135c5683660e8cac3bd9945033
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/143003
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2020-04-10 17:52:24 +00:00
Robert Nystrom
730a46093b Add some minimal presubmit checks to keep forked SDK tests in sync.
This only validates that if a test and its fork exist that the CL
touches both. There are lots of other cases we could imagine checking
like if you *add* a new test on one side, you should one on the other.
But those are likely to have a lot of false positives now while the
migration is happening and new NNBD tests are being written.

So for now, this just tries to check that tests that have been forked
at least don't diverge. It's a start.

Change-Id: Id6a9c39699a510da1a4a4702879210f94cd69c26
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/131945
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Jonas Termansen <sortie@google.com>
Commit-Queue: Bob Nystrom <rnystrom@google.com>
2020-01-16 18:50:27 +00:00
asiva
b1c6d89fb0 [VM/runtime] Remove support for loading URLs through service isolate
- Removes the load port functionality from the service isolate, this was
  used to load sources in Dart 1 and is pretty much dead code in Dart 2
- Moves resolution of URIs and Package URI (based on package map) to the
  individual isolates instead of sending a request to the service isolate
- Setups the package map lazily as it is needed only if resolveURI is
  called in Dart code, it is not needed for loading/compiling sources
  (this is now done in the front end).
- Removed Dart_ServiceWaitForLoadPort() methods from the Dart C API as
  it is not used anywhere.

Change-Id: I6c3704bc431bdcd49bf074eb58bee1ed492ccccb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/129742
Commit-Queue: Siva Annamalai <asiva@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2019-12-27 17:30:05 +00:00
Ryan Macnak
623fd5c8cd Add embedder/vm layer checks to presubmits.
Change-Id: Idcfe4692ac0c047ed9a0fb817a17513ff964a2eb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119080
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2019-09-30 16:28:07 +00:00
Jonas Termansen
11c5c34d95 [infra] Check whether sdk and sdk_nnbd are in sync on presubmit.
Change-Id: I3da7f3f59f941fdb25b1fde941ec0a91c710cb4e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/116761
Reviewed-by: William Hesse <whesse@google.com>
2019-09-11 10:42:35 +00:00
Nate Bosch
e82d1115ac Remove _CheckBuildStatus on commit
See discussion at https://dart-review.googlesource.com/c/sdk/+/116364

Checking the tree is handled in gerrit.

Change-Id: I2fe6b5f40ba1c80df6dade5accc6c4b5e2eae58d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/116549
Auto-Submit: Nate Bosch <nbosch@google.com>
Reviewed-by: Jonas Termansen <sortie@google.com>
Commit-Queue: Jonas Termansen <sortie@google.com>
2019-09-10 20:44:10 +00:00
Nate Bosch
557f9121a5 Add canned_checks.CheckPatchFormatted to presubmit
This will include checks for python file formatting thanks to the
presence of the `.style.yapf` file at the root of the repo.

- Refactor to a `_CommonChecks` to reduce duplication and use
  `results.extend` so that each check is defined on its own line.
- Add the `canned_checks.CheckPatchFormatted` check.

See discussion at https://dart-review.googlesource.com/c/sdk/+/111600

Change-Id: I089112c309bf6b9a518c85fa6b66200b75519e33
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/116364
Reviewed-by: Jonas Termansen <sortie@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
2019-09-10 19:22:52 +00:00
Martin Kustermann
c0e327ea85 [vm] Add runtime/.clang-tidy and run clang-tidy in parallel (via dart script)
Change-Id: I1ef69f0be521db2466d1e60663c75c177bc4b778
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/115402
Reviewed-by: Samir Jindel <sjindel@google.com>
2019-09-04 20:33:50 +00:00
Martin Kustermann
9a3680c0ef [vm] Fix presubmit script to only invoke clang-tidy if there are any .h/.cc files
Change-Id: I180392e5f77f6a5fa81c529b109e35c76f4deef6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/115367
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2019-09-04 12:08:27 +00:00
Martin Kustermann
1f2316adc5 [vm] Add clang-tidy PRESUBMIT.py check on linux, flag implicit-to-bool conversions
Fixes also some implicit to bool conversions in native_api_impl.cc

Change-Id: I31aecaa1e442f7f934de46ee019765f9f0746658
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/115248
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2019-09-04 08:53:12 +00:00
Nate Bosch
55f81f2210 Mass format python with yapf
- Add `.style.yapf` with configuration to use Google style.
- Run `yapf` on all `.py` files in this repo.
- Manually fix one trailing space in a doc string.
- Run `git cl format runtime` to satisfy presubmit.

Change-Id: I7e6bd11e91f07926b9188362599af398551eed79
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/111600
Commit-Queue: Nate Bosch <nbosch@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2019-08-05 20:34:31 +00:00
Nate Bosch
bb42e9dad3 Allow lints in status file tests and front_end
See comments on https://dart-review.googlesource.com/c/sdk/+/106726

- Add a `should_skip` argument to `_CheckFormat` to suppress warnings in
  files that are opted out of format checking.
- Skip status file lint checks for files under
  "pkg/status_file/test/data" and "pkg/front_end".

Change-Id: I485cf32c5193bbbc7ef2b92bfc401399acda85c7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/106925
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
2019-06-25 17:45:12 +00:00
Robert Nystrom
6762d95c88 Don't check multitests for dartfmt in the presubmit.
Change-Id: Icb6f5f2b170dc3413d7d8de5dbd3001f3b8a053c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/106728
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Jacob Richman <jacobr@google.com>
Commit-Queue: Jacob Richman <jacobr@google.com>
Commit-Queue: Bob Nystrom <rnystrom@google.com>
2019-06-19 22:42:51 +00:00
Peter von der Ahé
65dde13f1b Don't check formatting of Front-End test cases
Change-Id: Ie3e55422dc891f3ba37df887f5c96751669dd4cc
Reviewed-on: https://dart-review.googlesource.com/c/90224
Commit-Queue: Peter von der Ahé <ahe@google.com>
Commit-Queue: Kevin Millikin <kmillikin@google.com>
Auto-Submit: Peter von der Ahé <ahe@google.com>
Reviewed-by: Kevin Millikin <kmillikin@google.com>
2019-01-18 13:18:55 +00:00
Vyacheslav Egorov
a9ce969e53 [vm] Decouple growable_array.h and zone.h from thread.h
- Introduce a slimmed down version of thread.h, which just depends on the
Zone and StackResource.
- Introduce a layering check that would prevent the coupling in the future.

This is the first step towards decoupling compiler from runtime.

There are multiple reasons to introduce the decoupling but the main
reason currently is to introduce a controlled surface through which
compiler reaches into runtime to catch any places where runtime word size
might influence the compiler and then enable building compiler that
targets 32-bit runtime but is embedded into a 64-bit runtime.

Issue https://github.com/dart-lang/sdk/issues/31709

Change-Id: Id63ebbaddca55dd097298e51c90d957a73fa476e
Reviewed-on: https://dart-review.googlesource.com/c/87182
Commit-Queue: Vyacheslav Egorov <vegorov@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2019-01-11 20:47:10 +00:00
Bob Nystrom
f6ca2c1d8f Remove the Dart 1 tests.
This deletes:

tests/co19
tests/corelib
tests/html
tests/isolate
tests/language
tests/lib

It does not delete tests/standalone because apparently there are tests
in there that are not in standalone_2. (I assume they were added after
the test migration. I don't know why they were added there.)

I have tried to remove references to the old tests from various scripts
and tools but may have missed some. (As you can imagine, grepping for
"lib" does not have the best signal-to-noise ratio.)

"It was a pleasure to burn. It was a special pleasure to see things
eaten, to see things blackened and changed. With the brass nozzle in his
fists, with this great python spitting its venomous kerosene upon the
world, the blood pounded in his head, and his hands were the hands of
some amazing conductor playing all the symphonies of blazing and burning
to bring down the tatters and charcoal ruins of history."

- Ray Bradbury, Fahrenheit 451

Change-Id: If3db4a50e7a5ee25aff8058b1483e2ce8e68424e
Reviewed-on: https://dart-review.googlesource.com/c/75420
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Reviewed-by: William Hesse <whesse@google.com>
Reviewed-by: Terry Lucas <terry@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2018-10-11 23:45:18 +00:00
Jens Johansen
9381424204 Fix presubmit on Windows. Dart executable is not called .bat
Change-Id: I3e9212a134dc3302324625aa201466bfb972a788
Reviewed-on: https://dart-review.googlesource.com/53363
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2018-05-02 08:40:59 +00:00
Lasse R.H. Nielsen
9ec9a4c8da Move new tests from tests/isolate to tests/lib_2/isolate.
Fix test expectations.
Improve test (overly complex).
Mark tests/isolate as immutable to the presubmit script (like other migrated Dart 1 test directories).

(Gardening)

Change-Id: Iec59c59ca992b3dacafbf82176e4e8bd8c5bd3c5
Reviewed-on: https://dart-review.googlesource.com/42945
Reviewed-by: William Hesse <whesse@google.com>
2018-02-22 10:03:23 +00:00
Zachary Anderson
1660f696b6 [infra] Add and check 'allowed_hosts' in DEPS file
Change-Id: I3f9bb1b903c36da537357d6cdc629e0802b6393a
Reviewed-on: https://dart-review.googlesource.com/32680
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Zach Anderson <zra@google.com>
2018-01-08 18:31:24 +00:00
Morten Krogh-Jespersen
3db4b1070b Normalize all status files and enable presubmit hook.
This CL normalizes all status files by the status file normalizer found at
pkg/status_file/bin/normalize.dart.

To make sure all status files are kept in pristine condition, a linter is placed
on the presubmit hook. The linter can be found at pkg/status_file/bin/lint.dart.

Bug:
Change-Id: I20bdb74824be65f079b8c9ab08b7ae38394d637f
Reviewed-on: https://dart-review.googlesource.com/24112
Commit-Queue: Morten Krogh-jespersen <mkroghj@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2017-12-07 08:38:30 +00:00
Terry Lucas
de187713ac Report a presubmit error if a test file in Dart 1.0 is modified or added.
Only allow .status files in Dart 1.0 test directories to be changed.

R=rnystrom@google.com

Change-Id: Ic95b76eb53e7d5ab6b795425a7a97f0fded01a5b
Reviewed-on: https://dart-review.googlesource.com/14120
Commit-Queue: Terry Lucas <terry@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Terry Lucas <terry@google.com>
2017-10-17 15:16:30 +00:00
Bob Nystrom
edee53f93d Bring back the deleted 1.0 corelib tests.
What is dead may never die.

Change-Id: I80ef766b8ce2b6e1416df8e1f9b91fb74169dc79
Reviewed-on: https://dart-review.googlesource.com/7483
Reviewed-by: William Hesse <whesse@google.com>
2017-09-21 18:29:40 +00:00
Lasse Reichstein Holst Nielsen
c0fd3eb119 Change presumbit to not provide unix-specific syntax on Windows.
Copy-over of https://codereview.chromium.org/3005843002/

Change-Id: I8b95201f0570a249054597fffac89cc848791865
Reviewed-on: https://dart-review.googlesource.com/4341
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
2017-09-11 08:58:53 +00:00
Janice Collins
51cc9689b3 Remove corelib and corelib_strong and migrate last two remaining tests.
This includes a migration of linked_hash_map_from_iterable_test and
stacktrace_current_test, which were migrated without changes.

BUG=
R=rnystrom@google.com, whesse@google.com

Review-Url: https://codereview.chromium.org/3004073002 .
2017-09-01 08:11:15 -07:00
Bob Nystrom
cc1f6a7a35 Don't treat unparseable files as presubmit dartfmt errors.
If the file has a syntax error, it can't be formatted. We don't want to
block submission on that since we do have lots of files in the repo
that deliberately contain syntax errors.

R=jacobr@google.com

Review-Url: https://codereview.chromium.org/2987883002 .
2017-07-25 17:05:11 -07:00
Terry Lucas
0afa1428a1 Added checks for tests.
PRESUBMIT will check:
  1. a new test can NOT be added to Dart 1.0 the new test can only be added to DDC.
  2. a existing Dart 1.0 test changed must have its corresponding DDC test updated too (if it exists).

Presubmit errors may appear as:

** Presubmit ERRORS **
Error: If you change a Dart 1.0 test, you must also update the DDC test:
1. Dart 1.0 test changed: tests/corelib/symbol_map_helper.dart
1. DDC  test must change: tests/corelib_2/symbol_map_helper.dart
2. Dart 1.0 test changed: tests/language/compiler_annotations.dart
2. DDC  test must change: tests/language_2/compiler_annotations.dart

R=jacobr@google.com, rnystrom@google.com

Error: New Dart 1.0 test can not be added the test must be added as a DDC test:
Fix tests:
1. New Dart 1.0  test: tests/corelib/new_test.dart
1. Should be DDC test: tests/corelib_2/new_test.dart
2. New Dart 1.0  test: tests/language/new_test.dart
2. Should be DDC test: tests/language_2/new_test.dart
Review-Url: https://codereview.chromium.org/2982043002 .
2017-07-18 08:20:40 -07:00
Jacob Richman
774f261165 Print the correct path to dartfmt in the presubmit error message.
BUG=
R=jmesserly@google.com

Review-Url: https://codereview.chromium.org/2795653005 .
2017-04-04 16:13:31 -07:00
Jacob Richman
409150339f Add presubmit check that runs dartfmt
BUG=
R=johnmccutchan@google.com, whesse@google.com, zra@google.com

Review-Url: https://codereview.chromium.org/2761653003 .
2017-03-21 16:18:48 -07:00
ricow@google.com
14a2204215 Remove presubmit suppression.
dart-status is back in shape

R=kustermann@google.com

Review URL: https://codereview.chromium.org//22875028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26423 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-21 11:02:39 +00:00
ricow@google.com
c104c70ad7 Disable status tree check until we figure out what is wrong with dart-status.appspot.com
R=kustermann@google.com, ngeoffray@google.com

Review URL: https://codereview.chromium.org//23270003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26257 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-16 07:38:19 +00:00
ricow@google.com
bfeb07b702 Add gcl presubmit script to the dart src tree.
Currently I just added a tree status check but we can extend this over time.
Review URL: https://chromiumcodereview.appspot.com//10891021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11575 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 06:11:22 +00:00