Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait longer in post-deployment test for the version to be updated. #7617

Merged
merged 1 commit into from
Apr 8, 2024
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
10 changes: 9 additions & 1 deletion pkg/pub_integration/lib/script/publishing.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,15 @@ class PublishingScript {
await dart.publish(_dummyDir.path,
expectedOutputContains:
'Successfully uploaded https://pub.dev/packages/_dummy_pkg version $_newDummyVersion');
await Future.delayed(Duration(seconds: 1));
// On appengine we may experiece a longer cache period for the public API.
// Waiting for up to 150 seconds for the version to be updated.
for (var i = 1; i <= 50; i++) {
await Future.delayed(Duration(seconds: 3));
final latest = await _pubHttpClient.getLatestVersionName('_dummy_pkg');
if (latest == _newDummyVersion) {
break;
}
}
await _verifyDummyPkg();

// upload the same version again
Expand Down
Loading