incubator-openwhisk-runtime-php.git
3 weeks agoUpdate patch level for php & publish docker image latest with git hash (#45) master
Carlos Santana [Mon, 12 Nov 2018 22:16:22 +0000 (17:16 -0500)] 
Update patch level for php & publish docker image latest with git hash (#45)

* publish docker image latest with git hash
* update patch levels for php

3 weeks agoprint sentinels in new line for php 7.2 (#44)
Carlos Santana [Mon, 12 Nov 2018 21:35:24 +0000 (16:35 -0500)] 
print sentinels in new line for php 7.2 (#44)

4 weeks agoSwitch to Scala 2.12.7 (#42)
Chetan Mehrotra [Wed, 7 Nov 2018 00:06:29 +0000 (05:36 +0530)] 
Switch to Scala 2.12.7 (#42)

3 months agoRevert the content of copyright to the content in the template (#41) 7.1@1.12.0-incubating 7.2@1.12.0-incubating
Vincent [Tue, 28 Aug 2018 20:00:42 +0000 (16:00 -0400)] 
Revert the content of copyright to the content in the template (#41)

3 months agoAllow /run endpoint to accept more environment variables (#40) 7.1@1.0.3 7.2@1.0.2
Carlos Santana [Wed, 15 Aug 2018 14:20:42 +0000 (10:20 -0400)] 
Allow /run endpoint to accept more environment variables (#40)

4 months agoRemove unnecessary ansible files. (#39)
rodric rabbah [Mon, 6 Aug 2018 18:48:11 +0000 (14:48 -0400)] 
Remove unnecessary ansible files. (#39)

4 months agoTag master build as 'latest'.
Rodric Rabbah [Thu, 12 Jul 2018 17:25:04 +0000 (13:25 -0400)] 
Tag master build as 'latest'.

5 months agoRemove unnecessary Travis steps. 7.1@1.0.2 7.2@1.0.1
Rodric Rabbah [Mon, 9 Jul 2018 19:34:30 +0000 (15:34 -0400)] 
Remove unnecessary Travis steps.

5 months agoBypass failing test.
Rodric Rabbah [Tue, 10 Jul 2018 01:24:01 +0000 (21:24 -0400)] 
Bypass failing test.

5 months agoUpdate tests to pick up upstream changes.
Rodric Rabbah [Sun, 8 Jul 2018 01:20:35 +0000 (21:20 -0400)] 
Update tests to pick up upstream changes.

5 months agoDo not write sentinels on a second init
Rob Allen [Mon, 9 Jul 2018 08:27:17 +0000 (09:27 +0100)] 
Do not write sentinels on a second init

If a second /init is attempted, we don't want to write sentinels as this
will truncate the log stream.

5 months agoEnsure that /init cannot be called more than once (#34)
Rob Allen [Thu, 5 Jul 2018 17:40:56 +0000 (20:40 +0300)] 
Ensure that /init cannot be called more than once (#34)

5 months agoFix travis publish 72 (#32) 7.1@1.0.1 7.1@latest 7.2@1.0.0 7.2@latest
Carlos Santana [Wed, 20 Jun 2018 19:39:16 +0000 (15:39 -0400)] 
Fix travis publish 72 (#32)

5 months agoAdd PHP 7.2.6 runtime (#28)
Rob Allen [Wed, 20 Jun 2018 14:38:46 +0000 (15:38 +0100)] 
Add PHP 7.2.6 runtime (#28)

5 months agoAdd skip_pull_runtimes for Travis CI (#30)
Vincent [Tue, 19 Jun 2018 17:55:32 +0000 (13:55 -0400)] 
Add skip_pull_runtimes for Travis CI (#30)

6 months agoUpdate to PHP 7.1.18, Uuid 3.7.3 & Guzzle 6.3.3 (#27)
Rob Allen [Fri, 8 Jun 2018 17:35:25 +0000 (18:35 +0100)] 
Update to PHP 7.1.18, Uuid 3.7.3 & Guzzle 6.3.3 (#27)

* Upgrade to PHP 7.1.18
* Remove empty continuation lines in Dockerfile
* guzzlehttp/guzzle => 6.3.3, ramsey/uuid => 3.7.3

6 months agoupdate Travis to push master tag on Docker when master branch has changes merged...
Eric Weiterman [Fri, 8 Jun 2018 17:16:35 +0000 (13:16 -0400)] 
update Travis to push master tag on Docker when master branch has changes merged (#17)

6 months agoAdd the DISCLAIMER file for Apache incubator project
Vincent Hou [Wed, 6 Jun 2018 19:20:44 +0000 (15:20 -0400)] 
Add the DISCLAIMER file for Apache incubator project

Partially-closes: apache/incubator-openwhisk-release#180

6 months agoFix bad Dockerfile license and use ASF release config. (#24)
Matt Rutkowski [Wed, 30 May 2018 15:12:14 +0000 (10:12 -0500)] 
Fix bad Dockerfile license and use ASF release config. (#24)

6 months agoremove duplicate code from main repo (#25)
Carlos Santana [Wed, 30 May 2018 14:26:15 +0000 (10:26 -0400)] 
remove duplicate code from main repo (#25)

6 months agoLast files to need ASF License headers. (#23)
Matt Rutkowski [Wed, 23 May 2018 14:46:01 +0000 (09:46 -0500)] 
Last files to need ASF License headers. (#23)

* Last files to need ASF License headers.

* Add ASF license header to .gradle files.

6 months agoFix travis yaml file asf header, change to mini. (#22)
Matt Rutkowski [Fri, 18 May 2018 16:39:53 +0000 (11:39 -0500)] 
Fix travis yaml file asf header, change to mini. (#22)

6 months agoRestore the LICENSE and NOTICE to fit the source code release (#21)
Vincent [Fri, 11 May 2018 22:34:51 +0000 (18:34 -0400)] 
Restore the LICENSE and NOTICE to fit the source code release (#21)

All the work we have done for binary dependencies have been saved
in openwhisk release. We will resume the work later in openwhisk
release repository.

7 months agoFix markdown files with a typo. in the Hash license header. (#20)
Matt Rutkowski [Thu, 10 May 2018 14:43:25 +0000 (09:43 -0500)] 
Fix markdown files with a typo. in the Hash license header. (#20)

7 months agoAdd ASF license headers to all Scala .conf files. (#19)
Matt Rutkowski [Tue, 8 May 2018 17:31:00 +0000 (12:31 -0500)] 
Add ASF license headers to all Scala .conf files. (#19)

7 months agoAdd the license of dependencies into LICENSE file (#14)
Vincent [Wed, 2 May 2018 22:27:05 +0000 (18:27 -0400)] 
Add the license of dependencies into LICENSE file (#14)

Partially-closes: apache/incubator-openwhisk-release#109

7 months agoUpdate .md and .sh files to pass scancode with latest .cfg (#18)
Matt Rutkowski [Wed, 2 May 2018 02:21:17 +0000 (21:21 -0500)] 
Update .md and .sh files to pass scancode with latest .cfg (#18)

* Update .md and .sh files to pass scancode with latest .cfg

* Update .md and .sh files to pass scancode with latest .cfg

7 months agoAdd scancode using ASF config. to Travis build. (#15)
Matt Rutkowski [Wed, 18 Apr 2018 20:17:53 +0000 (15:17 -0500)] 
Add scancode using ASF config. to Travis build. (#15)

7 months agoadd license header to docker file (#13)
Ying Chun Guo [Tue, 17 Apr 2018 16:40:12 +0000 (00:40 +0800)] 
add license header to docker file (#13)

8 months agoUpdate NOTICE file (#12)
Ying Chun Guo [Wed, 4 Apr 2018 13:38:00 +0000 (21:38 +0800)] 
Update NOTICE file (#12)

8 months agoadd webhook for slack notification of PR results
David Grove [Fri, 23 Mar 2018 19:04:28 +0000 (15:04 -0400)] 
add webhook for slack notification of PR results

8 months agoFix the ansible issue by changing the variables in environment/local (#9)
Vincent [Fri, 16 Mar 2018 20:13:37 +0000 (16:13 -0400)] 
Fix the ansible issue by changing the variables in environment/local (#9)

9 months agoAdd the license headers to the files missing them (#7)
Vincent [Sat, 3 Mar 2018 14:57:16 +0000 (09:57 -0500)] 
Add the license headers to the files missing them (#7)

9 months agoSwitch to Maven based dependency (#3)
Chetan Mehrotra [Thu, 1 Mar 2018 02:13:46 +0000 (07:43 +0530)] 
Switch to Maven based dependency (#3)

9 months agoAdd NOTICE file to this repo (#6)
Vincent [Tue, 27 Feb 2018 03:40:02 +0000 (22:40 -0500)] 
Add NOTICE file to this repo (#6)

12 months agoFix ansible for kafka HA changes upstream.
Rodric Rabbah [Sat, 2 Dec 2017 16:01:48 +0000 (11:01 -0500)] 
Fix ansible for kafka HA changes upstream.

12 months agoFix more swift/php errors.
Rodric Rabbah [Sat, 2 Dec 2017 15:46:07 +0000 (10:46 -0500)] 
Fix more swift/php errors.

12 months agoTypo: PHP does not include the letters s, w, i, f, or t
Lars Trieloff [Mon, 27 Nov 2017 19:48:40 +0000 (20:48 +0100)] 
Typo: PHP does not include the letters s, w, i, f, or t

12 months agoUpdate travis to use remote as the cli installation mode (#1)
Vincent [Tue, 21 Nov 2017 23:56:00 +0000 (18:56 -0500)] 
Update travis to use remote as the cli installation mode (#1)

14 months agoremove bx from readme
Carlos Santana [Tue, 3 Oct 2017 01:46:16 +0000 (21:46 -0400)] 
remove bx from readme

14 months agoAdd travis creds 7.1@1.0.0
Carlos Santana [Fri, 29 Sep 2017 23:49:25 +0000 (19:49 -0400)] 
Add travis creds

14 months agoConfigure php runtime as stand-alone repo
Carlos Santana [Fri, 29 Sep 2017 21:26:37 +0000 (17:26 -0400)] 
Configure php runtime as stand-alone repo

14 months agoShare bookkeeping data across controllers (#2531)
Vadim Raskin [Fri, 29 Sep 2017 12:47:47 +0000 (14:47 +0200)] 
Share bookkeeping data across controllers (#2531)

* Use akka distributed map to store the shared state

* Join seed nodes in the load balancer service

* Add optional auto-down-unreachable-after

* Local bookkeeping is used by default

* Update documentation

14 months agoContainerFactory SPI (#2659)
tysonnorris [Mon, 25 Sep 2017 16:50:04 +0000 (09:50 -0700)] 
ContainerFactory SPI (#2659)

14 months agoSupport docker for mac using the 'local' environment (#2686)
Carlos Santana [Fri, 15 Sep 2017 23:31:29 +0000 (19:31 -0400)] 
Support docker for mac using the 'local' environment (#2686)

14 months agoupdate .gitignore out/ for intellij (#2756)
Carlos Santana [Fri, 15 Sep 2017 16:58:03 +0000 (12:58 -0400)] 
update .gitignore out/ for intellij (#2756)

14 months agoBump akka-http to version 10.0.10. (#2726)
James Dubee [Tue, 12 Sep 2017 05:36:45 +0000 (01:36 -0400)] 
Bump akka-http to version 10.0.10. (#2726)

15 months agoApply standard scala formatting. (#2650)
Markus Thömmes [Wed, 6 Sep 2017 18:53:48 +0000 (20:53 +0200)] 
Apply standard scala formatting. (#2650)

Formats all .scala files according to `scalafmt`'s (opinionated) style.
Adds Travis checks for correctly formatted code.

15 months agoIgnore IntelliJ '.iml' project file (#2671)
Qaiser Abbasi [Thu, 31 Aug 2017 21:10:46 +0000 (23:10 +0200)] 
Ignore IntelliJ '.iml' project file (#2671)

15 months agoSimplify Spi implementations. (#2663)
Markus Thömmes [Thu, 31 Aug 2017 13:39:18 +0000 (15:39 +0200)] 
Simplify Spi implementations. (#2663)

Using `object`s instead of a hollow class as the "factory" for an Spi makes them being singleton by default, which reduces boilerplate to implement an Spi.

The `Dependencies` object is not used anywhere and there might be better alternatives which we can decide on once the need of them comes up. For now, the Spi's interfaces are relatively tightly coupled to their current default implementations anyway.

Also updated documentation.

15 months agoInstall composer in its own layer (#2641)
Rob Allen [Thu, 17 Aug 2017 20:50:36 +0000 (21:50 +0100)] 
Install composer in its own layer (#2641)

Composer installation seems to fail sometimes in the CI build
environment. Move the installation of composer to a separate layer and
separate the download of the file via curl from the installation
process. Finally, run `composer --version` to ensure that it has been
installed correctly.

15 months agoUse Java based JsonSchema validator (#2565)
Markus Thömmes [Wed, 16 Aug 2017 16:06:46 +0000 (18:06 +0200)] 
Use Java based JsonSchema validator (#2565)

15 months agoRemove old invoker code and refactor accordingly. (#2602)
Markus Thömmes [Wed, 16 Aug 2017 15:57:46 +0000 (17:57 +0200)] 
Remove old invoker code and refactor accordingly. (#2602)

- Refactoring the invoker for better encapsulation and separation of concerns in its packages.
- Removing Dispatcher.
- Remove unused properties from the deployment manifests.
- Add error handling for terminal failures

15 months agoBumping to gradle 4.1. (#2399)
Markus Thömmes [Wed, 16 Aug 2017 13:27:57 +0000 (15:27 +0200)] 
Bumping to gradle 4.1. (#2399)

Refer to https://docs.gradle.org/current/release-notes.html for the full release notes.

- Zinc updated (incremental Scala compiler)
- Better logging for parallel tasks (useful locally when working with redo)
- Build cache improvements

15 months agoPort Controller from Spray to Akka (#2218)
James Dubee [Sat, 12 Aug 2017 14:38:55 +0000 (10:38 -0400)] 
Port Controller from Spray to Akka (#2218)

* Port Controller from Spray to Akka
* Increase max-connections and Update JSON Unmarshaller

16 months agoAdd ability to add own environments without polluting git
Christian Bickel [Mon, 7 Aug 2017 06:30:10 +0000 (08:30 +0200)] 
Add ability to add own environments without polluting git

16 months agoSPI approach for pluggable implementations. (#2414)
tysonnorris [Fri, 4 Aug 2017 06:54:28 +0000 (23:54 -0700)] 
SPI approach for pluggable implementations. (#2414)

Adds the ability to add pluggable implementations for defined Service Provider Interfaces (SPI). The implementation to load is chosen via configuration.

First set of plug-points are:
- ArtifactStoreProvider
- MessagingProvider

16 months agoAdopt .gitignore to ignore generated certs. (#2525)
Christian Bickel [Wed, 26 Jul 2017 08:54:29 +0000 (10:54 +0200)] 
Adopt .gitignore to ignore generated certs. (#2525)

16 months agoAdd PHP 7.1 as a kind (#2415)
Rob Allen [Mon, 24 Jul 2017 16:38:34 +0000 (17:38 +0100)] 
Add PHP 7.1 as a kind (#2415)

* Implement PHP 7.1 kind
* Add tests for PHP 7.1 action
* Add PHP action documentation

Build the Docker container from php:7.1-alpine and implement the HTTP
server using PHP's built in server.

Note that when using a zip file, the router requires that the `main`
function is stored in `index.php`.

Note about the runner:
The runner sets the exit code to 1 if it has set the last line of stdout
to a string suitable for presentation to the user. Therefore, if the
exit code is not one, then display a generic message.

If there's a runtime error in the action (i.e. not spotted by linter),
then looking for the main() function will find it. Render the error to
the logs so that the user knows what's happened.

Note about vendor folder in a PHP zip:
If the PHP vendor file has a vendor directory, then this directory needs
to be used rather than the one supplied in the action container.

To do this, we require src/vendor/autoload.php which will exist if the
zip file contains it. For the two cases where (1) zip file does not contain a
vendor folder, or (2) when running a non-binary code action, we move the
container's vendor folder into src/.

16 months agoUpdate documentation:formatting for intelliJ (#2511)
Vadim Raskin [Thu, 20 Jul 2017 11:50:56 +0000 (13:50 +0200)] 
Update documentation:formatting for intelliJ (#2511)

16 months agoRemove play dependence. (#2438)
rodric rabbah [Fri, 14 Jul 2017 07:43:28 +0000 (03:43 -0400)] 
Remove play dependence. (#2438)

17 months agoignore *.class with .gitignore (#2448)
Carlos Santana [Fri, 30 Jun 2017 01:16:57 +0000 (21:16 -0400)] 
ignore *.class with .gitignore (#2448)

17 months agoMake OW run with docker for mac (#1790)
Dominic Kim [Wed, 28 Jun 2017 00:22:18 +0000 (09:22 +0900)] 
Make OW run with docker for mac (#1790)

* Add documentation for docker for mac (#1431)
* Replace akka-http client to play-ws client (temporarily)
* Introduce docker-machine environment

17 months agoAdd Swift 3.1.1 as a kind (#2120)
Paul Castro [Mon, 26 Jun 2017 23:33:27 +0000 (19:33 -0400)] 
Add Swift 3.1.1 as a kind (#2120)

* Experimental branch for 2079, uses ibm swift ubuntu image for 3.1

* Fixes issue #2079, add Swift 3.1.1 runtime kind, update Swift dependencies for Watson SDK, KituraNet, SwiftyJson

* add apache license

* Fix swift311 location and catch docker brake

The location of the swift binary for 311 is now in /usr/bin/swift
Need to catch docker errors when building by usig && instead of ;

* new zip for new swift311 runtime

17 months agoChanged all .scala and .java files to ASF license headers. (#2367)
Matt Rutkowski [Tue, 20 Jun 2017 20:45:35 +0000 (15:45 -0500)] 
Changed all .scala and .java files to ASF license headers. (#2367)

18 months agoMake travis fast again (#2308)
Carlos Santana [Mon, 29 May 2017 12:30:09 +0000 (08:30 -0400)] 
Make travis fast again (#2308)

* make travis fast again

* Refactor Unicode test to be able to exclude python and swift

* color term expect gradlew

* do apache license header

* Use abstract class

* exclude Java

* remove initializer from abstract class

18 months agoreplace github refs openwhisk to apache (#2236)
Carlos Santana [Mon, 15 May 2017 16:46:38 +0000 (12:46 -0400)] 
replace github refs openwhisk to apache (#2236)

19 months agoImplement a proxy for a container to implement concurrent behavior (#2107)
Markus Thömmes [Thu, 4 May 2017 19:33:25 +0000 (21:33 +0200)] 
Implement a proxy for a container to implement concurrent behavior (#2107)

A proxy that wraps a Container. It is used to keep track of the lifecycle
of a container and to guarantee a contract between the client of the container
and the container itself.

The contract is as follows:
1. Only one job is to be sent to the ContainerProxy at one time. ContainerProxy
   will delay all further jobs until the first job is finished for defensiveness
   reasons.
2. The next job can be sent to the ContainerProxy after it indicated capacity by
   sending NeedWork to its parent.
3. A Remove message can be sent at any point in time. Like multiple jobs though,
   it will be delayed until the currently running job has finished.

19 months agoBump gradle to version 3.5 (#2176)
Markus Thömmes [Tue, 25 Apr 2017 10:09:12 +0000 (12:09 +0200)] 
Bump gradle to version 3.5 (#2176)

This includes a much nicer output, especially with parallel jobs.

19 months agoAdds multiple file support for Swift actions with zip files. (#1993)
Paul Castro [Wed, 19 Apr 2017 02:11:09 +0000 (22:11 -0400)] 
Adds multiple file support for Swift actions with zip files. (#1993)

Also fixes bad redirect in build script.

19 months agoAPI GW V2 - Add 'wsk api` command (#2068)
Mark Deuser [Thu, 13 Apr 2017 21:39:25 +0000 (17:39 -0400)] 
API GW V2 - Add 'wsk api` command (#2068)

* API GW V2 CLI - Add 'wsk api' command
- Support both 'wsk api-experimental' and 'wsk api' commands (separate PR wil deprecate `api-experimental`)
- 'wsk api' command requires that the target action exist and that it's a web action

* API GW V2 CLI - 'wsk api' tests
* Add "COMING SOON" label to 'wsk api' help
* API update needs additional param
* Reduce travis test execution time

20 months agoAdds virtualenv support for python actions.
Robert Sulzmann [Fri, 3 Mar 2017 15:32:35 +0000 (16:32 +0100)] 
Adds virtualenv support for python actions.

Also, change working directory for Python actions to allow relative path access to file system.

20 months agoTiny text changes to clarify how enhancement requests should be raised in GH issues...
Michael Marth [Fri, 7 Apr 2017 02:36:53 +0000 (19:36 -0700)] 
Tiny text changes to clarify how enhancement requests should be raised in GH issues (#2100)

20 months agoEnable tests for unicode for python, swift. (#2070)
rodric rabbah [Mon, 3 Apr 2017 18:03:03 +0000 (14:03 -0400)] 
Enable tests for unicode for python, swift. (#2070)

Re-enable build swift/python containers (for tests to run).
Add unicode unit test for swift action container.
Allow for reinit with swift for use with invoke.py.
Fix unicode regression for swift actions.
Refactor unicode tests to add coverage - now also for base action container.
Set string encoding to utf-8 for swift action proxy.
Rewrite result extraction to avoid splitting and printing logs one line at a time.
Skip decoding when process output is a string; already utf-8.

Consolidate base64 encoding in CLI; remove Jar field in exec.

20 months agoAdd python:3 action support.
cclauss [Fri, 24 Feb 2017 09:45:12 +0000 (10:45 +0100)] 
Add python:3 action support.

Update tests to work in both Python 2 and Python 3.
Rename pythonaction to python3action for container image name for clarity.
Add tests for python:2 and python:3.
Add image names for all the actions. Rename javaaction to java8action for consistency.

20 months agodrop support for nodejs 0.12.x (#2022)
Jason Peterson [Wed, 15 Mar 2017 17:33:25 +0000 (13:33 -0400)] 
drop support for nodejs 0.12.x (#2022)

21 months agoAdding documentation on gradle usage
Markus Thoemmes [Fri, 10 Mar 2017 12:10:10 +0000 (13:10 +0100)] 
Adding documentation on gradle usage

21 months agoMoved to swift client repo.
Rodric Rabbah [Tue, 7 Mar 2017 15:37:09 +0000 (10:37 -0500)] 
Moved to swift client repo.

21 months agoReplace the old InvokerHealth with the actor based one (#1865)
Markus Thömmes [Tue, 7 Mar 2017 19:42:43 +0000 (20:42 +0100)] 
Replace the old InvokerHealth with the actor based one (#1865)

21 months agoRemove dependence on Exec.[js, ...] helpers; these are test helpers hence move to...
Rodric Rabbah [Sat, 4 Mar 2017 09:08:18 +0000 (04:08 -0500)] 
Remove dependence on Exec.[js, ...] helpers; these are test helpers hence move to test.

Remove subtypes.

Move exec utils for image construction to singleton.

Rebase

21 months agoAllow pre-compiled Swift binaries.
Rodric Rabbah [Mon, 6 Mar 2017 01:19:08 +0000 (20:19 -0500)] 
Allow pre-compiled Swift binaries.

21 months agoClean up test project (#1960)
Markus Thömmes [Tue, 7 Mar 2017 14:35:29 +0000 (15:35 +0100)] 
Clean up test project (#1960)

- Remove unused dependencies
- Define dependencies as compile time to be able to include them from other projects
- Standardize layout

* Bumping restassured version

* Update gitignore to include .cache-tests

21 months agoEncode Exec runtime manifests in deployment configuration.
Rodric Rabbah [Sun, 5 Mar 2017 03:06:34 +0000 (22:06 -0500)] 
Encode Exec runtime manifests in deployment configuration.

Add manifest schema.
Add utilities to read Exec runtimes from manifest.
Add runtimes manifest to ansible group vars.
Write out manifest to whisk.properties and make available through WhiskConfig.

21 months agoFix regression introduced in #1946 (#1950)
Justin Berstler [Mon, 6 Mar 2017 15:46:48 +0000 (10:46 -0500)] 
Fix regression introduced in #1946 (#1950)

The change in #1946 introduced a regression such that it did not allow for Node.js zipped actions which contain an index.js but not a package.json. This is a valid configuration and should be supported.

21 months agoBump scalatest version
Markus Thoemmes [Mon, 6 Mar 2017 08:01:55 +0000 (09:01 +0100)] 
Bump scalatest version

21 months agoWarn users against the dangers of using Windows Explorer's zip action.
Justin Berstler [Sun, 5 Mar 2017 15:25:31 +0000 (10:25 -0500)] 
Warn users against the dangers of using Windows Explorer's zip action.

Using the Windows Explorer method of creating zip actions results in an incorrect zip structure. OW requires that package.json be found at the root of the zip, while the Explorer action insists on putting everything inside a top-level folder inside the zip.

Return an explicit error when package.json is not found at the root of a zipped action.

21 months agoNormalize initializer for all execs. (#1938)
rodric rabbah [Fri, 3 Mar 2017 19:28:31 +0000 (14:28 -0500)] 
Normalize initializer for all execs. (#1938)

* Normalize initializer for all execs.

* Handle empty code for blackbox.

* Do not include code if null.

21 months agoSupport python actions with zip files.
Rodric Rabbah [Mon, 27 Feb 2017 01:48:05 +0000 (20:48 -0500)] 
Support python actions with zip files.

Refactoring of init method into an init-from-source and init-from-zip.
Support a zip file containing more than one python file.
The zip file must contain a file called __main__.py that defines a "main" method.

Log an error when python zip does not include required file.

21 months agoCleanup factory indirections
Markus Thoemmes [Mon, 27 Feb 2017 12:57:04 +0000 (13:57 +0100)] 
Cleanup factory indirections

21 months agoRemove feature to access multiple namespaces with one key
Markus Thoemmes [Mon, 27 Feb 2017 12:32:25 +0000 (13:32 +0100)] 
Remove feature to access multiple namespaces with one key

This removes lots of code related to a deprecated 1:n mapping of keys to namespaces. The /namespaces call will now only yield exactly one namespace, which is the namespace of the key you're providing.

21 months agoRefactor CLI so that additional commands won't need common code updates
Mark Deuser [Wed, 22 Feb 2017 17:31:31 +0000 (12:31 -0500)] 
Refactor CLI so that additional commands won't need common code updates

test case fix when running on windows/vagrant

Remove Externalized Strings that do not Belong

21 months agoReduce time to execute tests by 10 minutes (#1935)
Christian Bickel [Thu, 2 Mar 2017 22:00:57 +0000 (23:00 +0100)] 
Reduce time to execute tests by 10 minutes (#1935)

21 months agoRemove swift 2 action proxy.
Rodric Rabbah [Sun, 26 Feb 2017 16:21:35 +0000 (11:21 -0500)] 
Remove swift 2 action proxy.

Remove rotted script.

21 months agoModify controller to check for deprecation status of runtime.
Paul Castro [Wed, 16 Nov 2016 15:31:00 +0000 (10:31 -0500)] 
Modify controller to check for deprecation status of runtime.

Adds bit to Exec to indicate action my not longer be activated or updated.
Adds checks for unsupported runtime in Actions API and report proper error.

Drop Swift 2 support
Adds tests.

21 months agoInvoker health ping through kafka
Markus Thoemmes [Fri, 3 Feb 2017 10:11:17 +0000 (11:11 +0100)] 
Invoker health ping through kafka

The invokers ping the controller through a seperate topic in Kafka to indicate they are still alive. This is groundwork for a more sophisticated health protocol for our invokers.

21 months agoFlatten Exec hiearchy (#1911)
rodric rabbah [Mon, 27 Feb 2017 18:01:53 +0000 (13:01 -0500)] 
Flatten Exec hiearchy (#1911)

* Remove unused script name variable for node js actions.

* Allow zip action without checking the kind - let backend determine if supported or not.

* Flatten exec hierarchy to remove unnecessary distinctions.

21 months agoremove whisk object (#1878)
Jason Peterson [Mon, 27 Feb 2017 17:54:18 +0000 (12:54 -0500)] 
remove whisk object (#1878)

21 months agoGC container after a failed unpause
Justin Berstler [Wed, 22 Feb 2017 14:23:03 +0000 (09:23 -0500)] 
GC container after a failed unpause

21 months agoDo not retry /run on action containers
Justin Berstler [Tue, 21 Feb 2017 20:51:45 +0000 (15:51 -0500)] 
Do not retry /run on action containers

It should be assumed that /run only happens after /init which should itself ensure that the container is running and ready. With that in mind, it does not make sense to attempt to retry posting to the /run endpoint on connection failures. Such a failure is an indication that something catastrophic has happened to the container, and no attempt at recovery should be made.

This is accomplished by adding a "retry" flag to the appropriate HTTP utilities to control whether or not a retry should be attempted.

21 months agoRemove meta packages, normalize on web actions.
Rodric Rabbah [Fri, 17 Feb 2017 00:56:04 +0000 (19:56 -0500)] 
Remove meta packages, normalize on web actions.

Adds (whisk) authenticated web actions.
Removes result projection for http actions.