shorebirdtech / shorebird

Code Push for Flutter and other tools for Flutter businesses.
https://shorebird.dev
Other
1.97k stars 118 forks source link

fix(shorebird_cli): update cache artifacts on every command run, log progress #1958

Closed bryanoltman closed 3 weeks ago

bryanoltman commented 3 weeks ago

Description

Updates shorebird_cli to ensure all cache artifacts are up-to-date before running any command and prints the update progress, if any. This ensures:

  1. We will always know that cache artifacts are up-to-date in any command.
  2. Cache artifacts are updated in a consistent and predictable place.
  3. Users have better visibility into what the CLI is doing (see the fixed issue).

Fixes https://github.com/shorebirdtech/shorebird/issues/1899

Type of Change

codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 87.60%. Comparing base (7652dc6) to head (6a6034f).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1958 +/- ## ============================================ - Coverage 100.00% 87.60% -12.40% ============================================ Files 174 174 Lines 5506 5504 -2 ============================================ - Hits 5506 4822 -684 - Misses 0 682 +682 ``` | [Flag](https://app.codecov.io/gh/shorebirdtech/shorebird/pull/1958/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=shorebirdtech) | Coverage ฮ” | | |---|---|---| | [shorebird_cli](https://app.codecov.io/gh/shorebirdtech/shorebird/pull/1958/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=shorebirdtech) | `84.05% <100.00%> (-15.95%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=shorebirdtech#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.