197 Commits

Author SHA1 Message Date
Jonathan Goldwasser
a0a0fb1530 fix process not always exiting 2018-10-02 16:42:21 +02:00
Eslam A. Hefnawy
bdf1596dab fixed bug when using root apig path with dashboard 2018-07-28 16:13:19 +03:00
Eslam A. Hefnawy
914ed94abe always update deployment status 2018-07-25 22:21:11 +03:00
Mariusz Nowak
60662f0481 Enable bluebird long stack traces only in SLS_DEBUG mode 2017-10-03 15:09:42 +02:00
Mariusz Nowak
ea7c732de5 Introduce test program with exposed unhandled rejections 2017-08-24 14:34:56 +02:00
Eslam A. Hefnawy
dd6c21d51a auto deployment update 2017-07-17 19:55:43 +07:00
Philipp Muens
72bb1d74d9 Add infinite stack trace limit for Errors 2017-06-27 09:45:25 +02:00
Brian Neisler
851df3921a Make autocomplete async through promises 2017-06-07 18:40:05 -07:00
Eslam A. Hefnawy
8cfd906567 moved autocomoplete inside error block 2017-06-07 23:35:03 +07:00
Eslam A. Hefnawy
01c8f87705 added autocomplete 2017-06-07 22:01:15 +07:00
Philipp Muens
3839b0bcb6 Update to use new Promise.config syntax 2017-01-27 10:36:01 +01:00
Erik Erikson
363674c769 Enable Long Stack Traces
When an error occurs, we get the immediate stack trace but not the entire stack trace.  This often results in traces like:

```
[Container] 2017/01/26 21:33:22 ServerlessError: Access Denied
[Container] 2017/01/26 21:33:22 at (/usr/local/lib/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:177:20)
[Container] 2017/01/26 21:33:22 at Request.<anonymous> (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:355:18)
[Container] 2017/01/26 21:33:22 at Request.callListeners (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/sequential_executor.js:105:20)
[Container] 2017/01/26 21:33:22 at Request.emit (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
[Container] 2017/01/26 21:33:22 at Request.emit (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:668:14)
[Container] 2017/01/26 21:33:22 at Request.transition (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:22:10)
[Container] 2017/01/26 21:33:22 at AcceptorStateMachine.runTo (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/state_machine.js:14:12)
[Container] 2017/01/26 21:33:22 at /usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/state_machine.js:26:10
[Container] 2017/01/26 21:33:22 at Request.<anonymous> (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:38:9)
[Container] 2017/01/26 21:33:22 at Request.<anonymous> (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:670:12)
[Container] 2017/01/26 21:33:22 at Request.callListeners (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/sequential_executor.js:115:18)
[Container] 2017/01/26 21:33:22 at Request.emit (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
[Container] 2017/01/26 21:33:22 at Request.emit (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:668:14)
[Container] 2017/01/26 21:33:22 at Request.transition (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:22:10)
[Container] 2017/01/26 21:33:22 at AcceptorStateMachine.runTo (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/state_machine.js:14:12)
[Container] 2017/01/26 21:33:22 at /usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/state_machine.js:26:10
```

This tells me nothing about where the operation originated from that resulted in the "Access Denied" error.  Thus, my sad face surfaces.

I like my happy face and its probability of showing increases when I have messages that look like:

```
[Container] 2017/01/26 22:33:13 ServerlessError: Access Denied
[Container] 2017/01/26 22:33:13 at Response.<anonymous> (/usr/local/lib/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:162:20)
[Container] 2017/01/26 22:33:13 at Request.<anonymous> (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:355:18)
[Container] 2017/01/26 22:33:13 at Request.callListeners (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/sequential_executor.js:105:20)
[Container] 2017/01/26 22:33:13 at Request.emit (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
[Container] 2017/01/26 22:33:13 at Request.emit (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:668:14)
[Container] 2017/01/26 22:33:13 at Request.transition (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:22:10)
[Container] 2017/01/26 22:33:13 at AcceptorStateMachine.runTo (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/state_machine.js:14:12)
[Container] 2017/01/26 22:33:13 at /usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/state_machine.js:26:10
[Container] 2017/01/26 22:33:13 at Request.<anonymous> (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:38:9)
[Container] 2017/01/26 22:33:13 at Request.<anonymous> (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:670:12)
[Container] 2017/01/26 22:33:13 at Request.callListeners (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/sequential_executor.js:115:18)
[Container] 2017/01/26 22:33:13 at Request.emit (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
[Container] 2017/01/26 22:33:13 at Request.emit (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:668:14)
[Container] 2017/01/26 22:33:13 at Request.transition (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:22:10)
[Container] 2017/01/26 22:33:13 at AcceptorStateMachine.runTo (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/state_machine.js:14:12)
[Container] 2017/01/26 22:33:13 at /usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/state_machine.js:26:10
[Container] 2017/01/26 22:33:13 From previous event:
[Container] 2017/01/26 22:33:13 at /usr/local/lib/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:150:14
[Container] 2017/01/26 22:33:13 at doCall (/usr/local/lib/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:129:9)
[Container] 2017/01/26 22:33:13 at /usr/local/lib/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:140:14
[Container] 2017/01/26 22:33:13 From previous event:
[Container] 2017/01/26 22:33:13 at BbPromise (/usr/local/lib/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:127:38)
[Container] 2017/01/26 22:33:13 at AwsProvider.request (/usr/local/lib/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:143:12)
[Container] 2017/01/26 22:33:13 at AwsDeploy.<anonymous> (/usr/local/lib/node_modules/serverless/lib/plugins/aws/deploy/lib/configureStack.js:23:35)
[Container] 2017/01/26 22:33:13 From previous event:
[Container] 2017/01/26 22:33:13 at AwsDeploy.configureStack (/usr/local/lib/node_modules/serverless/lib/plugins/aws/deploy/lib/configureStack.js:23:10)
[Container] 2017/01/26 22:33:13 From previous event:
[Container] 2017/01/26 22:33:13 at AwsDeploy.hooks.deploy:initialize (/usr/local/lib/node_modules/serverless/lib/plugins/aws/deploy/index.js:42:10)
[Container] 2017/01/26 22:33:13 at /usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:160:50
[Container] 2017/01/26 22:33:13 at processImmediate [as _immediateCallback] (timers.js:383:17)
[Container] 2017/01/26 22:33:13 From previous event:
[Container] 2017/01/26 22:33:13 at PluginManager.run (/usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:160:22)
[Container] 2017/01/26 22:33:13 at Serverless.run (/usr/local/lib/node_modules/serverless/lib/Serverless.js:91:31)
[Container] 2017/01/26 22:33:13 at /usr/local/lib/node_modules/serverless/bin/serverless:21:50
```

That is **clearly** (relatively speaking) a lack of S3 rights and I can fix that!
2017-01-26 14:53:48 -08:00
Joe Stanton
b5284df55f
Reject promise and handle exit code in the wrapper 2016-12-14 10:11:51 +01:00
Florian Motlik
e94805519a Merge pull request #2332 from horike37/issue-2331
remove serverless-run-python-handler
2016-10-12 15:18:31 +02:00
Philipp Muens
3894c3d9c1 Closes #2328 - Silence deprecation warnings 2016-10-11 21:48:09 -07:00
horike37
a1eff3573c remove serverless-run-python-handler 2016-10-12 13:20:11 +09:00
Eslam A. Hefnawy
d2dc0ba58e ZERO linting issues and test coverage of 93% 🎉 🎉 2016-06-23 15:55:57 +02:00
Eslam A. Hefnawy
c16985a0d9 better ux for error handling 2016-06-23 15:55:57 +02:00
Eslam A. Hefnawy
23a41fe6ae add plugin/cli integration test 2016-06-17 14:29:23 +02:00
Philipp Muens
39d30b3ca0 Add automatic servicePath detection functionality
The service directory will be automatically detected if the users CWD is a valid
Serverless service directory.
2016-05-26 14:34:56 +02:00
Philipp Muens
aafc2fefd6 Rename and refactor existing plugins
Rename the existing plugins to match the new naming convention.
Fix bugs / refactor code / enhance test coverage alongside.
2016-05-25 07:12:15 +02:00
Eslam A. Hefnawy
de86121170 refactor: removed instances keyword and replaces this.S to this.serverless 2016-05-24 11:33:36 +02:00
Philipp Muens
c8639c678a Add argument support for CLI and plugins
Add the possibility to access arguments inside plugins (e.g. "--function function1" or "-f function").
Additionally the "lifeCycleEvent" property is renamed to "lifecycleEvent".
2016-05-23 15:17:22 +02:00
Philipp Muens
fb33a1412f Update naming of CLI test parameter 2016-05-20 19:35:31 +02:00
Philipp Muens
7f95047a5c Add CLI switch for tests
This switch enables a way to attach additional functionality to the serverless
instance when running tests.
2016-05-20 19:09:12 +02:00
Philipp Muens
30ee6d1592 Add basic CLI integration
Additionally unit and integration tests for the CLI are added.
2016-05-20 16:28:17 +02:00
Eslam A. Hefnawy
0338119a46 further cleaning of new plugin system 2016-05-17 08:43:55 +02:00
Eslam A. Hefnawy
8f6364b250 basic new plugin system 2016-05-17 08:43:55 +02:00
ac360
05af2e48e0 Tests: change credential loading to rely on profiles 2016-03-01 21:27:16 -08:00
Austen Collins
c1c5f0ae35 Change utils/new.js back to utils/index.js 2016-03-01 18:23:12 -08:00
ac360
241f70ed37 Remove old utils 2016-03-01 16:02:28 -08:00
Austen Collins
7f99288156 Serverless: fix loading 2016-02-22 16:43:24 -08:00
Austen Collins
241a376f1e remove mkdirp in favor of fs-extar 2016-02-22 14:10:32 -08:00
ac360
75382354ff Serializers: begin large refactor to use serializers 2016-02-17 15:31:01 -08:00
ac360
7498e843a5 Classes: remove serverless prefix WIP 2016-02-17 11:17:39 -08:00
Kamil Burzynski
b67b044117 Bugfixes
- project load is truly used in async way now
- a number of typos related to misplaced ; or ,
- S.init() used properly and systematically throughout the code
- sPath indexOf usage now looks only at beginning of paths, to avoid bugs like "foo/bar-get".indexOf( "bar" ) mistakenly finding a component 'bar' within 'foo'
2016-02-16 11:19:12 +01:00
Kamil Burzynski
e0e027dcd3 Refactoring: removed S.config.projectPath, Project instance is created at correct moments, common project helpers moved to Project 2016-02-09 15:14:17 +01:00
Ryan S. Brown
711f568b0c Use universal /usr/bin/env path instead of /bin/env 2016-01-26 14:36:57 -05:00
Ryan S. Brown
d091a16aaa Fix STDOUT and STDERR capture 2016-01-23 09:08:15 -05:00
Ryan S. Brown
39865daf08 Add python function-run binary 2016-01-23 09:08:15 -05:00
ac360
f675457b4e Classes: beging removing data prop 2016-01-14 23:19:16 -08:00
Eslam A. Hefnawy
04d866f6ee removed interactive option 2016-01-05 23:10:00 +02:00
ac360
1fbff06925 Project/Stage/RegionCreate/ResourcesDeploy: Change returned object to be submitted options only 2015-12-31 16:48:20 -08:00
ac360
d3787e9860 Serverless: change global private properties to be on config object 2015-12-31 16:42:00 -08:00
Norm MacLennan
3569e0cb9c Fix case-senstivity issues 2015-12-08 09:02:27 -08:00
Eslam A. Hefnawy
e30700e70a --debug option added 2015-12-07 22:36:19 -08:00
Austen Collins
01ba9f6a52 All: Rebrand 2015-12-03 20:31:49 -08:00
Eslam A. Hefnawy
4629869c2c ProjectCreate: All tests passed. Ready for release. 2015-11-25 13:07:40 +02:00
Austen Collins
d02b3f3668 FunctionDeploy: work on concurrent operations 2015-11-19 14:02:47 -08:00
Eslam A. Hefnawy
729785117e refactoring CF and S3 2015-11-17 14:29:01 +02:00