Skip to content
Merged
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
14 changes: 7 additions & 7 deletions pkg/pub_worker/lib/src/analyze.dart
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,6 @@ Future<void> _analyzePackage(
log.writeln('STOPPED: ${clock.now().toUtc().toIso8601String()}');
}

// Upload results, if there is any
_log.info('api.taskUploadResult("$package", "$version")');
final r = await retry(
() => api.taskUploadResult(package, version),
retryIf: _retryIf,
);

// Create a file to store the blob, and add everything to it.
final blobFile = File(p.join(tempDir.path, 'files.blob'));
final builder = IndexedBlobBuilder(blobFile.openWrite());
Expand Down Expand Up @@ -201,6 +194,13 @@ Future<void> _analyzePackage(
logFile.openRead().transform(gzip.encoder),
);

// Upload results, if there is any
_log.info('api.taskUploadResult("$package", "$version")');
final r = await retry(
() => api.taskUploadResult(package, version),
retryIf: _retryIf,
);

// Create BlobIndex
final index = await builder.buildIndex(r.blobId);

Expand Down
Loading