Skip to content

Commit 2af406d

Browse files
authored
Upgrade dartdoc and pana. (#9000)
1 parent 9a32495 commit 2af406d

File tree

10 files changed

+15
-34
lines changed

10 files changed

+15
-34
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ 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 `2025.10.07`.
5+
* Bump runtimeVersion to `2025.10.10`.
66
* Upgraded stable Dart analysis SDK to `3.9.4`
7+
* Upgraded dartdoc to `9.0.0`.
8+
* Upgraded pana to `0.22.24`.
79

810
## `20251002t093000-all`
911
* Bump runtimeVersion to `2025.09.30`.

app/lib/shared/versions.dart

Lines changed: 2 additions & 2 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-
'2025.10.07',
27+
'2025.10.10',
2828
// Fallback runtime versions.
2929
'2025.09.30',
3030
'2025.09.22',
@@ -76,4 +76,4 @@ final semanticToolStableFlutterSdkVersion = Version.parse(
7676
final String panaVersion = pana.packageVersion;
7777

7878
// keep in-sync with pkg/pub-worker/lib/src/bin/pana_wrapper.dart
79-
final String dartdocVersion = '8.3.4';
79+
final String dartdocVersion = '9.0.0';

app/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ dependencies:
4646
watcher: ^1.0.0
4747
yaml: ^3.1.0
4848
# pana version to be pinned
49-
pana: '0.22.23'
49+
pana: '0.22.24'
5050
# 3rd-party packages with pinned versions
5151
mailer: '6.5.0'
5252
postgres: '3.5.8'

app/test/task/end2end_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import '../shared/utils.dart';
1919
const String goldenDir = 'test/task/testdata/goldens';
2020

2121
// TODO: generalize golden testing, use env var for regenerating all goldens.
22-
final _regenerateGoldens = false;
22+
final _regenerateGoldens = true;
2323

2424
// We use a small test profile without flutter packages, because we have to
2525
// run pana+dartdoc for all these package versions, naturally this is slow.

app/test/task/testdata/goldens/documentation/oxygen/1.0.0/oxygen/MainClass-class.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ <h2>Constructors</h2>
6161
<dl class="constructor-summary-list">
6262
<dt id="MainClass.new" class="callable">
6363
<span class="name">
64-
<a href="../oxygen/MainClass/MainClass.html">MainClass.new</a>
64+
<a href="../oxygen/MainClass/MainClass.html">MainClass</a>
6565
</span>
6666
<span class="signature">
6767
(

app/test/task/testdata/goldens/documentation/oxygen/2.0.0/oxygen/MainClass-class.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ <h2>Constructors</h2>
6161
<dl class="constructor-summary-list">
6262
<dt id="MainClass.new" class="callable">
6363
<span class="name">
64-
<a href="../oxygen/MainClass/MainClass.html">MainClass.new</a>
64+
<a href="../oxygen/MainClass/MainClass.html">MainClass</a>
6565
</span>
6666
<span class="signature">
6767
(

app/test/task/testdata/goldens/documentation/oxygen/latest/oxygen/MainClass-class.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ <h2>Constructors</h2>
5959
<dl class="constructor-summary-list">
6060
<dt id="MainClass.new" class="callable">
6161
<span class="name">
62-
<a href="../oxygen/MainClass/MainClass.html">MainClass.new</a>
62+
<a href="../oxygen/MainClass/MainClass.html">MainClass</a>
6363
</span>
6464
<span class="signature">
6565
(

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

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

3434
/// The dartdoc version to use.
3535
/// keep in-sync with app/lib/shared/versions.dart
36-
const _dartdocVersion = '8.3.4';
36+
const _dartdocVersion = '9.0.0';
3737

3838
/// Program to be used as subprocess for running pana, ensuring that we capture
3939
/// all the output, and only run analysis in a subprocess that can timeout and
@@ -131,31 +131,10 @@ Future<void> main(List<String> args) async {
131131
);
132132

133133
// sanity check on pana report size
134-
var reportSize = gzip
134+
final reportSize = gzip
135135
.encode(utf8.encode(json.encode(summary.toJson())))
136136
.length;
137137

138-
// Note: the new license coverage data seems to generate coverage pairs that
139-
// occupy way too much space. Until that bug is fixed, we should remove
140-
// that data from the summary.
141-
// TODO: remove this block once https://github.com/dart-lang/pana/issues/1481 gets fixed and deployed
142-
if (reportSize > _reportSizeDropThreshold) {
143-
// We are storing the licenses in two fields, removing the fallback/unused one.
144-
// ignore: deprecated_member_use
145-
summary.licenses?.clear();
146-
147-
// Remove excessive range data.
148-
for (final l in summary.result?.licenses ?? <License>[]) {
149-
final count = l.range?.coverages.length ?? 0;
150-
if (count > 50) {
151-
l.range?.coverages.removeRange(50, count);
152-
}
153-
}
154-
155-
// re-calculate report size
156-
reportSize = gzip.encode(utf8.encode(json.encode(summary.toJson()))).length;
157-
}
158-
159138
if (reportSize > _reportSizeDropThreshold) {
160139
summary = Summary(
161140
createdAt: summary.createdAt,

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.23
13+
pana: ^0.22.24
1414
path: ^1.8.0
1515
lints: ^6.0.0 # required for pana
1616
meta: ^1.7.0

pubspec.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,10 +621,10 @@ packages:
621621
dependency: transitive
622622
description:
623623
name: pana
624-
sha256: e3bd09f4aa7eb997ac9d19d6df82781a92fb48917ddb2637b4cb7430e25de735
624+
sha256: bbad5a3e085fcc2475f08fe1240041e25d74482da80d9af00bc17cce99989e29
625625
url: "https://pub.dev"
626626
source: hosted
627-
version: "0.22.23"
627+
version: "0.22.24"
628628
path:
629629
dependency: transitive
630630
description:

0 commit comments

Comments
 (0)