Skip to content

Commit 98c95c3

Browse files
authored
Separate weekly tasks for tarball-integrity checks. (#8858)
1 parent 89edb03 commit 98c95c3

File tree

5 files changed

+270
-153
lines changed

5 files changed

+270
-153
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ AppEngine version, listed here to ease deployment and troubleshooting.
66
* Upgraded stable Dart analysis SDK to `3.8.3`
77
* Upgraded stable Flutter analysis SDK to `3.32.8`.
88
* Upgraded pana to `0.22.22`.
9+
* Note: Tarball-related integrity checks are run in a separate weekly task (`check-tarball-integrity`).
910

1011
## `20250804t140400-all`
1112
* Bump runtimeVersion to `2025.07.14`.

app/lib/package/tarball_storage.dart

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,19 @@ class TarballStorage {
6161
String getCanonicalBucketAbsoluteObjectName(String package, String version) =>
6262
_canonicalBucket.absoluteObjectName(tarballObjectName(package, version));
6363

64+
/// Get a list of package names in the canonical bucket.
65+
Future<List<String>> listPackagesInCanonicalBucket() async {
66+
final items = await _canonicalBucket.listAllItemsWithRetry(
67+
prefix: 'packages/', delimiter: '-');
68+
final packages = items
69+
.where((i) => i.isDirectory)
70+
.map((i) => i.name)
71+
.map((name) => name.substring(9).split('-').first)
72+
.toSet()
73+
.toList();
74+
return packages;
75+
}
76+
6477
/// Get map from `version` to [SourceObjectInfo] for each version of [package] in
6578
/// canonical bucket.
6679
Future<Map<String, SourceObjectInfo>> listVersionsInCanonicalBucket(

0 commit comments

Comments
 (0)