Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

feat: pnpm-style symlinking (#636) #657

Merged
merged 4 commits into from
Sep 29, 2021
Merged

feat: pnpm-style symlinking (#636) #657

merged 4 commits into from
Sep 29, 2021

Conversation

netlify-team-account-1
Copy link
Contributor

Contains a reproduction test for pnpm-style symlinking, reported non-working in #636.

@netlify-team-account-1 netlify-team-account-1 added the type: bug code to address defects in shipped code label Sep 16, 2021
@github-actions github-actions bot added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Sep 16, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Sep 16, 2021

⏱ Benchmark results

Comparing with b105692

largeDepsEsbuild: 13s

⬆️ 4.41% increase vs. b105692

^  14.2s                                                                                                  
│   ┌──┐   13.5s   13.2s           13.3s   13.2s                           13.3s                          
│   |  |    ┌──┐    ┌──┐            ┌──┐    ┌──┐                            ┌──┐                    13s   
│   |  |    |  |    |  |            |  |    |  |                            |  |                    ┌──┐  
│ ──┼──┼────┼──┼────┼──┼───11.1s────┼──┼────┼──┼───────────11.7s───11.1s────┼──┼───11.6s────────────|▒▒|──
│   |  |    |  |    |  |    ┌──┐    |  |    |  |   10.8s    ┌──┐    ┌──┐    |  |    ┌──┐            |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    ┌──┐    |  |    |  |    |  |    |  |   10.2s    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    ┌──┐    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
└───┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴──>
    T-12    T-11    T-10    T-9     T-8     T-7     T-6     T-5     T-4     T-3     T-2     T-1      T    
Legend

largeDepsZisi: 1m 11.4s

⬆️ 5.81% increase vs. b105692

^ 1m 14.8s                                                                 1m 14s                         
│   ┌──┐  1m 11.3s1m 9.5s         1m 12.5s1m 11.3s                          ┌──┐                  1m 11.4s
│   |  |    ┌──┐    ┌──┐            ┌──┐    ┌──┐                            |  |  1m 6.9s           ┌──┐  
│ ──┼──┼────┼──┼────┼──┼──1m 2.7s───┼──┼────┼──┼───────────1m 3s────────────┼──┼────┌──┐────────────|▒▒|──
│   |  |    |  |    |  |    ┌──┐    |  |    |  |    59s     ┌──┐   58.2s    |  |    |  |   59.9s    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    ┌──┐    |  |    ┌──┐    |  |    |  |    ┌──┐    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
└───┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴──>
    T-12    T-11    T-10    T-9     T-8     T-7     T-6     T-5     T-4     T-3     T-2     T-1      T    
Legend

@eduardoboucas
Copy link
Member

@netlify-team-account-1 what's the status of this one?

@netlify-team-account-1
Copy link
Contributor Author

netlify-team-account-1 commented Sep 29, 2021

This is the test that was originally added a while ago to reproduce #636 (the issue we paired on). We found that this reproduction doesn't correctly capture the real issue - but the test may still be useful to prevent future bugs, so why not merge it.

@eduardoboucas
Copy link
Member

This is the test that was originally added a while ago to reproduce #636 (the issue we paired on). We found that this reproduction doesn't correctly capture the real issue - but the test may still be useful to prevent future bugs, so why not merge it.

Sounds good!

opts: { config: { '*': { nodeBundler: bundler } } },
})

// eslint-disable-next-line import/no-dynamic-require, node/global-require
Copy link
Member

Choose a reason for hiding this comment

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

We'll need to remove these once we land #682.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#682 is only about fixtures, not about test code. We could add // eslint-disable-file import/no-dynamic-require, node/global-require to the top of this file instead of line-by-line, though!

@kodiakhq kodiakhq bot merged commit a6d6abb into main Sep 29, 2021
@kodiakhq kodiakhq bot deleted the fix-636 branch September 29, 2021 15:58
@erlandsona
Copy link

Curious if this also solves for this issue with regular npm?

@Skn0tt
Copy link
Member

Skn0tt commented Jul 4, 2022

Not sure what issue you're referring to - if there's already an issue for it in this repository, could you link it? If not, feel free to open one :)

Skn0tt pushed a commit to netlify/build that referenced this pull request May 21, 2024
…/zip-it-and-ship-it#657)

* chore: add repro test for pnpm-style symlinking

* chore: show that it works with esbuild-based bundlers

Co-authored-by: Netlify Team Account 1 <netlify-team-account-1@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
automerge type: bug code to address defects in shipped code type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants