Skip to content

Commit 58986e0

Browse files
committed
Upgrade analysis SDKs, dartdoc and pana.
1 parent 3e9601e commit 58986e0

File tree

9 files changed

+122
-136
lines changed

9 files changed

+122
-136
lines changed

.github/workflows/dart.yml

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

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ 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-
* Bump runtimeVersion to `2024.11.26`.
6-
* `dartdoc 8.3.0` is used for packages depending on `package:macros`.
5+
* Bump runtimeVersion to `2024.12.01`.
6+
* Upgraded stable Dart analysis SDK to `3.6.0-334.4.beta`
7+
* Upgraded stable Flutter analysis SDK to `3.27.0-0.2.pre`.
8+
* Upgraded dartdoc to `8.3.0`.
9+
* Upgraded pana to `0.22.16`.
10+
* Upgraded dependencies.
711

812
## `20241121t150900-all`
913
* Bump runtimeVersion to `2024.11.21`.

Dockerfile.worker

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ RUN mkdir -p /home/worker/config/dart-stable
2323
RUN mkdir -p /home/worker/config/flutter-stable
2424

2525
# Setup Dart SDK into /home/worker/dart/{stable,preview}/
26-
RUN XDG_CONFIG_HOME=/home/worker/config/dart-stable tool/setup-dart.sh /home/worker/dart/stable 3.5.4
26+
RUN XDG_CONFIG_HOME=/home/worker/config/dart-stable tool/setup-dart.sh /home/worker/dart/stable 3.6.0-334.4.beta beta
2727

2828
# Setup Flutter SDK into /home/worker/flutter/{stable,preview}/
29-
RUN XDG_CONFIG_HOME=/home/worker/config/flutter-stable tool/setup-flutter.sh /home/worker/flutter/stable 3.24.5
29+
RUN XDG_CONFIG_HOME=/home/worker/config/flutter-stable tool/setup-flutter.sh /home/worker/flutter/stable 3.27.0-0.2.pre beta
3030

3131
# Setup webp
3232
RUN tool/setup-webp.sh /home/worker/bin

app/lib/shared/versions.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final RegExp runtimeVersionPattern = RegExp(r'^\d{4}\.\d{2}\.\d{2}$');
2424
/// when the version switch happens.
2525
const _acceptedRuntimeVersions = <String>[
2626
// The current [runtimeVersion].
27-
'2024.11.26',
27+
'2024.12.01',
2828
// Fallback runtime versions.
2929
'2024.11.21',
3030
'2024.11.18',
@@ -62,8 +62,8 @@ bool shouldGCVersion(String version) =>
6262

6363
// keep in-sync with SDK version in .mono_repo.yml and Dockerfile
6464
final String runtimeSdkVersion = '3.5.0';
65-
final String toolStableDartSdkVersion = '3.5.4';
66-
final String toolStableFlutterSdkVersion = '3.24.5';
65+
final String toolStableDartSdkVersion = '3.6.0-334.4.beta';
66+
final String toolStableFlutterSdkVersion = '3.27.0-0.2.pre';
6767

6868
final semanticToolStableDartSdkVersion =
6969
Version.parse(toolStableDartSdkVersion);
@@ -74,4 +74,4 @@ final semanticToolStableFlutterSdkVersion =
7474
final String panaVersion = pana.packageVersion;
7575

7676
// keep in-sync with pkg/pub-worker/lib/src/bin/pana_wrapper.dart
77-
final String dartdocVersion = '8.1.0';
77+
final String dartdocVersion = '8.3.0';

app/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ dependencies:
4747
watcher: ^1.0.0
4848
yaml: ^3.1.0
4949
# pana version to be pinned
50-
pana: '0.22.15'
50+
pana: '0.22.16'
5151
# 3rd-party packages with pinned versions
5252
mailer: '6.2.0'
5353
ulid: '2.0.1'

pkg/pub_worker/lib/src/bin/pana_wrapper.dart

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const _totalTimeout = Duration(minutes: 50);
3434

3535
/// The dartdoc version to use.
3636
/// keep in-sync with app/lib/shared/versions.dart
37-
const _dartdocVersion = '8.1.0';
37+
const _dartdocVersion = '8.3.0';
3838

3939
/// Program to be used as subprocess for running pana, ensuring that we capture
4040
/// all the output, and only run analysis in a subprocess that can timeout and
@@ -99,9 +99,6 @@ Future<void> main(List<String> args) async {
9999
final pkgDir = Directory(p.join(pkgDownloadDir.path, '$package-$version'));
100100
final detected = await _detectSdks(pkgDir.path);
101101

102-
final dartdocVersion =
103-
(await _overrideDartdocVersion(pkgDir.path)) ?? _dartdocVersion;
104-
105102
final toolEnv = await ToolEnvironment.create(
106103
dartSdkConfig: SdkConfig(
107104
rootPath: detected.dartSdkPath,
@@ -112,7 +109,7 @@ Future<void> main(List<String> args) async {
112109
configHomePath: _configHomePath('flutter', detected.configKind),
113110
),
114111
pubCacheDir: pubCache,
115-
dartdocVersion: dartdocVersion,
112+
dartdocVersion: _dartdocVersion,
116113
);
117114

118115
//final dartdocOutputDir =
@@ -194,21 +191,6 @@ String? _configHomePath(String sdk, String kind) {
194191
return path;
195192
}
196193

197-
/// Detects the package dependencies and overrides the dartdoc version to
198-
/// 8.3.0 if macros is being used.
199-
///
200-
/// TODO: remove this after the 3.6 SDK is released.
201-
Future<String?> _overrideDartdocVersion(String pkgDir) async {
202-
final pubspecFile = File(p.join(pkgDir, 'pubspec.yaml'));
203-
final pubspec = Pubspec.parseYaml(await pubspecFile.readAsString());
204-
final minMacrosVersion = pubspec.getDependencyContraintRangeMin('macros');
205-
if (minMacrosVersion != null &&
206-
minMacrosVersion.compareTo(Version.parse('0.1.3-main.0')) >= 0) {
207-
return '8.3.0';
208-
}
209-
return null;
210-
}
211-
212194
Future<({String configKind, String? dartSdkPath, String? flutterSdkPath})>
213195
_detectSdks(String pkgDir) async {
214196
// Load the pubspec so we detect which SDK to use for analysis

pkg/pub_worker/mono_pkg.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# See https://pub.dev/packages/mono_repo for details on this file
22
sdk:
3-
- 3.5.0
3+
- 3.6.0-334.4.beta
44

55
stages:
66
- smoke_test:

pkg/pub_worker/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dependencies:
1010
appengine: ^0.13.6
1111
json_annotation: ^4.3.0
1212
jsontool: ^2.0.0
13-
pana: ^0.22.15
13+
pana: ^0.22.16
1414
path: ^1.8.0
1515
lints: ^5.0.0 # required for pana
1616
meta: ^1.7.0

0 commit comments

Comments
 (0)