-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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 a bug with buildStaticStandalone resolving too early #4649
Fix a bug with buildStaticStandalone resolving too early #4649
Conversation
CI is oddly red, can you please merge from master? |
@igor-dv thanks for the quick response; from what I can tell, my branch is sync'ed with latest I've never seen this type of error before but CI seems to think that the Not sure how to proceed from here but happy to make any changes you guys would like to see. |
FYI - it looks like this is failing due to the use of Yarn 1.9 (see issue 6440) - the integrity entries are being removed from each of the entries in the CI currently is using Yarn v1.9.4 |
Probably CircleCI issue. TeamCity is passing. I will rerun CircleCI. |
FYI - the |
This test is checking that yarn.lock is updated after some packages were added/changed. But since there were not any pkgs changes here, IMO it should not fail... |
I'm guessing something changed on circleci's end with respect to the version of Yarn it is running. @igor-dv is a fresh circleci build passing on master if run today? |
…e it actually completes
ca075ee
to
b39e0b2
Compare
Codecov Report
@@ Coverage Diff @@
## master #4649 +/- ##
==========================================
- Coverage 35.59% 35.57% -0.02%
==========================================
Files 557 557
Lines 6732 6735 +3
Branches 884 884
==========================================
Hits 2396 2396
- Misses 3876 3879 +3
Partials 460 460
Continue to review full report at Codecov.
|
It was a node issue (@Hypnosphi solved it in CI). |
Issue:
buildStaticStandalone
returns aPromise
for its build completing, but that Promise doesn't take into account the actual compiler work, meaning that dependents that want to create static builds have no way of reliably knowing when the build completes.What I did
I made a fairly simple change to
build-static.js
that only resolves thebuildStaticStandalone
async result once the build completes or errors.How to test
Is this testable with Jest or Chromatic screenshots? No
Does this need a new example in the kitchen sink apps? No
Does this need an update to the documentation? No
You can reproduce this via a standalone static build like this one:
Note that this is a bugfix for hydrateio/docz-plugin-storybook#4
cc @mergebandit