Skip to content

Invoke without building #341

Closed
Closed

Description

@sime

This is a Feature Proposal

Description

  • What is the use case that should be solved. The more detail you describe this in the easier it is to understand for us.
    We test our functions by running sls invoke local --function blah in CI. It is one of our slowest parts of pipeline. It would be ideal if it could be built once and flagged not to build again.
sls webpack
sls invoke local --function blah1 --noBuild
sls invoke local --function blah2 --noBuild

Similar or dependent issue(s):

  • n/a

Additional Data

  • Serverless-Webpack Version you're using: 4.1.0
  • Webpack version you're using: 3.8.1
  • Serverless Framework Version you're using: 1.25
  • Operating System: OS X/Linux

Activity

  1. sime commented on Mar 8, 2018

    @sime
    Author
  2. HyperBrain commented on Mar 8, 2018

    @HyperBrain
    Member

    Hi @sime . I agree, especially in a CI context the pattern is 1 * build, n * invoke. So, a single compile would make sense and a switch to disable building explicitly on all subsequent invokes.

    This is related to #288 and might solve this too.

  3. HyperBrain commented on Mar 13, 2018

    @HyperBrain
    Member

    PR available for testing. Use "serverless-webpack": "github:serverless-heaven/serverless-webpack#skip-build-with-invoke-local"

  4. added this to the 5.1.0 milestone on Mar 13, 2018
  5. HyperBrain commented on Mar 14, 2018

    @HyperBrain
    Member

    @sime Do you have any chance to test the PR?

  6. sime commented on Mar 14, 2018

    @sime
    Author

    @HyperBrain We run our CI on Travis and just tested it. CI time is now 2 minutes faster!

  7. HyperBrain commented on Mar 14, 2018

    @HyperBrain
    Member

    @sime Sounds good. I'll merge the PR now (and delete the branch). Please change to master to keep your builds working in case you continue to use it before the release.

  8. HyperBrain commented on Mar 14, 2018

    @HyperBrain
    Member

    Released with 5.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions