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

Deeply reset the build progress when starting a new build #284

Conversation

ghengeveld
Copy link
Member

@ghengeveld ghengeveld commented Apr 4, 2024

Fixes #252

The localBuildProgress value is mutated during the build, which was affecting INITIAL_BUILD_PAYLOAD causing subsequent builds to think steps had already been completed. By ensuring a clean initial value each time, this issue is avoided.

I could've avoided the mutation itself, but that would've been a brittle fix prone to regression.

📦 Published PR as canary version: 1.3.1--canary.284.bf6291a.0

✨ Test out this PR locally via:

npm install @chromatic-com/storybook@1.3.1--canary.284.bf6291a.0
# or 
yarn add @chromatic-com/storybook@1.3.1--canary.284.bf6291a.0

@ghengeveld ghengeveld added release Auto: Create a `latest` release when merged patch Auto: Increment the patch version when merged labels Apr 4, 2024
@ghengeveld ghengeveld merged commit daf1223 into main Apr 5, 2024
9 of 10 checks passed
@ghengeveld ghengeveld deleted the ghengeveld/252-build-progress-reporting-broken-on-second-build branch April 5, 2024 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Auto: Increment the patch version when merged release Auto: Create a `latest` release when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build progress reporting broken on second build
2 participants