Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
18 changes: 16 additions & 2 deletions app/lib/package/api_export/exported_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,14 @@ final class ExportedBlob extends ExportedObject {
// _retouchDeadline
final retouchDeadline = clock.agoBy(_updateValidatedAfter);
if (destinationInfo.metadata.validated.isBefore(retouchDeadline)) {
await _owner._bucket.updateMetadata(dst, _metadata());
try {
await _owner._bucket.updateMetadata(dst, _metadata());
} catch (e, st) {
// This shouldn't happen, but if a metadata update does fail, it's
// hardly the end of the world.
// We might detect stray files later as a result of this.
_log.warning('Failed to updateMetadata on "$dst" failed', e, st);
}
}
return;
}
Expand Down Expand Up @@ -659,7 +666,14 @@ extension on Bucket {
if (info.isSameContent(bytes)) {
if (info.metadata.validated
.isBefore(clock.agoBy(_updateValidatedAfter))) {
await updateMetadata(name, metadata);
try {
await updateMetadata(name, metadata);
} catch (e, st) {
// This shouldn't happen, but if a metadata update does fail, it's
// hardly the end of the world.
// We might detect stray files later as a result of this.
_log.warning('Failed to updateMetadata on "$name" failed', e, st);
}
}
return;
}
Expand Down
2 changes: 1 addition & 1 deletion app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies:
fake_async: ^1.2.0
fake_gcloud:
path: ../pkg/fake_gcloud
gcloud: ^0.8.17
gcloud: ^0.8.18
googleapis: ^13.0.0
googleapis_auth: ^1.1.0
html: ^0.15.0
Expand Down
2 changes: 1 addition & 1 deletion pkg/fake_gcloud/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ environment:
resolution: workspace

dependencies:
gcloud: ^0.8.17
gcloud: ^0.8.18
logging: '>=0.11.3 <2.0.0'
clock: ^1.1.0

Expand Down
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -314,10 +314,10 @@ packages:
dependency: transitive
description:
name: gcloud
sha256: "4023f8f3dde8324ca8d17bd419767986764ac90a1173b207d4bc0e1784e9095f"
sha256: c63576bbd60b7dccd1548d51286e1c5b82e26b62440372a09c2aad0785d2e9f4
url: "https://pub.dev"
source: hosted
version: "0.8.17"
version: "0.8.18"
glob:
dependency: transitive
description:
Expand Down
Loading