feat(shorebird_cli): remove link % from patch summary (#2458)

This commit is contained in:
Felix Angelov
2024-08-30 12:14:44 -05:00
committed by GitHub
parent bb9f3dcc30
commit 28dac16cb9
3 changed files with 0 additions and 9 deletions
@@ -424,8 +424,6 @@ Please re-run the release command for this version or create a new release.''');
'🟠 Track: ${lightCyan.wrap('Staging')}'
else
'🟢 Track: ${lightCyan.wrap('Production')}',
if (patcher.linkPercentage != null)
'''🔗 Running ${lightCyan.wrap('${patcher.linkPercentage!.toStringAsFixed(1)}%')} on CPU''',
if (patcher.linkPercentage != null &&
patcher.linkPercentage! < Patcher.minLinkPercentage)
'''🔍 Debug Info: ${lightCyan.wrap(patcher.debugInfoFile.path)}''',
@@ -29,12 +29,6 @@ abstract class Patcher {
});
// Link percentage that is considered the minimum before a user might notice.
// Our early testing has shown that about:
// - 1/3rd of patches link at 99%
// - 1/3rd of patches link between 20% and 99%
// - 1/3rd of patches link below 20%
// Most lowering is likely due to:
// https://github.com/shorebirdtech/shorebird/issues/1825
static const double minLinkPercentage = 75;
/// The standard link percentage warning.
@@ -522,7 +522,6 @@ void main() {
'📦 Release Version: ${lightCyan.wrap(releaseVersion)}',
'''🕹️ Platform: ${lightCyan.wrap(patcher.releaseType.releasePlatform.name)} ${lightCyan.wrap('[arm32 (42 B)]')}''',
'🟢 Track: ${lightCyan.wrap('Production')}',
'''🔗 Running ${lightCyan.wrap('${patcher.linkPercentage!.toStringAsFixed(1)}%')} on CPU''',
'''🔍 Debug Info: ${lightCyan.wrap(patcher.debugInfoFile.path)}''',
];
await expectLater(