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

feat(shorebird_cli): call flutter precache when installing new flutter rev #2087

Merged
merged 2 commits into from
May 14, 2024

Conversation

bryanoltman
Copy link
Contributor

Description

This provides better visibility into Flutter artifact downloads and why builds take as long as they do.

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore
  • 🧪 Tests

Copy link

codecov bot commented May 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (7b246a0) to head (765133e).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     shorebirdtech/shorebird#2087   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          180       180           
  Lines         5516      5526   +10     
=========================================
+ Hits          5516      5526   +10     
Flag Coverage Δ
shorebird_cli 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bryanoltman bryanoltman changed the title feat(shorebird_cli): call when installing new flutter rev feat(shorebird_cli): call flutter precache when installing new flutter rev May 13, 2024
Comment on lines +87 to +90
precacheProgress.fail('Failed to precache Flutter $version');
logger.info(
'''This is not a critical error, but your next build make take longer than usual.''',
);
Copy link
Contributor

@felangel felangel May 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor but maybe we can consolidate these into a single log like:

precacheProgress.fail('Failed to precache Flutter $version -- the next build make take longer than usual. ');

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to have a part of the message that wasn't a "failure" or "error" message to head off support requests when/if this fails (just to be extra clear that the thing that went wrong isn't going to cause shorebird to not work)

);

try {
await process.run(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about initial install? Should we also do this as part of the install script for consistency?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bryanoltman bryanoltman merged commit ad26404 into main May 14, 2024
11 checks passed
@bryanoltman bryanoltman deleted the bo/precache branch May 14, 2024 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants