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

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
Skn0tt pushed a commit to netlify/build that referenced this pull request May 21, 2024
…-it#768)

* chore: add for schedule property

* feat: output `schedule` property into functions manifest

* Update src/manifest.ts

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

* Update main.js

* chore: integrate into existing manifest test

* chore: remove .only

Co-authored-by: Netlify Team Account 1 <netlify-team-account-1@users.noreply.github.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
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