Jake Macdonald
d82385e372
drop chmod operations, should not be necessary
...
Bug: https://github.com/dart-lang/sdk/issues/55460
Change-Id: Ic811ff55e4af023ed00e9e2b32b907ef2253114b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/363540
Commit-Queue: Sigmund Cherem <sigmund@google.com >
Reviewed-by: Sigmund Cherem <sigmund@google.com >
Auto-Submit: Jake Macdonald <jakemac@google.com >
2024-04-18 16:34:16 +00:00
Jake Macdonald
f48b8c6908
Support prebuilt macros in the incremental compiler mode for DDC
...
Also adds support for modular tests with precompiled macros, and one test exercising that.
Change-Id: Ie372ea7fcb270ecd55baa54c4ed1c4ae5a527df4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/361261
Reviewed-by: Johnni Winther <johnniwinther@google.com >
Commit-Queue: Johnni Winther <johnniwinther@google.com >
Auto-Submit: Jake Macdonald <jakemac@google.com >
Reviewed-by: Nicholas Shahan <nshahan@google.com >
2024-04-09 07:37:26 +00:00
Sam Rawlins
35075c1c22
modular_test: prepare for curly_braces lint change
...
This aligns this code better with Effective Dart and prepares for the
upcoming lint rule change at https://dart-review.googlesource.com/c/sdk/+/353140 .
Change-Id: Ibfb4736ae01a6e2d843f9faf19eba08c16ff6c92
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353222
Reviewed-by: Joshua Litt <joshualitt@google.com >
Commit-Queue: Joshua Litt <joshualitt@google.com >
Auto-Submit: Samuel Rawlins <srawlins@google.com >
2024-02-20 17:56:29 +00:00
Devon Carew
e2fe203adc
[deps] roll package:lints to the latest
...
Change-Id: I582f956cd4b712203c2f6dd630b4e1384040446d
Tested: analysis clean (this is a lint only related change)
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/329400
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Devon Carew <devoncarew@google.com >
2023-10-05 03:36:59 +00:00
Sigmund Cherem
862d974619
[modular_test] second attempt to fix shards.
...
Turns out the old code was also checking for the presence of the DEPS file.
This is not necessary, it was only done as a safeguard in case we had multiple
folders with the same name lying around. We could add DEPS to the set of files
sent to the shard, but that seems unnecesary here.
Fixes #53059
Change-Id: I83fc2569f42117c5fc4ea90c651cd7627a21a9ba
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/316700
Reviewed-by: Srujan Gaddam <srujzs@google.com >
Commit-Queue: Sigmund Cherem <sigmund@google.com >
2023-07-27 22:29:07 +00:00
Sigmund Cherem
0a3ca5a098
[modular_test]: support running modular_test unit tests in shards.
...
The findRoot method made assumptions that were only true when running the
test in the main shard of our test runners. This caused a few tests to
start failing when sharding was enabled in:
https://github.com/dart-lang/sdk/commit/089364baab3a6d3fc1a35a1f2d270cf1fb772a40
Fixes #53059
Change-Id: I32c59d6ae396fba5cbf19491eb17d7b90a7b8cd9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/316642
Reviewed-by: Srujan Gaddam <srujzs@google.com >
Commit-Queue: Sigmund Cherem <sigmund@google.com >
2023-07-27 19:19:43 +00:00
Devon Carew
b4072ff64f
[pkg/modular_test] use package:lints/recommended.yaml
...
Change-Id: Icbd17513120846322df2923feb7d18abd82d3ece
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/282385
Reviewed-by: Sigmund Cherem <sigmund@google.com >
Commit-Queue: Devon Carew <devoncarew@google.com >
2023-02-10 23:50:31 +00:00
Josh Soref
ef42a0b110
Spelling pkg analyzer lib
...
Closes https://github.com/dart-lang/sdk/pull/50860
GitOrigin-RevId: b27066c37f93c8c6d1123d6ebd6a4c0afcf59844
Change-Id: I15fa4aea1dad45daf168e34d1c4450320ec9b40a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/277742
Commit-Queue: Alexander Thomas <athom@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Alexander Thomas <athom@google.com >
2023-01-25 14:08:27 +00:00
Josh Soref
9e4dc755cb
Spelling pkg
...
Closes https://github.com/dart-lang/sdk/pull/50921
GitOrigin-RevId: 6b1ca502b6722b0a987f33ace66f65cbd2c24e23
Change-Id: I74e4ff3c8e759c576036d6b791bd7734ebd215d8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/278536
Reviewed-by: Alexander Thomas <athom@google.com >
Commit-Queue: Alexander Thomas <athom@google.com >
2023-01-19 10:06:29 +00:00
Anis Alibegić
40e18905f2
Fixed various typos in a lot of files
...
Closes https://github.com/dart-lang/sdk/pull/49478
TEST=Manual
GitOrigin-RevId: f4c9c6869dfe73639295e86574a021523b3d374d
Change-Id: I134a97caed4eec59d70e9cbca16b7e9a472cf2c1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/251902
Reviewed-by: Michael Thomsen <mit@google.com >
Commit-Queue: Alexander Thomas <athom@google.com >
Reviewed-by: Aske Simon Christensen <askesc@google.com >
Reviewed-by: Kevin Chisholm <kevinjchisholm@google.com >
Reviewed-by: Alexander Thomas <athom@google.com >
2022-07-25 12:21:59 +00:00
Devon Carew
c677a0c36f
[pkg/modular_test] analyze with package:lints
...
Change-Id: I8fd66acdc2ad0c39f959785039d0001d0148f1a6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/250765
Reviewed-by: Nate Bosch <nbosch@google.com >
Commit-Queue: Devon Carew <devoncarew@google.com >
2022-07-06 21:36:40 +00:00
Sigmund Cherem
02cf9ea69c
[modular_test]: migrate modular_test to null safety
...
Change-Id: I516d05469dd2c2bf57e4ec079fc1007ccf4b4783
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240653
Reviewed-by: Nicholas Shahan <nshahan@google.com >
Commit-Queue: Sigmund Cherem <sigmund@google.com >
2022-04-22 03:13:19 +00:00
Sigmund Cherem
d2d810a8e8
[modular_test] Remove uses of .packages altogether.
...
Embed in the modules.yaml any extra paths needed for package dependencies
instead.
This is one step to help towards https://github.com/dart-lang/sdk/issues/48275
Change-Id: I22ef02b2b2327a0c798f2fea73d59c758a8bb0bb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240651
Reviewed-by: Joshua Litt <joshualitt@google.com >
Commit-Queue: Sigmund Cherem <sigmund@google.com >
2022-04-09 00:35:13 +00:00
Sigmund Cherem
441a762352
[modular_test] no longer generate .packages within modular test suites
...
Since the null-safety test migration we've been generating both a .packages file
and a package_config.json file. This deletes the use of the old .packages file
and updates all references to use the new file.
Change-Id: Iecef64ac8ed8579338795ad5327765118d643236
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240650
Reviewed-by: Joshua Litt <joshualitt@google.com >
2022-04-09 00:35:13 +00:00
Joshua Litt
b1fbe0c01d
[dart2js] Support running modular analysis alongside building a dill.
...
Change-Id: If10385445c5f6267e2de20b090b37e1741b7ace7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/237925
Reviewed-by: Johnni Winther <johnniwinther@google.com >
Reviewed-by: Sigmund Cherem <sigmund@google.com >
Commit-Queue: Joshua Litt <joshualitt@google.com >
2022-03-30 23:59:00 +00:00
Alexander Aprelev
b453c6bcba
[gardening] Fix env_test/has_mirror_support.
...
Fix the test so it reports that mirrors are not supported in aot configuration.
Fixes https://github.com/dart-lang/sdk/issues/48125
Change-Id: I07fceebf8cbee8048988c8bd5287c8aec1bb8f0e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/227582
Reviewed-by: Lasse Nielsen <lrn@google.com >
Reviewed-by: Sigmund Cherem <sigmund@google.com >
Commit-Queue: Alexander Aprelev <aam@google.com >
2022-01-14 23:33:11 +00:00
Konstantin Shcheglov
57bd563852
Prepare for switching to null safe package_config
...
The CL that does the switch is green, but I guess we might want to
separate the switch from preparatory changes, if this is possible.
https://dart-review.googlesource.com/c/sdk/+/180242
Change-Id: I1a553fa15120dbc55ff879ab56180423ff564d9b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/180282
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Jake Macdonald <jakemac@google.com >
2021-01-21 05:04:33 +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
Nicholas Shahan
2aa6e73ae7
[dartdevc] Cleanup all temporary nnbd modular tests
...
All of these tests are now running under the regular test infrastructure.
The only reason they were created as modular tests was because we wanted more
control over the SDK sources used.
Change-Id: I2ad5aa616ff8bccd10cfac2d49bfaa39ab50c192
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/128801
Reviewed-by: Mark Zhou <markzipan@google.com >
Commit-Queue: Nicholas Shahan <nshahan@google.com >
2019-12-18 00:43:44 +00:00
Nicholas Shahan
f99a28407f
[dartdevc] Temporarily run NNBD tests with a "hybrid" SDK
...
- Adds a temporary modular test suite to prevent regressions on NNBD tests.
- New modular tests build the standard SDK with the dart:_runtime library from
the NNBD fork.
- Unblocks DDC development while the forked SDK is in a state that does not
build.
Change-Id: If422f5d19237f9d11e26aad503f1be960b331c57
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/123541
Reviewed-by: Mark Zhou <markzipan@google.com >
Commit-Queue: Nicholas Shahan <nshahan@google.com >
2019-10-30 20:10:13 +00:00
Karl Klose
6b19f37b5a
[infra] Change option name in modular test runner to be consistent with test.py
...
Change-Id: I16baa346daceb8f8c9c807f17ea587f68b227909
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121301
Reviewed-by: Sigmund Cherem <sigmund@google.com >
Commit-Queue: Karl Klose <karlklose@google.com >
2019-10-21 08:13:44 +00:00
Sigmund Cherem
080ff1f3b9
Fix parsing of output-directory Uri in windows
...
Change-Id: I3e3417e5048f8545056d99df35ca2de140dc31f5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/105680
Reviewed-by: Nicholas Shahan <nshahan@google.com >
Commit-Queue: Sigmund Cherem <sigmund@google.com >
2019-06-11 23:21:43 +00:00
Sigmund Cherem
0960f72517
Fixes in modular test runner:
...
- ensure output directory has a trailing slash
- ensure tests complete before returning from runner
- flush log files (probably not necessary)
TBR=athom@google.com
Change-Id: Ie415266fd311d6319e0853a785e867770c0587a0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/105472
Reviewed-by: Sigmund Cherem <sigmund@google.com >
Reviewed-by: Alexander Thomas <athom@google.com >
Commit-Queue: Sigmund Cherem <sigmund@google.com >
2019-06-10 22:39:06 +00:00
Sigmund Cherem
586e05e415
Set exitcode on generic runner if no output log folder is provided.
...
This is a temporary way to ensure the bots will fail on these test suites until
the test matrix provides the output directory. At that point, the .json files
will be used to track test failures and the exit code is no longer necessary
TBR=vsm@google.com
Change-Id: Ie96c3835760de02addc89f7ccbcb3ccb04c21940
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/105405
Reviewed-by: Sigmund Cherem <sigmund@google.com >
Reviewed-by: Vijay Menon <vsm@google.com >
Commit-Queue: Sigmund Cherem <sigmund@google.com >
2019-06-07 22:59:49 +00:00
Sigmund Cherem
efaec6449d
Add --use-sdk support for dart2js and ddk modular tests
...
This allows the test runners to use snapshots instead of using the compilers
directly from source.
Change-Id: I70664a740bed8de647adb658bd521cd574aa685e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/104385
Commit-Queue: Sigmund Cherem <sigmund@google.com >
Reviewed-by: Alexander Thomas <athom@google.com >
Reviewed-by: Johnni Winther <johnniwinther@google.com >
2019-06-07 21:54:56 +00:00
Vijay Menon
3b5a187726
[dartdevc] move ddc internal libraries under sdk
...
Note, this has the effect of including all DDC Dart sources with the
shipped SDK: we ship everything under sdk/lib.
This should enable https://github.com/dart-lang/build/issues/2262
Change-Id: If66bc7c620034e7f2acf7d2c3e9524a408417681
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/104383
Commit-Queue: Vijay Menon <vsm@google.com >
Reviewed-by: Sigmund Cherem <sigmund@google.com >
2019-06-04 13:47:29 +00:00
Sigmund Cherem
1045ef1ceb
Use generic test runner to log data using the test infrastructure jsonl format
...
Mostly this is adding an abstraction so we can produce the jsonl files that will
allow us to track the status of each test individually.
On a separate CL I'll be moving the tests out of the current unit tests into
their own step in the test matrix.
Change-Id: Id4537db1458949370195124164b120b49a7a526c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/104384
Commit-Queue: Sigmund Cherem <sigmund@google.com >
Reviewed-by: Johnni Winther <johnniwinther@google.com >
2019-06-03 19:16:49 +00:00
Johnni Winther
edae8c474c
Fix _createSdkModule for Windows
...
Change-Id: I3392742a80a3f27062e0d48c02f58b4ddf20c376
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/103810
Reviewed-by: Sigmund Cherem <sigmund@google.com >
Reviewed-by: Johnni Winther <johnniwinther@google.com >
Commit-Queue: Johnni Winther <johnniwinther@google.com >
2019-05-31 14:20:24 +00:00
Sigmund Cherem
4c9bf5479f
Extract generic runner logic, now dart2js modular test is mostly dart2js specific
...
Change-Id: I73f1a5590681871a54c5bc8dc1ad0d7d0f71024e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/103660
Reviewed-by: Johnni Winther <johnniwinther@google.com >
Commit-Queue: Sigmund Cherem <sigmund@google.com >
2019-05-29 19:23:33 +00:00
Sigmund Cherem
baa721ba23
Add an sdk module to the modular_test pipeline
...
+ and use it in the dart2js modular tests
Change-Id: I66cf29dcea7fb705135049e7a6ea4eb17052f3d9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/103575
Commit-Queue: Sigmund Cherem <sigmund@google.com >
Reviewed-by: Johnni Winther <johnniwinther@google.com >
2019-05-24 19:09:12 +00:00
Johnni Winther
052272d998
Avoid dependency on file system order in modular_test/loader_test
...
Change-Id: Ic7d5197c9d914998dcd761c42763d9e9e36ad507
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/103624
Reviewed-by: Johnni Winther <johnniwinther@google.com >
Commit-Queue: Johnni Winther <johnniwinther@google.com >
2019-05-24 11:52:32 +00:00
Sigmund Cherem
edadc9c881
Add support for caching results of shared modules.
...
This is important as we will soon add support for compiling the sdk as a
module and we would like to only compile it once when running a suite of
tests.
+ also enable caching in the dart2js pipeline test.
Change-Id: Ic9043f868123164f3ab425ba73f7428416b05fc0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/103485
Commit-Queue: Sigmund Cherem <sigmund@google.com >
Reviewed-by: Johnni Winther <johnniwinther@google.com >
2019-05-24 01:27:13 +00:00
Sigmund Cherem
0c2738f616
Allow steps to declare more than one result
...
Change-Id: Ifd2a19f8ff771d464737bb27e22cf05a43cc2a9f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/103020
Reviewed-by: Johnni Winther <johnniwinther@google.com >
2019-05-20 23:25:22 +00:00
Sigmund Cherem
84fd1254ec
Add tests for only-main behavior
...
+ move computeTransitiveDependencies to a shared location
Change-Id: I9bfad3d1799df2be36f28fac1a6ea9a8b4c4b023
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/102225
Reviewed-by: Johnni Winther <johnniwinther@google.com >
2019-05-20 23:25:22 +00:00
Sigmund Cherem
475f55d46b
Add dart2js modular test suite under a unit test.
...
At this time this only compiles to .dill and then compiles from multiple modular
dill files.
Next steps: add the global split and add the modular data bits
Change-Id: I3399776dbd5187ddb0a3e2fdd307622a736570c9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/102126
Commit-Queue: Sigmund Cherem <sigmund@google.com >
Reviewed-by: Johnni Winther <johnniwinther@google.com >
2019-05-17 22:21:05 +00:00
Sigmund Cherem
1f409716d6
Add packageBase to simplify how we build packages files and how we process
...
package import uris
THis is not actively used in the loader unit tests yet, but will be in the
dart2js pipeline.
Change-Id: Ie0db6243c735e2fba396f2a5a156d52ea1e53bbe
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/102125
Reviewed-by: Johnni Winther <johnniwinther@google.com >
2019-05-17 22:21:05 +00:00
Sigmund Cherem
0edab8264a
Support steps that only run on the main module
...
I'll work on a follow up CL to add unit tests for it.
Change-Id: Ifa142731eb60ba14fb3187b5f3e9333cef12f751
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/102124
Reviewed-by: Johnni Winther <johnniwinther@google.com >
Commit-Queue: Sigmund Cherem <sigmund@google.com >
2019-05-10 19:43:58 +00:00
Sigmund Cherem
8aa2c13c9f
Exclude parents when initializing visible data
...
Change-Id: Ib7463f3fae0eff3e3028630a3f87c4afbe67fb0a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/102142
Reviewed-by: Johnni Winther <johnniwinther@google.com >
2019-05-10 19:43:58 +00:00
Sigmund Cherem
5de409bfa1
Ensure subfolders in input sources paths are created first
...
Change-Id: I35db42f4fc396f33445528bea6e7c9bcc8f8c10e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/102141
Reviewed-by: Johnni Winther <johnniwinther@google.com >
2019-05-10 19:43:58 +00:00
Sigmund Cherem
05a9cdc3d5
Fix type parameter in pipeline subclasses
...
Change-Id: I2d178fa5e8f063451681efe3796174c8dade447e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/102123
Reviewed-by: Johnni Winther <johnniwinther@google.com >
2019-05-10 19:43:58 +00:00
Sigmund Cherem
ef0c812b0d
Add support for loading a modular test folder and specifying deps in yaml
...
To test the loading logic, I created sample modular test folders which also
illustrate what modular tests will look like in the future.
Change-Id: Iaa8e076e5be66107391d258f5c72456c89841123
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/101780
Commit-Queue: Sigmund Cherem <sigmund@google.com >
Reviewed-by: Johnni Winther <johnniwinther@google.com >
2019-05-08 21:18:19 +00:00
Sigmund Cherem
73639f9e1f
pkg/modular_test: follow up cleanup
...
* resultKind -> resultId (missed this when I renamed dataKind to dataId)
* refactor test/pipeline_common.dart: made the test strategy use generic steps so the concept of
concat/lowercase/replace-join now is encapsulated in pipeline_common, while memory_pipeline_test
and io_pipeline_test know how to create steps that apply an opaque function.
Change-Id: I9e425845931db8722a51c1044f6b74b0c8c26ae4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100940
Reviewed-by: Johnni Winther <johnniwinther@google.com >
Commit-Queue: Sigmund Cherem <sigmund@google.com >
2019-05-01 16:38:59 +00:00
Sigmund Cherem
5896692b42
Introduce pkg/modular_test: a package to specify modular tests
...
This initial commit includes: the definitions of a modular test, a module, a
pipeline, and an in-memory implementation of such pipeline, and an IO implementation.
Change-Id: I69056342da8ba126459064d7751d5dbe75ebcfca
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100627
Reviewed-by: Johnni Winther <johnniwinther@google.com >
2019-04-30 20:25:38 +00:00