Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Release of new changes #654

Closed
nhalstead opened this issue Mar 13, 2023 · 14 comments · Fixed by #664
Closed

Release of new changes #654

nhalstead opened this issue Mar 13, 2023 · 14 comments · Fixed by #664

Comments

@nhalstead
Copy link

There have been changes made to the repo that still needs to be released. This includes the support for Node18 runtime that Azure has supported and was added to this repo but has yet to be released.

Diff: https://github.com/serverless/serverless-azure-functions/compare/f1c480f65d2cbe4f4682d2a154e755cc651bf7d6..master

@AndyM1H
Copy link

AndyM1H commented Mar 14, 2023

Totally agree. Is it possible to know when the new release will be? Azure will deprecate NodeJS 14 on April 30.

@caltuco
Copy link

caltuco commented Apr 6, 2023

We are facing the possibility to changes our deployments with Terraform, we need to use Node18 and right now we're stuck with the serverless framework.

@nhalstead
Copy link
Author

Hi @gligorkot, Can you make a release for the changes to this package?

@gligorkot
Copy link
Contributor

Hi @nhalstead, unfortunately I can't... I was working with @medikoo to help get the package released as we need it as well, I think the last step is to get #653 merged in which addresses @medikoo's requirements outlined in #645, but I haven't heard from him lately.

What we've done in the meantime on our stack is, we use patch-package https://www.npmjs.com/package/patch-package and apply this patch on top of 2.1.3 to support Node 18. You'd still need to use extension version v4 as explained in here to support Node 18 as well. #592 (comment)

serverless-azure-functions+2.1.3.patch

Hope the above helps get you moving and we can get a new release out soon.

@weisurya weisurya mentioned this issue Apr 12, 2023
6 tasks
@medikoo
Copy link
Contributor

medikoo commented May 9, 2023

All we need to publish a new release is an integration job setup in CI. Please see my comment in #645

I will also be happy to give a maintenance rights to anyone interested (but first let's get through few submissions together)

@gligorkot
Copy link
Contributor

gligorkot commented May 9, 2023

@medikoo please check my comment here #645 (comment) - I tried fixing the integration tests, but they require an Azure subscription. Any chance we can please skip integration tests and release at least a new minor version, then we can release a new major version once integration tests are up and running?

Here's my branch with possible fixes for the integration tests https://github.com/gligorkot/serverless-azure-functions/tree/integration-test-possible-fix

@gligorkot
Copy link
Contributor

Version 2.2.0 is out now with Node 16 and 18 support!

@medikoo
Copy link
Contributor

medikoo commented May 16, 2023

@gligorkot I've just checked the CI output, and one thing that worries me is list of published files:

npm notice 
npm notice 📦  [email protected]
npm notice === Tarball Contents === 
npm notice 1.1kB  LICENSE     
npm notice 14.2kB README.md   
npm notice 3.4kB  package.json
npm notice === Tarball Details === 
npm notice name:          serverless-azure-functions              
npm notice version:       2.2.0                                   
npm notice filename:      serverless-azure-functions-2.2.0.tgz    
npm notice package size:  6.9 kB                                  
npm notice unpacked size: 18.6 kB                                 
npm notice shasum:        c61b3690e396c05b73bf40096ca5e93c2f0dd042
npm notice integrity:     sha512-Byq3so3WIYQ+u[...]WD2LXW4KfTEGA==
npm notice total files:   3                                       
npm notice 
npm notice Publishing to https://registry.npmjs.org/ with tag latest and default access

It seems that no real logic was included, and empty (broken) release was just published (I think it can be debugged locally by running npm pack as that would generate tar without publish attempt)

@gligorkot
Copy link
Contributor

Oh @medikoo that's no good, ok, I'll give it a go locally and see if I can resolve

@medikoo
Copy link
Contributor

medikoo commented May 16, 2023

As I checked, the cause is here:

"files": [
"lib/"
],

I strongly suggest to revert from allow list approach (remove files setting in package.json) and instead rely on deny list (configured in .npmignore).

I remember we faced one similar issue in Framework deployment, where some important files failed to be included in the package, producing broken release.

In packages I maintain, I also issue tests against npm pack result -> https://github.com/medikoo/github-actions-workflows/blob/9009d668cf21e399ed67764af59c22120e34b97f/.github/workflows/8-validate.yml#L88-L129
It might be worthwhile to add such tests in CI here

@gligorkot
Copy link
Contributor

gligorkot commented May 16, 2023

@medikoo I saw that I had missed a build package step in the publish script - I just added it here to this PR #665 bf5a680 do you mind having a look please?

@gligorkot
Copy link
Contributor

@medikoo tested locally after running npm run build and then npm pack I see all the files in the output correctly. I think it should be good to go now.

@gligorkot
Copy link
Contributor

@medikoo looks like it has worked after the updates. v2.2.1 is out.

@medikoo
Copy link
Contributor

medikoo commented May 17, 2023

@gligorkot great to hear that 🎉

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 a pull request may close this issue.

5 participants