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

feat: emit schedule property into manifest #768

Merged
merged 7 commits into from Oct 26, 2021

Conversation

netlify-team-account-1
Copy link
Contributor

- Summary

Adds a new config field called schedule, which is emitted into the functions manifest.

TODO: mention in documentation.

- Test plan

added unit test.

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

@netlify-team-account-1 netlify-team-account-1 added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Oct 25, 2021
eduardoboucas
eduardoboucas previously approved these changes Oct 25, 2021
Copy link
Member

@eduardoboucas eduardoboucas left a comment

Choose a reason for hiding this comment

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

LGTM. I thought it'd be a good idea to formally define the format of the manifest file, especially as other systems will start to consume it, so I've created #770.

src/manifest.ts Outdated Show resolved Hide resolved
@eduardoboucas eduardoboucas changed the title Emit schedule property into manifest feat: emit schedule property into manifest Oct 25, 2021
@eduardoboucas
Copy link
Member

@netlify-team-account-1 let's hold off on merging this until #760 is released (which is waiting for #769).

Co-authored-by: Eduardo Bouças <mail@eduardoboucas.com>
@github-actions
Copy link
Contributor

⏱ Benchmark results

Comparing with 3c982bd

largeDepsEsbuild: 9.3s

⬆️ 16.69% increase vs. 3c982bd

^                                                          14.8s                                          
│                                                           ┌──┐                                          
│                          13.4s                            |  |                                          
│                  12.6s    ┌──┐                            |  |   12.6s                   12.6s          
│                   ┌──┐    |  |                            |  |    ┌──┐           11.6s    ┌──┐          
│ ──────────11s─────┼──┼────┼──┼───11.2s───11.1s───11.5s────┼──┼────┼──┼───10.8s────┌──┐────┼──┼──────────
│           ┌──┐    |  |    |  |    ┌──┐    ┌──┐    ┌──┐    |  |    |  |    ┌──┐    |  |    |  |          
│           |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    9.3s  
│           |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    ┌──┐  
│   7.8s    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   ┌──┐    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
└───┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴──>
    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 18.4s

⬆️ 18.92% increase vs. 3c982bd

^                                                         1m 23.6s                                        
│                         1m 17.4s                          ┌──┐                                  1m 18.4s
│                           ┌──┐                            |  |                                    ┌──┐  
│                 1m 11.3s  |  |                            |  |  1m 12.7s                1m 9.3s   |▒▒|  
│ 1m 5.5s           ┌──┐    |  |                            |  |    ┌──┐                    ┌──┐    |▒▒|  
│ ──┌──┐──1m 3.3s───┼──┼────┼──┼──1m 2.5s─────────1m 1.8s───┼──┼────┼──┼──────────1m 3.5s───┼──┼────|▒▒|──
│   |  |    ┌──┐    |  |    |  |    ┌──┐  1m 0.1s   ┌──┐    |  |    |  |  1m 0.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

tests/main.js Outdated Show resolved Hide resolved
tests/main.js Outdated
@@ -2147,7 +2147,7 @@ if (platform !== 'win32') {
})
}

test.only('Creates a manifest file with the list of created functions if the `manifest` property is supplied', async (t) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@eduardoboucas should we have some lint rule against leaving those in? 😅

Copy link
Member

Choose a reason for hiding this comment

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

Yes, definitely!

Copy link
Member

@eduardoboucas eduardoboucas left a comment

Choose a reason for hiding this comment

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

@netlify-team-account-1 netlify-team-account-1 merged commit ce5ee5e into main Oct 26, 2021
@netlify-team-account-1 netlify-team-account-1 deleted the manifest-include-schedue branch October 26, 2021 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

2 participants