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

chore(ci): fix our npm caching strategy for our e2e nextjs tests #655

Merged
merged 5 commits into from Sep 13, 2021

Conversation

JGAntunes
Copy link
Member

@JGAntunes JGAntunes commented Sep 13, 2021

- Summary

Similar to - netlify/cli#3277 - for our e2e tests seems like we clone a total of 3 projects. We need to make use of the cache-dependency-pathproperty to point to each of the lockfiles individually (see here).

- Test plan

- A picture of a cute animal (not mandatory but encouraged)

wombat-chore

@JGAntunes JGAntunes self-assigned this Sep 13, 2021
@github-actions github-actions bot added the type: chore work needed to keep the product and development running smoothly label Sep 13, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Sep 13, 2021

⏱ Benchmark results

Comparing with 4c64157

largeDepsEsbuild: 13s

⬆️ 11.71% increase vs. 4c64157

^  13.2s                           13.3s                                                            13s   
│   ┌──┐                            ┌──┐                           12.9s                   12.9s    ┌──┐  
│   |  |           11.7s            |  |                            ┌──┐                    ┌──┐    |▒▒|  
│ ──┼──┼────────────┌──┐───11.1s────┼──┼───11.6s───────────11.6s────┼──┼───────────11.3s────┼──┼────|▒▒|──
│   |  |   10.8s    |  |    ┌──┐    |  |    ┌──┐            ┌──┐    |  |   10.9s    ┌──┐    |  |    |▒▒|  
│   |  |    ┌──┐    |  |    |  |    |  |    |  |   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 6.6s

⬆️ 12.83% increase vs. 4c64157

^                                  1m 14s                          1m 15s                                 
│ 1m 11.3s                          ┌──┐                            ┌──┐                                  
│   ┌──┐                            |  |  1m 6.9s                   |  |                          1m 6.6s 
│   |  |           1m 3s            |  |    ┌──┐          1m 5.4s   |  |                  1m 2.9s   ┌──┐  
│ ──┼──┼────59s─────┌──┐───58.2s────┼──┼────┼──┼───59.9s────┌──┐────┼──┼────59s─────────────┌──┐────|▒▒|──
│   |  |    ┌──┐    |  |    ┌──┐    |  |    |  |    ┌──┐    |  |    |  |    ┌──┐   55.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

.github/workflows/e2e-nextjs.yml Outdated Show resolved Hide resolved
paths: ['CHANGELOG.md']
branches: [main, 'chore/fix-ci-npm-cache']
# Run on release PRs only, or changes to this same file
paths: ['CHANGELOG.md', '.github/workflows/e2e-nextjs.yml']
Copy link
Member

Choose a reason for hiding this comment

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

Should we remove this change before merging?

Copy link
Member

Choose a reason for hiding this comment

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

Actually, it kind of makes sense to run the CI when the workflow file changes, so maybe we should leave it?

Copy link
Member Author

Choose a reason for hiding this comment

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

If folks agree with it I would keep both these changes ☝️ similart to what we have with fossa -https://github.com/netlify/zip-it-and-ship-it/blob/main/.github/workflows/fossa.yml#L6-L7 - this way we have the ability to always test this during dev if needed be?

Copy link
Member Author

Choose a reason for hiding this comment

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

We could probably change the branch name though, maybe to something like chore/ci-e2e-nextjs? What do you think @eduardoboucas?

Copy link
Member

Choose a reason for hiding this comment

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

Oh, I see. So you'll use that branch whenever you want to test the flow? Sounds good to me!

Co-authored-by: João Antunes <joao@netlify.com>
@kodiakhq kodiakhq bot merged commit a9b86e2 into main Sep 13, 2021
@kodiakhq kodiakhq bot deleted the chore/fix-ci-npm-cache branch September 13, 2021 15:59
@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants