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

Fix packaging for non-node functions #876

Merged

Conversation

FatalTouch
Copy link
Contributor

@FatalTouch FatalTouch commented Jun 10, 2021

What did you implement:

Closes: --

Continuation of #808

This PR will make it so all non-node runtimes are ignored.

How did you implement it:

Replaced instances of this.serverless.service.getAllFunctions with a new util function that filters and returns only node functions.

How can we verify it:

Unit tests are added and updated:

Can be tested with any config that include other runtimes like python,java etc.

Todos:

  • Write tests
  • Write documentation
  • Fix linting errors
  • Make sure code coverage hasn't dropped
  • Provide verification config / commands / resources
  • Enable "Allow edits from maintainers" for this PR
  • Update the messages below

Is this ready for review?: Yes
Is it a breaking change?: NO

@j0k3r j0k3r added this to the 5.5.1 milestone Jun 10, 2021
Copy link
Member

@j0k3r j0k3r left a comment

Choose a reason for hiding this comment

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

It looks ok, thanks @FatalTouch 🙏

Also:
- remove useless `console.log`
- add a test to cover an exception when container image is badly defined
- run format command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants