Skip to content

In-depth testing of package / deploy command separation #3467

Closed

Description

@pmuens

We've recently merged the separation of package and deploy into master (see: #3344)

This issue should be used to keep track of and coordinate all the tests we're about to do so that we can make sure that it's non-breaking and can be shipped with v1.12.

The following is a list with all the different tests. Please add all the different cases you can think of as a comment. We'll update it constantly so that it always reflects the status quo.

Aside: Maybe worthwhile to translate the test cases into different integration tests later on!


Test cases

serverless package

  • package.path
  • package.individually
  • function.package.individually
  • package.artifact
  • function.package.artifact
  • Command usage without --package
  • Command usage with --package

serverless deploy

  • package.path
  • package.individually
  • function.package.individually
  • package.artifact
  • function.package.artifact
  • Command usage without --package
  • Command usage with --package

serverless deploy function

  • Re-Deployed single function

Provider integrations

  • Google Cloud Functions provider plugin
  • Azure Functions provider plugin
  • OpenWhisk provider plugin

Other plugins

  • serverless-aws-alias
  • serverless-webpack

Misc

  • Deploy service other than Node.js (used the aws-java-maven template)
  • Run npm run simple-integration-test suite
  • Run npm run complex-integration-test
  • Run Docker-based integration tests (./tests/templates/test_all_templates)
    • Succeeds (somehow). Not sure what’s going on though…
  • Using provider.deploymentBucket (see here)
  • Extensive use of variable system (see here. Fixed with Persist self references with "${self:}" and restore it correctly #3527)

Notes

  • package command will override existing directories with path parameter (this is destructive and might cause problems)

/cc @brianneisler @eahefnawy @HyperBrain

Activity

  1. added this to the 1.12 milestone on Apr 13, 2017
  2. HyperBrain commented on Apr 13, 2017

    @HyperBrain
    Contributor

    @pmuens Please put a ✝️ (cross - I did not find the symbol you used) at serverless-webpack plugin as long as I have not fixed the issue. It uses package.artifact during the package phase, so I have to make that available with the correct value at that time.

  3. pmuens commented on Apr 13, 2017

    @pmuens
    ContributorAuthor

    Thanks for the update @HyperBrain (I'll update the description of the symbols real quick...).

    BTW. The Google Cloud Functions plugin has the same problem since it also tries to access package.artifact --> body: fs.createReadStream(this.serverless.service.package.artifact),

  4. HyperBrain commented on Apr 13, 2017

    @HyperBrain
    Contributor

    @pmuens Fix for the package.artifact is in #3469 . Please check also with the Google plugin. I tested it with the webpack and alias plugin already. It should be merged as soon as possible :)
    I will fix the deploymentBucket issue next.

  5. eahefnawy commented on Apr 26, 2017

    @eahefnawy
    Contributor

    Closing this as we've fixed all test cases except for one that we're tracking on another issue

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions