Commit Graph

1104 Commits

Author SHA1 Message Date
Christopher Fujino
81eb54bf78 update-packages (#88387) 2021-08-17 18:49:32 -07:00
Gary Qian
a562b3cb3d Deferred components integration test app (#88030) 2021-08-16 15:32:05 -07:00
Greg Spencer
2a42069b2a Bump snippets to 0.2.3, fix redundant global activate in docs.sh (#88123) 2021-08-12 17:37:05 -07:00
Greg Spencer
10e4b04010 Switch document generation to use the snippets package (#87231)
Switch document generation to use the snippets package instead of the snippets code in the Flutter repo. In the process, some bugs in sample code analysis have been fixed, and I've fixed some more errors in the samples.

This will allow the snippets package to be developed separately from the Flutter repo, and reduce the code in the Flutter repo.

The snippets code is deleted in this PR.

I also converted some comments in the snippet templates to be regular comments instead of doc comments, because having a doc comment block before the imports causes the Dart import sorter to lose the comment. They should have been regular comments in the first place.

The snippets package resides in the assets-for-api-docs repo.

The sample analysis has also been converted to be run in parallel, and I've bumped the Dartdoc version to 1.0.2.
2021-08-11 19:48:29 -07:00
Darren Austin
41ff30c871 Added a check to the analyzer script to detect skipped tests. (#88003)
Added a check to the analyzer script to detect skipped tests that aren't commented.

The comment following the `skip` parameter should include either a link to a
github issue tracking the reenabling of the test, or a '[intended]' tag with
a brief description of why the test should never be enabled for the given
condition.
2021-08-10 23:03:48 -07:00
Chris Bracken
497eb13d03 Migrate python invocations to python3 (#87759)
Python 2 has been end-of-life'd since January 2020, all Python scripts
on which Flutter depends have been migrated to Python 3. This changes
documentation and remaining invocations to explicitly invoke python3.

Issue: https://github.com/flutter/flutter/issues/83043
2021-08-06 14:42:08 -07:00
Greg Spencer
169bb1b73f Fix the sample code analyzer to properly handle missing_identifier errors (#87593)
This fixes how the sample analyzer handles missing_identifier errors. It was looking at the wrong line, and missing an else clause, so it was silently allowing missing_identifier errors to pass.

In addition, this fixes the sample generation so that it uses the correct filename for the output files: it previously was looking for the first line that had a filename, which was meant to indicate a non-generated line. This change adds a new Line.generated constructor for generated lines, so that they can also have the correct filename associated with them.
2021-08-03 17:39:12 -07:00
Anna Gringauze
cc63c81408 Update all packages (#87579)
- Update dwds and and the rest of the packages

Closes: https://github.com/flutter/flutter/issues/87100
2021-08-03 16:37:48 -07:00
Jonah Williams
0d3b44e835 [flutter] replace 'checked mode' with 'debug mode' (#87408) 2021-08-03 13:25:05 -07:00
Darren Austin
9c3cd40af2 Skip test audit for dev tests. (#87147) 2021-08-03 11:17:41 -07:00
Greg Spencer
0151359c07 Fix some errors in snippets (#87528) 2021-08-03 10:20:04 -07:00
Jenn Magder
0abf02f855 Do not run web shard during tool_tests when subshard is missing (#87385) 2021-07-30 17:44:02 -07:00
stuartmorgan
a9fcfd1175 Update the call to analyze the plugins repo (#87121) 2021-07-27 11:34:04 -07:00
Greg Spencer
738ce43d97 Randomize tests, exclude tests that fail with randomization. (#86793)
* Randomize tests, exclude tests that fail with randomization.

* Disable some more tool tests
2021-07-26 23:40:49 -07:00
Greg Spencer
57224f81d5 Fix analysis script to run from anywhere (#86683)
Fixes a small problem with the analyze.dart script that fixes it so that it can be invoked from any directory, not just the Flutter root.
2021-07-26 15:31:37 -07:00
Jacob MacDonald
fdb80f916d update packages to the latest (#86880) 2021-07-22 13:26:05 -07:00
Anna Gringauze
84c3b56877 Update dwds (and other packages) (#86832)
* Upgrade all packages

In particular, bring in dwds with latest fixes for flakes.

Closes: https://github.com/flutter/flutter/issues/85043
Related: https://github.com/flutter/flutter/issues/85575

* Re-enable fixed tests

* Disable failing test due to DDS issue
2021-07-21 21:47:10 -07:00
Greg Spencer
2cb685e157 Modify key info generation for new iOS key code. (#83439)
The (new, not yet used) code gen for iOS was setting up a std::map from key codes to logical and physical key codes, but it was using uint32_t, which isn't big enough to hold the Flutter key codes.

Also, iOS needs to be able to filter out function keys, so I added a function key set.
2021-07-20 04:24:43 -07:00
Michael Goderbauer
045ba2b661 Migrate dev/bots to null safety (#86522) 2021-07-19 13:59:15 -07:00
Eng Zer Jun
57a4b023f1 build: update dependencies (#86433) 2021-07-14 13:46:04 -07:00
Ian Hickson
1133921c4d Add more debugging logs to overall_experience_test (#86368) 2021-07-13 16:56:06 -07:00
Ian Hickson
d3c17acf9d Run "pub global activate devtools" before overall_experience_test (#85812) 2021-07-12 14:36:05 -07:00
Yegor
78e06e716b [web] move e2e tests from flutter/engine to flutter/flutter (#86119)
* [web] move e2e tests from flutter/engine to flutter/flutter
* flutter update-packages --force-upgrade
2021-07-09 15:31:49 -07:00
Darren Chan
3cfe83bd95 [cleanup] Remove run_fuchsia_tests.sh. (#85586)
Remove `//dev/bots/run_fuchsia_tests.sh` as there are no longer any references to it.

Migrating tests to cfv2 will be easier if we don't have to account for this script.

See https://fxbug.dev/79691.
2021-07-02 13:00:24 -04:00
Greg Spencer
6adea05276 Revert "Randomize Framework tests, opt out some tests that currently fail. (#85159)" (#85673)
This reverts commit b5f9612 because it is taking about 40% longer to run the tests, which is causing timeouts.
2021-06-30 19:38:09 -07:00
Ian Hickson
08f698bb79 Update README.md (#85661) 2021-06-30 17:06:06 -07:00
Dan Field
e36e62e9a6 Revert "Revert "Audit hashCode overrides outside of packages/flutter (#85370)" (#85451)" (#85567)
This reverts commit 2be0d57fa2.
2021-06-30 09:46:54 -07:00
Janice Collins
0825f49ed4 Update dartdoc to 1.0.0 (#85549)
This includes some major internal changes that should improve performance (the AOT template compiler) and the new lookup code. The big changes noticeable for Flutter will be resolution of field formal parameters, extension method support, and more consistent disambiguation in comment reference lookups.

While a vast net improvement, this PR will change a few links to point to the wrong place. #85484 will address that after this lands, as there was no good way to specify what the user wanted unambiguously before dartdoc 1.0.0 in a few cases. That PR includes more details on the introduced regressions and link changes.
2021-06-29 14:19:19 -07:00
Greg Spencer
b5f9612cac Randomize Framework tests, opt out some tests that currently fail. (#85159)
This turns on order shuffling for all tests that don't fail with it on, marking those tests that do fail with a tag so that they will be run without shuffling on.

To determine which tests fail with it on, I ran all the tests 100 times with different random shuffle seeds, and then also ran it with the date seeds from today until the end of July, and tagged all of the test suites (files) that fail, with a seed that caused them to fail.
2021-06-29 13:46:13 -07:00
Filip Hracek
76d5e62f42 Add a more complete app template for Flutter (skeleton) (#83530) 2021-06-28 15:26:04 -07:00
Ren You
2be0d57fa2 Revert "Audit hashCode overrides outside of packages/flutter (#85370)" (#85451)
This reverts commit 9846fa5145.
2021-06-28 09:55:31 -07:00
Jonah Williams
def601ac17 [flutter_tools] re-enable all tests on windows (#85384) 2021-06-27 05:26:02 -07:00
Dan Field
9846fa5145 Audit hashCode overrides outside of packages/flutter (#85370) 2021-06-26 17:36:04 -07:00
Dan Field
9c0bd18c40 Reland eliminate timeouts from integration tests (#85141) 2021-06-23 13:08:51 -07:00
Jonah Williams
03d14a30c8 [versions] remove mockito (#85076) 2021-06-22 17:41:03 -07:00
Jonah Williams
cd13c91119 [versions] update dependencies (#84639) 2021-06-15 11:08:57 -07:00
Greg Spencer
88f3811055 Turn on avoid_dynamic_calls lint, except packages/flutter tests, make appropriate changes. (#84476)
This adds avoid_dynamic_calls to the list of lints, and fixes all instances where it was violated.

Importantly, this lint is NOT turned on for flutter/packages/test, because those changes are happening in another PR: #84478
2021-06-14 14:16:57 -07:00
Greg Spencer
bf1fb6e84b Switch sample analysis over to use package:flutter_lints (#84303)
This switches the sample analysis code to use package:flutter_lints instead of the flutter repo analysis options, so that they are compatible with a similar change to DartPad.
2021-06-09 18:09:14 -07:00
Janice Collins
e6f2e2a38d Update dartdoc to 0.45.0 (#84130) 2021-06-07 12:29:05 -07:00
Sam Rawlins
b2ed8a25b5 Ignore unnecessary_import reports in sample code (#84125) 2021-06-07 12:14:06 -07:00
Michael Goderbauer
243d889445 Count non-null-safe code in our tech debt benchmark (#83846) 2021-06-03 12:54:04 -07:00
Michael Goderbauer
14b2e7ffee flutter update-packages --force-upgrade (#83911) 2021-06-03 10:50:11 -07:00
Alexandre Ardhuin
34059eec2c enable lint prefer_interpolation_to_compose_strings (#83407) 2021-06-01 11:14:06 -07:00
godofredoc
8bee0834e4 Remove logic to save artifacts to old gcs location. (#83526) 2021-05-27 19:04:02 -07:00
Jonah Williams
025a3a7da3 [versions] roll package test redux (#83367) 2021-05-26 17:22:28 -07:00
Christopher Fujino
62d00c6d5f Migrate flutter conductor out of dev/tools and into its own directory (#83313)
* Migrate flutter conductor out of dev/tools and into its own directory

* flesh out documentation

* fix analysis options

* fix integration test
2021-05-25 16:12:53 -07:00
Janice Collins
c5bbe7552a Update dartdoc to 0.44.0. (#83352) 2021-05-25 13:04:02 -07:00
sigmundch
6b6b71ffa6 Pass --local-engine* from dev/bots/test.dart to pub test (only web) (#83308)
This is bassically reapplying #71721, but only enables it on web tests.

There are known issues that several tests under the `integration.shard`
depend on a specific platform, and as a result they require some
additional flexiblity (bots need to build more than one engine, and the
test flags should allow for secondary engines to be picked by such
tests).

By enabling this on the web-test shard, we will reduce the false
positives in the dart-flutter-HHH-web bot.

Fixing the more general problem is tracked by #72368.
2021-05-25 10:50:06 -07:00
nt4f04uNd
80a2b6b015 Fix typos (#82589) 2021-05-20 17:19:09 -07:00
David Iglesias
c94f0bea65 [web] Make web integration tests shadow DOM aware. (#82926) 2021-05-20 16:14:02 -07:00