This reverts commitef8aaa3301. Reason for revert: It doesn't seem to solve the flutter issue, A roll into flutter showed the same error https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8786538012879301585/+/u/run_entrypoint_dart_registrant/test_stdout Original change's description: > Reland "Bump pub to d69493e5163553bde53c0889b7479dee02f550bf" > > This is a reland of commita06ade1d14> > Fix of flutter issue was landed here: > https://github.com/flutter/flutter/commit/3f2cca8eebfd3de8b846ef9f3bfa50dcf8eb179d > > Original change's description: > > Bump pub to d69493e5163553bde53c0889b7479dee02f550bf > > > > Changes: > > ``` > > > git log --format="%C(auto) %h %s" 048e3ad..d69493e > > https://dart.googlesource.com/pub.git/+/d69493e5 Don't allow non-null-safety constraints in the root pubspec (3800) > > https://dart.googlesource.com/pub.git/+/3514d7e7 Fail gracefully when tar file contains duplicate entries (3805) > > https://dart.googlesource.com/pub.git/+/0b3b8b44 Give full error even in summary mode (3804) > > https://dart.googlesource.com/pub.git/+/09c29722 Allow adding and removing dependency overrides (3716) > > https://dart.googlesource.com/pub.git/+/7184d1b5 accept 'topics' property in pubspec.yaml (3796) > > https://dart.googlesource.com/pub.git/+/cd106dfd Improve usage text of get (3792) > > https://dart.googlesource.com/pub.git/+/019d61cb Handle bad git revisions (3791) > > https://dart.googlesource.com/pub.git/+/e3ff7a99 Use 'pkg' and 'packages' to trigger suggestions for the pub command (3731) > > https://dart.googlesource.com/pub.git/+/ea24bf22 Better error when path dependency has no pubspec.yaml (3787) > > https://dart.googlesource.com/pub.git/+/da2a0144 Drop --use-data-isolate-strategy flag for tests (3788) > > https://dart.googlesource.com/pub.git/+/a565858e Improve documentation of `pub token` and subcommands (3778) > > https://dart.googlesource.com/pub.git/+/dd320459 Add test for publishing and consuming files with unicode characters in name (3785) > > https://dart.googlesource.com/pub.git/+/c4226d9f Fail tests on errors thrown by test PackageServer (3784) > > https://dart.googlesource.com/pub.git/+/12019939 Consider pubspec_overrides.yaml when publishing (3782) > > https://dart.googlesource.com/pub.git/+/d8a97497 Allow addition of tokens for insecure localhost repositories (3777) > > > > ``` > > > > Diff: https://dart.googlesource.com/pub.git/+/048e3ad2b5e1b4ebe6883addbc95722be6904a7b..d69493e5163553bde53c0889b7479dee02f550bf/ > > Change-Id: I92af981e9cb6aaedfcd75a7327dfef071645306b > > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/285908 > > Reviewed-by: Jonas Jensen <jonasfj@google.com> > > Commit-Queue: Sigurd Meldgaard <sigurdm@google.com> > > Reviewed-by: William Hesse <whesse@google.com> > > Change-Id: Ieeab0b4782afa216b353b91c57bde90957ce0aff > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/288440 > Reviewed-by: William Hesse <whesse@google.com> > Commit-Queue: Sigurd Meldgaard <sigurdm@google.com> Change-Id: Ibf3e7ec9080b137672ad2b9179090e6c980c6962 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/289062 Reviewed-by: William Hesse <whesse@google.com> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Commit-Queue: Siva Annamalai <asiva@google.com>
tools/bots
This folder contains scripts and configuration files used by Dart's continuous integration and testing infrastructure.
Test matrix
The file test_matrix.json defines the test configurations run by Dart's CI
infrastructure. Changes to the test matrix affect all builds that include them.
Structure
The test matrix is a JSON document and consists of the "filesets" object, the
"configurations" list, and the "builder_configurations" list as well as a
"branches" list.
Filesets
The file sets define files and/or directories that need to be present for a test
configuration at runtime. Any directory specified will be included along with
its subdirectories recursively. Directory names must have a / at the end. All
paths are relative to the SDK checkout's root directory.
"filesets": {
"a_fileset_name": [
"a/directory/",
"a/file"
],
"another_fileset_name": [
"another/directory/",
"another/file"
]
}
Configurations
The configurations describe all named configurations that the CI infrastructure supports. It consists of a list of configuration descriptions.
Each configuration description defines one or more configuration names using a
simple template syntax, where a group (a|b|c) means taking each of the
options for a different configuration name. The set of all configuration names
is the result of picking each combination of group options.
The configuration name implicitly defines the options of the configuration
(system, architecture, compiler, etc.), but additional options can be given in
an options field.
"configurations": {
"unittest-(linux|win|mac)": {
"options": {
"compiler": "dartk",
"mode": "release",
}},
Builder Configurations
The builder configurations describes all test configurations a specific builder must execute. Each builder configuration is an object that specifies which builders it applies to, defines the build steps for the builders, and some additional metadata. Only one builder configuration can apply to a builder.
"builder_configurations": [
{
"builders": [
"a-builder",
"another-builder"
],
"meta": {
"description": "Description of this configuration."
},
"steps": [
]
}
]
Each step is an object and must have a name. A step may also specify a script to
run instead of the default script: tools/test.py. Additional arguments may be
specified. These arguments will be passed to the script.
Inside arguments, the following variables will be expanded to values extracted from the builder name:
${mode}: the mode in which to run the tests; e.g.,release,debug${arch}: architecture to run the tests on; e.g.,ia32,x64$[system}: the system on which to run the tests; e.g.,win,linux,mac${runtime}: the runtime to use to run the tests; e.g.,vm,chrome,d8
"steps": [
{
"name": "build it",
"script": "tools/build.py",
"arguments": ["--a-flag", "target", "another_target"]
},
{
"name": "test it",
"arguments": ["-nconfiguration-${system}"]
}
]
A step that uses the script tools/test.py either explicitly or by default is
called a "test step". Test steps must include the -n command line argument to
select one of the named configurations defined in the configurations section.
A step using the default script may also be sharded across many machines using
the "shards" parameter. If a step is sharded, it must specify a "fileset".
Only the files and directories defined by the file set will be available to the
script when it's running on a shard.
{
"name": "shard the tests",
"shards": 10,
"fileset": "a_fileset_name"
}
Builders
Builder name parsing
The builder names are split by '-' and each part is then examined if it is an
option. Options can be runtimes (e.g. "chrome"), architectures (e.g. x64) and
operating system families (e.g. win). For each valid option, additional
arguments are passed to the tools/build.py script.
Adding a new builder
To add a builder:
- Decide on a name.
- Add the builder name to a new or existing configuration.
- File an issue labelled "area-infrastructure" to get your builder activated.
Testing a new or modified builder
Builders can be tested using a tool called led that is included in
depot_tools. Replace buildername and CL number with the correct values and run:
led get-builder luci.dart.ci:<builder name> | \
led edit-cr-cl 'https://dart-review.googlesource.com/c/<cl number>' | \
led launch
Adding a builder to the commit queue
For now, file an issue labeled "area-infrastructure" to get your builder added to the commit queue.
Glossary
Builder
A builder has a name and defines the steps the need to be run when it is executed by a bot. In general, a builder defines how to build and test software.
Bot
A physical or virtual machine (or even a docker container) that executes all commands it receives. Often, these commands are the steps defined by a builder.
Sharding
Sharded steps copy all files in a file set to as many bots as specified and runs the same command on all of the shards. Each shard has a shard number. The shard number and the total number of shards are passed as arguments to the command. The command is then responsible for running a subset of its work on each shard based on these arguments.