Skip to content

Merge NNBD branch into master #2886

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 69 commits into from
Jan 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
7e202b9
Start the NNBD migration branch with additional github configuration …
jcollins-g Aug 17, 2021
50f38ec
Merge master into nnbd branch (#2747)
jcollins-g Aug 18, 2021
dbbc79e
Convert options/logging libraries to null safety (#2748)
jcollins-g Aug 18, 2021
952d837
update NNBD branch from head (#2758)
jcollins-g Aug 23, 2021
bcc0043
Migrate dartdoc_options.dart (#2749)
jcollins-g Aug 23, 2021
056995d
Migrate package_meta, io_utils, and utils. (#2760)
jcollins-g Aug 24, 2021
acfcba2
Merge branch 'master' into nnbd-mastermerge-0830
jcollins-g Aug 30, 2021
ae72b68
Merge pull request #2769 from jcollins-g/nnbd-mastermerge-0830
jcollins-g Aug 30, 2021
ff38f08
Merge branch 'master' into nnbd-mastermerge-0907
jcollins-g Sep 8, 2021
2f11e3e
opt-out for inheriting container
jcollins-g Sep 8, 2021
f51895d
Merge branch 'master' into nnbd-mastermerge-0907
jcollins-g Sep 8, 2021
ee708e3
Merge pull request #2777 from jcollins-g/nnbd-mastermerge-0907
jcollins-g Sep 8, 2021
7d1ec5d
Merge branch 'master' into nnbd-mastermerge-0913
jcollins-g Sep 13, 2021
e02a1cf
Merge pull request #2782 from jcollins-g/nnbd-mastermerge-0913
jcollins-g Sep 14, 2021
c33b4f7
A few more libraries migrated
jcollins-g Sep 14, 2021
1abe7fd
Merge pull request #2783 from jcollins-g/nnbd-more-migrations
jcollins-g Sep 16, 2021
8a8972c
Migrate warnings.dart (#2787)
srawlins Sep 16, 2021
5d70282
Merge branch 'master' into nnbd-merge-from-master-0920
jcollins-g Sep 20, 2021
bf90966
Merge branch 'master' into nnbd-merge-from-master-0920
jcollins-g Sep 20, 2021
efe4cce
Merge pull request #2800 from jcollins-g/nnbd-merge-from-master-0920
jcollins-g Sep 20, 2021
ec52392
Migrate mustachio to null safety (#2801)
srawlins Sep 22, 2021
574cc7e
Migrate various util and small libraries (#2805)
srawlins Sep 22, 2021
229174c
Migrate tool_runner to NNBD (#2804)
jcollins-g Sep 22, 2021
74bda63
This... mostly works
jcollins-g Sep 28, 2021
69ca0c9
getAs -> getValueAs
jcollins-g Sep 28, 2021
9c5a03e
comment
jcollins-g Sep 28, 2021
0cd18cf
Merge branch 'master' into nnbd-mainmerge-0928
jcollins-g Sep 28, 2021
5e86e84
Merge pull request #2815 from jcollins-g/nnbd-mainmerge-0928
jcollins-g Sep 28, 2021
ada0600
Migrate the renderers to NNBD (#2816)
jcollins-g Sep 28, 2021
db236c1
Migrate most mustachio tests to null safety (#2810)
srawlins Sep 28, 2021
ac4256e
Merge main branch to NNBD (#2826)
jcollins-g Oct 5, 2021
d71c385
Merge branch 'master' into nnbd-mastermerge-1008
jcollins-g Oct 8, 2021
8d827d1
Merge pull request #2831 from jcollins-g/nnbd-mastermerge-1008
jcollins-g Oct 11, 2021
0d0d46f
Migrate more libraries to NNBD (#2827)
jcollins-g Oct 11, 2021
2a48c40
Migrate comment_referable and model_object_builder (#2832)
jcollins-g Oct 12, 2021
53aa4bc
Migrate element_type to nnbd (#2834)
jcollins-g Oct 12, 2021
5b92bb4
Migrate markdown_processor and matching_link_result to NNBD (#2835)
jcollins-g Oct 12, 2021
ab30875
Migrate most of lib/src/generators to nnbd (#2837)
jcollins-g Oct 12, 2021
c8cd148
Migrate most of the non-ModelElement bits of lib (#2838)
jcollins-g Oct 20, 2021
747d8e1
Merge branch 'master' into nnbd-mainmerge-1020
jcollins-g Oct 20, 2021
c469e70
Fixup hints
jcollins-g Oct 20, 2021
db4f226
Merge pull request #2841 from jcollins-g/nnbd-mainmerge-1020
jcollins-g Oct 21, 2021
d85056c
Migrate most of what's left in tools/ (#2840)
jcollins-g Oct 21, 2021
b0d2a81
Merge main branch into head with conflict resolution
jcollins-g Oct 26, 2021
5d76a51
Canonicalize default input dir
jcollins-g Oct 26, 2021
21972ca
Revert "Canonicalize default input dir"
jcollins-g Oct 26, 2021
930c7d9
Just disable the test, something odd is going on with MemoryResourceP…
jcollins-g Oct 26, 2021
5486049
Merge pull request #2847 from jcollins-g/nnbd-mainmerge-1026
jcollins-g Oct 27, 2021
b81bcce
Migrate ModelElement and subclasses to NNBD (#2843)
jcollins-g Oct 27, 2021
4fe6b1d
Migrate runtime renderer to NNBD (#2849)
jcollins-g Nov 1, 2021
55ca10f
Update nnbd branch for latest changes and new resources-dir option (#…
parlough Dec 30, 2021
e00f32f
Utilize new Object.hash function instead of quiver code (#2868)
parlough Dec 30, 2021
c573859
Minor cleanup to lints and some top level files (#2872)
parlough Dec 31, 2021
0599437
Cleanup categorization to simplify template generation migration (#2875)
parlough Dec 31, 2021
0c86079
Cleanup model_element migration and surrounding accesses (#2876)
parlough Dec 31, 2021
887964e
Migrate the generated AOT renderers to null safety (#2874)
srawlins Dec 31, 2021
797cf81
Cleanup package_graph migration (#2869)
parlough Dec 31, 2021
0a9c124
Migrate several test files to null safety (#2871)
srawlins Jan 1, 2022
96a511b
Migrate comment_referable tests (#2877)
parlough Jan 2, 2022
4beb15e
Migrate tool/grind.dart to null safety (#2870)
srawlins Jan 4, 2022
2d4ef13
Migrate more tests; correct other migration bits (#2880)
srawlins Jan 5, 2022
ffd75b7
Correct some bad mustachio migration; migrate mustachio tests (#2879)
srawlins Jan 5, 2022
6af09a2
Migrate the testing/ packages (#2881)
srawlins Jan 6, 2022
7009fb8
Migrate most end2end tests; null safety tweaks (#2882)
srawlins Jan 7, 2022
9313fba
Make a few more nullable fields late final (#2883)
srawlins Jan 7, 2022
060c847
Migrate model_test, the last file, to null safety (#2884)
srawlins Jan 7, 2022
dba150c
Merge master branch into nnbd branch (#2885)
srawlins Jan 8, 2022
a6c0356
Merge branch 'master' into nnbd
srawlins Jan 8, 2022
09c9278
Merge branch 'master' into nnbd
srawlins Jan 11, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions .github/workflows/nnbd-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Test

on:
# Run CI on pushes to the main branch, and on PRs against main.
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: 0 15 * * *

env:
PUB_ENVIRONMENT: bot.github

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
sdk: [dev, stable]
job: [main, flutter, sdk-analyzer, packages, sdk-docs]
include:
- os: macos-latest
sdk: dev
job: main
- os: windows-latest
sdk: dev
job: main
exclude:
# Do not try to run flutter against the "stable" sdk,
# it is unlikely to work and produces uninteresting
# results.
- sdk: stable
job: flutter
- sdk: stable
job: sdk-analyzer

steps:
- name: Configure git
if: runner.os == 'Windows'
run: git config --global core.autocrlf input
- uses: actions/checkout@v2
- uses: dart-lang/[email protected]
with:
sdk: ${{ matrix.sdk }}
- name: Install dependencies
run: dart pub get
- name: ${{ matrix.job }}
if: runner.os != 'Windows'
run: ./tool/travis.sh
env:
DARTDOC_BOT: ${{ matrix.job }}
#COVERAGE_TOKEN: true # this needs to be set to enable coverage
- name: ${{ matrix.job }}
if: runner.os == 'Windows' && matrix.job == 'main'
run: dart run grinder buildbot
env:
DARTDOC_BOT: ${{ matrix.job }}
# - id: coverage
# name: Upload coverage
# if: runner.os == 'Linux' && matrix.job == 'main' && matrix.sdk == 'dev'
# uses: coverallsapp/[email protected]
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# path-to-lcov: lcov.info
# - name: Echo coveralls api result
# if: runner.os == 'Linux' && matrix.job == 'main' && matrix.sdk == 'dev'
# run: echo ${{ steps.coverage.outputs['coveralls-api-result'] }}
16 changes: 8 additions & 8 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Test
name: Test - NNBD branch

on:
# Run CI on pushes to the main branch, and on PRs against main.
push:
branches: [ master ]
branches: [ nnbd ]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@srawlins – should this be master? Oops?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops; working on this

pull_request:
branches: [ master ]
branches: [ nnbd ]
schedule:
- cron: 0 15 * * *

Expand All @@ -20,14 +20,14 @@ jobs:
matrix:
os: [ubuntu-latest]
sdk: [dev, stable]
job: [main, flutter, sdk-analyzer, packages, sdk-docs]
job: [nnbd, flutter, sdk-analyzer, packages, sdk-docs]
include:
- os: macos-latest
sdk: dev
job: main
job: nnbd
- os: windows-latest
sdk: dev
job: main
job: nnbd
exclude:
# Do not try to run flutter against the "stable" sdk,
# it is unlikely to work and produces uninteresting
Expand Down Expand Up @@ -76,8 +76,8 @@ jobs:
DARTDOC_BOT: ${{ matrix.job }}
#COVERAGE_TOKEN: true # this needs to be set to enable coverage
- name: ${{ matrix.job }}
if: runner.os == 'Windows' && matrix.job == 'main'
run: dart run grinder buildbot
if: runner.os == 'Windows' && matrix.job == 'nnbd'
run: dart run grinder buildbot-no-publish
env:
DARTDOC_BOT: ${{ matrix.job }}
# - id: coverage
Expand Down
19 changes: 18 additions & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,27 @@ analyzer:
- 'lib/src/third_party/pkg/**'
- 'lib/templates/*.html'
- 'pub.dartlang.org/**'
- 'testing/**'
# These have a lot of lint.
- 'testing/test_package/**'
- 'testing/test_package_custom_templates/**'
- 'testing/test_package_experiments/**'
- 'testing/test_package_export_error/**'
- 'testing/test_package_extensions/**'
- 'testing/test_package_import_export_error/**'
- 'testing/test_package_imported/**'
- 'testing/test_package_options/**'
# This package imports flutter, which is perhaps not found by the base `dart analyze` tool.
- 'testing/flutter_packages/test_package_flutter_plugin/**'
# This package is meant to mock the sky_engine package.
- 'testing/sky_engine/**'
# These packages have compile-time errors.
- 'testing/test_package_bad/**'
- 'testing/test_package_export_error/**'
linter:
rules:
always_declare_return_types: true
always_put_required_named_parameters_first: true
avoid_bool_literals_in_conditional_expressions: true
avoid_dynamic_calls: true
avoid_single_cascade_in_expression_statements: true
avoid_unused_constructor_parameters: true
Expand All @@ -29,8 +44,10 @@ linter:
package_api_docs: true
prefer_final_fields: true
prefer_initializing_formals: true
prefer_single_quotes: true
prefer_void_to_null: true
slash_for_doc_comments: true
type_annotate_public_apis: true
# Work in progress canonical score lints
unawaited_futures: true
unnecessary_null_aware_assignments: true
22 changes: 20 additions & 2 deletions analysis_options_presubmit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,35 @@ analyzer:
### Extra ignores for presubmit
deprecated_member_use: ignore
deprecated_member_use_from_same_package: ignore
### Temporary presubmit ignore for NNBD migration
import_of_legacy_library_into_null_safe: ignore
language:
strict-raw-types: true
exclude:
- 'doc/**'
- 'lib/src/third_party/pkg/**'
- 'lib/templates/*.html'
- 'pub.dartlang.org/**'
- 'testing/**'
- 'testing/flutter_packages/test_package_flutter_plugin/**'
# These have a lot of lint.
- 'testing/test_package/**'
- 'testing/test_package_custom_templates/**'
- 'testing/test_package_experiments/**'
- 'testing/test_package_export_error/**'
- 'testing/test_package_extensions/**'
- 'testing/test_package_import_export_error/**'
- 'testing/test_package_imported/**'
- 'testing/test_package_options/**'
# This package imports flutter, which is perhaps not found by the base `dart analyze` tool.
- 'testing/flutter_packages/test_package_flutter_plugin/**'
# This package is meant to mock the sky_engine package.
- 'testing/sky_engine/**'
# These packages have compile-time errors.
- 'testing/test_package_bad/**'
linter:
rules:
always_declare_return_types: true
always_put_required_named_parameters_first: true
avoid_bool_literals_in_conditional_expressions: true
avoid_dynamic_calls: true
avoid_single_cascade_in_expression_statements: true
avoid_unused_constructor_parameters: true
Expand All @@ -32,8 +48,10 @@ linter:
package_api_docs: true
prefer_final_fields: true
prefer_initializing_formals: true
prefer_single_quotes: true
prefer_void_to_null: true
slash_for_doc_comments: true
type_annotate_public_apis: true
# Work in progress canonical score lints
unawaited_futures: true
unnecessary_null_aware_assignments: true
Loading