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

fix: graceful recovery for failed spinner step #1017

Merged
merged 1 commit into from
Nov 11, 2023

Conversation

JoshuaKGoldberg
Copy link
Owner

PR Checklist

Overview

Moves the recovery pieces of the withSpinners loop into a finally so they always get called.

Copy link

codecov bot commented Nov 11, 2023

Codecov Report

Merging #1017 (6dfa8db) into main (69af9ec) will increase coverage by 0.49%.
Report is 8 commits behind head on main.
The diff coverage is 76.47%.

@@            Coverage Diff             @@
##             main    #1017      +/-   ##
==========================================
+ Coverage   93.64%   94.14%   +0.49%     
==========================================
  Files          93       95       +2     
  Lines        4991     5449     +458     
  Branches      420      436      +16     
==========================================
+ Hits         4674     5130     +456     
- Misses        316      318       +2     
  Partials        1        1              
Flag Coverage Δ
create 70.87% <76.47%> (+<0.01%) ⬆️
initialize 41.16% <76.47%> (+2.81%) ⬆️
migrate 69.86% <76.47%> (+0.10%) ⬆️
unit 71.57% <0.00%> (+2.59%) ⬆️

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

Files Coverage Δ
src/shared/cli/spinners.ts 84.72% <76.47%> (+1.62%) ⬆️

... and 6 files with indirect coverage changes

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

@JoshuaKGoldberg JoshuaKGoldberg merged commit e36f765 into main Nov 11, 2023
16 of 17 checks passed
@JoshuaKGoldberg JoshuaKGoldberg deleted the with-spinners-graceful-recovery branch November 11, 2023 22:35
Copy link

🎉 This is included in version v1.43.2 🎉

The release is available on:

Cheers! 📦🚀

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.

🐛 Bug: If a withSpinners step rejects, lines are still written continuously
1 participant