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

fix: populate Netlify global before customer code #1643

Merged
merged 2 commits into from
Nov 3, 2023
Merged

fix: populate Netlify global before customer code #1643

merged 2 commits into from
Nov 3, 2023

Conversation

Skn0tt
Copy link
Contributor

@Skn0tt Skn0tt commented Nov 2, 2023

@Skn0tt Skn0tt requested a review from eduardoboucas November 2, 2023 16:32
@Skn0tt Skn0tt self-assigned this Nov 2, 2023
@Skn0tt Skn0tt requested a review from a team as a code owner November 2, 2023 16:32
tests/v2api.test.ts Outdated Show resolved Hide resolved
Co-authored-by: Eduardo Bouças <mail@eduardoboucas.com>
Copy link
Contributor

github-actions bot commented Nov 2, 2023

⏱ Benchmark results

Comparing with a01ecdb

largeDepsEsbuild: 2.7s

⬇️ 16.06% decrease vs. a01ecdb

^   3.3s                                            3.4s                                                  
│   ┌──┐    3.3s            3.2s            3.1s    ┌──┐                                    3.1s          
│   |  |    ┌──┐            ┌──┐            ┌──┐    |  |            3.1s                    ┌──┐          
│   |  |    |  |            |  |            |  |    |  |            ┌──┐                    |  |          
│ ──┼──┼────┼──┼────2.7s────┼──┼────────────┼──┼────┼──┼────────────┼──┼────2.7s────────────┼──┼────2.7s──
│   |  |    |  |    ┌──┐    |  |    2.5s    |  |    |  |    2.6s    |  |    ┌──┐    2.5s    |  |    ┌──┐  
│   |  |    |  |    |  |    |  |    ┌──┐    |  |    |  |    ┌──┐    |  |    |  |    ┌──┐    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
└───┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴──>
    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

largeDepsNft: 8.4s

⬇️ 15.57% decrease vs. a01ecdb

^  11.2s                                                                                                  
│   ┌──┐                                           10.7s                                                  
│   |  |   10.1s            10s             9.8s    ┌──┐                                    9.8s          
│   |  |    ┌──┐            ┌──┐            ┌──┐    |  |            9.5s                    ┌──┐          
│   |  |    |  |            |  |            |  |    |  |            ┌──┐                    |  |          
│ ──┼──┼────┼──┼────8.4s────┼──┼────────────┼──┼────┼──┼────────────┼──┼────8.5s────────────┼──┼────8.4s──
│   |  |    |  |    ┌──┐    |  |    7.6s    |  |    |  |    8.1s    |  |    ┌──┐            |  |    ┌──┐  
│   |  |    |  |    |  |    |  |    ┌──┐    |  |    |  |    ┌──┐    |  |    |  |    7.4s    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    ┌──┐    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
└───┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴──>
    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: 16.4s

⬇️ 21.78% decrease vs. a01ecdb

^  20.9s                                           21.1s                                                  
│   ┌──┐   19.9s           19.7s           20.1s    ┌──┐                                    20s           
│   |  |    ┌──┐            ┌──┐            ┌──┐    |  |           19.4s                    ┌──┐          
│   |  |    |  |            |  |            |  |    |  |            ┌──┐                    |  |          
│ ──┼──┼────┼──┼───16.5s────┼──┼────────────┼──┼────┼──┼────────────┼──┼────────────────────┼──┼───16.4s──
│   |  |    |  |    ┌──┐    |  |            |  |    |  |   16.1s    |  |   16.2s            |  |    ┌──┐  
│   |  |    |  |    |  |    |  |   15.1s    |  |    |  |    ┌──┐    |  |    ┌──┐   15.1s    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    ┌──┐    |  |    |  |    |  |    |  |    |  |    ┌──┐    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
└───┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴──>
    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

@Skn0tt Skn0tt enabled auto-merge (squash) November 2, 2023 16:35
@Skn0tt
Copy link
Contributor Author

Skn0tt commented Nov 2, 2023

Hmm, GitHub Actions seems to be having troubles 🤔 Screenshot 2023-11-02 at 17 46 47

@Skn0tt Skn0tt merged commit 97992ee into main Nov 3, 2023
@Skn0tt Skn0tt deleted the nf-global branch November 3, 2023 09:54
Skn0tt added a commit to netlify/build that referenced this pull request May 21, 2024
…-ship-it#1643)

* fix: populate Netlify global before customer code

* Update tests/v2api.test.ts

Co-authored-by: Eduardo Bouças <mail@eduardoboucas.com>

---------

Co-authored-by: Eduardo Bouças <mail@eduardoboucas.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants