Skip to content

Commit 292e363

Browse files
committed
Merge remote-tracking branch 'origin/master' into bump_dartdoc_size_limit
2 parents ab8941e + f5ae3fb commit 292e363

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+2138
-1294
lines changed

.github/workflows/dart.yml

Lines changed: 201 additions & 201 deletions
Large diffs are not rendered by default.

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ Important changes to data models, configuration, and migrations between each
22
AppEngine version, listed here to ease deployment and troubleshooting.
33

44
## Next Release (replace with git tag when deployed)
5+
* Bumped runtimeVersion to `2023.02.01`
6+
* Upgraded runtime Dart SDK to `2.19.0`.
7+
* Upgraded stable Dart analysis SDK to `2.19.1`.
8+
* Upgraded preview Dart analysis SDK to `3.0.0-179.0.dev`.
9+
* Upgraded dartdoc to `6.1.5`.
10+
* Upgraded dependencies.
11+
* Updated `osd.xml`: using inlined URL parameter.
512

613
## `20230125t151100-all`
714
* Enabled `dart3` experiment, displaying "Dart-3 ready" badges.

Dockerfile.app

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Keep version in-sync with .mono_repo.yml and app/lib/shared/versions.dart
2-
FROM dart:2.18.0
2+
FROM dart:2.19.0
33

44
# After install we remove the apt-index again to keep the docker image diff small.
55
RUN apt-get update && \
@@ -33,9 +33,9 @@ WORKDIR /project/app
3333
RUN dart /project/tool/pub_get_offline.dart /project/app
3434

3535
# Setup analysis Dart SDKs
36-
RUN /project/tool/setup-dart.sh /tool/stable 2.19.0
37-
RUN /project/tool/setup-dart.sh /tool/preview 3.0.0-151.0.dev
38-
RUN /project/tool/setup-dart.sh /tool/future 3.0.0-151.0.dev
36+
RUN /project/tool/setup-dart.sh /tool/stable 2.19.1
37+
RUN /project/tool/setup-dart.sh /tool/preview 3.0.0-179.0.dev
38+
RUN /project/tool/setup-dart.sh /tool/future 3.0.0-179.0.dev
3939

4040
# Setup analysis Flutter SDKs
4141
RUN /project/tool/setup-flutter.sh /tool/stable 3.7.0

Dockerfile.worker

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ COPY --chown=worker:worker . /home/worker/pub-dev
1818
WORKDIR /home/worker/pub-dev
1919

2020
# Setup Dart SDK into /home/worker/dart/{stable,preview}/
21-
RUN tool/setup-dart.sh /home/worker/dart 2.19.0
21+
RUN tool/setup-dart.sh /home/worker/dart 2.19.1
2222
RUN mv /home/worker/dart/dart-sdk /home/worker/dart/stable
23-
RUN tool/setup-dart.sh /home/worker/dart 3.0.0-151.0.dev
23+
RUN tool/setup-dart.sh /home/worker/dart 3.0.0-179.0.dev
2424
RUN mv /home/worker/dart/dart-sdk /home/worker/dart/preview
2525

2626
# Setup Flutter SDK into /home/worker/flutter/{stable,preview}/

app/lib/frontend/handlers/experimental.dart

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const _publicFlags = <String>{};
88

99
const _allFlags = <String>{
1010
..._publicFlags,
11-
'dart3',
1211
'signin',
1312
'sandbox',
1413
};
@@ -42,9 +41,6 @@ class ExperimentalFlags {
4241
return ExperimentalFlags(_allFlags);
4342
}
4443

45-
/// Whether to show the "Dart 3 ready" badge or the search checkbox.
46-
bool get showDart3ReadyOnUI => true;
47-
4844
/// Whether to return dartdoc from sandboxing output.
4945
bool get showSandboxedOutput => _enabled.contains('sandbox');
5046

app/lib/frontend/templates/package.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import 'package:_pub_shared/data/page_data.dart';
66
import 'package:_pub_shared/search/tags.dart';
77
import 'package:collection/collection.dart' show IterableExtension;
8-
import 'package:pub_dev/frontend/request_context.dart';
98

109
import '../../package/models.dart';
1110
import '../../package/overrides.dart' show devDependencyPackages;
@@ -123,8 +122,7 @@ d.Node renderPkgHeader(PackagePageData data) {
123122
publisherId: package.publisherId,
124123
published: data.version!.created!,
125124
isNullSafe: isNullSafe,
126-
isDart3Ready: requestContext.experimentalFlags.showDart3ReadyOnUI &&
127-
pkgView.tags.contains(PackageVersionTags.isDart3Ready),
125+
isDart3Ready: pkgView.tags.contains(PackageVersionTags.isDart3Ready),
128126
releases: showReleases ? data.latestReleases : null,
129127
);
130128

app/lib/frontend/templates/views/pkg/index.dart

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import 'package:_pub_shared/search/tags.dart';
77

88
import '../../../dom/dom.dart' as d;
99
import '../../../dom/material.dart' as material;
10-
import '../../../request_context.dart';
1110
import '../../../static_files.dart';
1211

1312
/// Renders the package listing.
@@ -153,16 +152,13 @@ d.Node _searchFormContainer({
153152
searchForm: searchForm,
154153
title: 'Show only packages with screenshots.',
155154
),
156-
if (requestContext.experimentalFlags.showDart3ReadyOnUI ||
157-
searchForm.parsedQuery.tagsPredicate
158-
.hasTag(PackageVersionTags.isDart3Ready))
159-
_tagBasedCheckbox(
160-
tagPrefix: 'is',
161-
tagValue: 'dart3-ready',
162-
label: 'Dart 3 ready',
163-
searchForm: searchForm,
164-
title: 'Show only packages compatible with Dart 3.',
165-
),
155+
_tagBasedCheckbox(
156+
tagPrefix: 'is',
157+
tagValue: 'dart3-ready',
158+
label: 'Dart 3 ready',
159+
searchForm: searchForm,
160+
title: 'Show only packages compatible with Dart 3.',
161+
),
166162
],
167163
),
168164
],

app/lib/frontend/templates/views/pkg/package_list.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import 'package:_pub_shared/search/tags.dart';
77
import 'package:clock/clock.dart';
88
import 'package:pana/pana.dart';
99

10-
import '../../../../frontend/request_context.dart';
1110
import '../../../../package/models.dart';
1211
import '../../../../package/screenshots/backend.dart';
1312
import '../../../../search/search_service.dart';
@@ -74,8 +73,7 @@ d.Node _packageItem(
7473
}) {
7574
final isFlutterFavorite = view.tags.contains(PackageTags.isFlutterFavorite);
7675
final isNullSafe = view.tags.contains(PackageVersionTags.isNullSafe);
77-
final isDart3Ready = requestContext.experimentalFlags.showDart3ReadyOnUI &&
78-
view.tags.contains(PackageVersionTags.isDart3Ready);
76+
final isDart3Ready = view.tags.contains(PackageVersionTags.isDart3Ready);
7977

8078
Iterable<d.Node> versionAndTimestamp(
8179
Release release, {

app/lib/shared/integrity.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ class IntegrityChecker {
6565
count++;
6666
_logger.warning('[pub-integrity-problem] $problem');
6767
}
68-
_logger.info('Integrity check completed with $count issue(s).');
68+
_logger.info([
69+
'Integrity check completed with $count issue(s).',
70+
if (count == 0) '[pub-integrity-no-problems-found]',
71+
].join(' '));
6972
}
7073

7174
/// Runs integrity checks, and returns the list of problems.

app/lib/shared/task_sources.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ class DatastoreHeadTaskSource implements TaskSource {
3535
DatastoreHeadTaskSource(
3636
this._db,
3737
this._model, {
38-
3938
/// Whether to scan the entire datastore in the first run or skip old ones.
4039
bool skipHistory = false,
4140

app/lib/shared/versions.dart

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@ final RegExp runtimeVersionPattern = RegExp(r'^\d{4}\.\d{2}\.\d{2}$');
2222
/// when the version switch happens.
2323
const acceptedRuntimeVersions = <String>[
2424
// The current [runtimeVersion].
25-
'2023.01.25',
25+
'2023.02.01',
2626
// Fallback runtime versions.
27+
'2023.01.25',
2728
'2023.01.24',
28-
'2023.01.20',
29-
'2023.01.16',
3029
];
3130

3231
/// Represents a combined version of the overall toolchain and processing,
@@ -54,10 +53,10 @@ bool shouldGCVersion(String version) =>
5453
version.compareTo(gcBeforeRuntimeVersion) < 0;
5554

5655
// keep in-sync with SDK version in .mono_repo.yml and Dockerfile
57-
final String runtimeSdkVersion = '2.18.0';
58-
final String toolStableDartSdkVersion = '2.19.0';
56+
final String runtimeSdkVersion = '2.19.0';
57+
final String toolStableDartSdkVersion = '2.19.1';
5958
final String toolStableFlutterSdkVersion = '3.7.0';
60-
final String toolPreviewDartSdkVersion = '3.0.0-151.0.dev';
59+
final String toolPreviewDartSdkVersion = '3.0.0-179.0.dev';
6160
final String toolPreviewFlutterSdkVersion = '3.7.0';
6261

6362
final semanticToolStableDartSdkVersion =
@@ -69,7 +68,7 @@ final semanticToolStableFlutterSdkVersion =
6968
final String panaVersion = pana.packageVersion;
7069

7170
// keep in-sync with pkg/pub_dartdoc/pubspec.yaml
72-
final String dartdocVersion = '6.1.1';
71+
final String dartdocVersion = '6.1.5';
7372

7473
/// Whether the given runtime version (stored with the dartdoc entry) should
7574
/// be displayed on the live site (or a coordinated upgrade is in progress).

app/lib/tool/test_profile/resolver.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Future<List<ResolvedVersion>> resolveVersions(
6161
}
6262
}
6363
final pubHostedDir =
64-
Directory(p.join(pubCacheDir.path, 'hosted', 'pub.dartlang.org'));
64+
Directory(p.join(pubCacheDir.path, 'hosted', 'pub.dev'));
6565
final dirs = await pubHostedDir.list().toList();
6666
final versions = <ResolvedVersion>[];
6767
for (final dir in dirs.whereType<Directory>()) {

app/mono_pkg.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# See https://github.com/dart-lang/mono_repo for details
22
sdk:
3-
- 2.18.0
3+
- 2.19.0
44

55
stages:
66
- smoke_test:

0 commit comments

Comments
 (0)