Re: Preview of a OpenWhisk IDE & Debugger... and an help request

2020-02-01 Thread Michele Sciabarra
Great suggestion. I know how to pass configuration parameters, what is the 
configuration to set?

-- 
  Michele Sciabarra
  mich...@sciabarra.com

- Original message -
From: Rodric Rabbah 
To: dev@openwhisk.apache.org
Subject: Re: Preview of a OpenWhisk IDE & Debugger... and an help request
Date: Saturday, February 01, 2020 8:35 PM

> The first problem is that I need to invoke an action twice as the first
time the debugger does not attach. I guess it is because the image is
paused.

Did you try to change the pause grace configuration to an max int.

-r


Re: Preview of a OpenWhisk IDE & Debugger... and an help request

2020-02-01 Thread Rodric Rabbah
> The first problem is that I need to invoke an action twice as the first
time the debugger does not attach. I guess it is because the image is
paused.

Did you try to change the pause grace configuration to an max int.

-r


Re: Preview of a OpenWhisk IDE & Debugger... and an help request

2020-02-01 Thread Michele Sciabarra
Then help me guys! I am reading the source of the CommonBalancer to find how to 
ensure I can always hit the same action and the container is unpaused when I 
want to debug one. 

-- 
  Michele Sciabarra
  mich...@sciabarra.com

- Original message -
From: Carlos Santana 
To: dev@openwhisk.apache.org
Subject: Re: Preview of a OpenWhisk IDE & Debugger... and an help request
Date: Saturday, February 01, 2020 7:54 PM

Very cool feature and demo Michele +1

- Carlos Santana
@csantanapr

> On Jan 31, 2020, at 8:38 AM, Michele Sciabarra  wrote:
> 
> Hello Whiskers,
> 
> I am working  on an integrated IDE & Debugger for OpenWhisk using the 
> ActionLoop runtime, the standalone OpenWhisk and Eclipse Theia. This would be 
> complementary to the existing wskdebug for Javascript and Java, as this works 
> now for Typescript and I plan to add to other actionloop based runtimes.
> 
> You can see a demo here: https://www.youtube.com/watch?v=FhtGsm4Vnu4
> 
> I am using the standalone Openwhisk and Eclipse Theia, the in-browser 
> vscode-like editor that can be deployed as a docker container.
> 
> The mechanic is simple: when I deploy an action I pass an additional 
> environment variable __OW_DEBUG_PORT
> The runtime when it sees this environment variable starts under a debugger.
> I can then ask to the runtime the parameters to connect to the debugger and I 
> use this to connect to the debugger,  as you can see in the demo.
> 
> I adapted the upcoming typescript runtime to do this,  but I plan to do 
> similar changes also for other action loop based runtimes, like go and 
> python. Also I am using a Makefile to start the environment but I am working 
> on a standalone openwhisk-ide launcher. Unless we add the feature “ide" to 
> the wsk cli , if you like the idea...
> 
> I have a couple of problems to solve and I am asking for help. The first 
> problem is that I need to invoke an action twice as the first time the 
> debugger does not attach. I guess it is because the image is paused. So I 
> wonder if it is possible to enable an option that does not pause the 
> container while running using the standalone openwhisk. And the second  
> problem is that sometimes I get more than one instance of an action. This 
> happens when I redeploy. I wonder if it is possible to force the Lean 
> Balancer to use only one instance of an action.
> 
> All of this of course are options only for development purposes but I think 
> in this way OpenWhisk would be the ONLY serverless to include also an IDE 
> with debugger ready to go. No more “serverless actions are hard to debug”.
> 
> -- 
>  Michele Sciabarra
>  mich...@sciabarra.com


Re: Preview of a OpenWhisk IDE & Debugger... and an help request

2020-02-01 Thread Carlos Santana
Very cool feature and demo Michele +1

- Carlos Santana
@csantanapr

> On Jan 31, 2020, at 8:38 AM, Michele Sciabarra  wrote:
> 
> Hello Whiskers,
> 
> I am working  on an integrated IDE & Debugger for OpenWhisk using the 
> ActionLoop runtime, the standalone OpenWhisk and Eclipse Theia. This would be 
> complementary to the existing wskdebug for Javascript and Java, as this works 
> now for Typescript and I plan to add to other actionloop based runtimes.
> 
> You can see a demo here: https://www.youtube.com/watch?v=FhtGsm4Vnu4
> 
> I am using the standalone Openwhisk and Eclipse Theia, the in-browser 
> vscode-like editor that can be deployed as a docker container.
> 
> The mechanic is simple: when I deploy an action I pass an additional 
> environment variable __OW_DEBUG_PORT
> The runtime when it sees this environment variable starts under a debugger.
> I can then ask to the runtime the parameters to connect to the debugger and I 
> use this to connect to the debugger,  as you can see in the demo.
> 
> I adapted the upcoming typescript runtime to do this,  but I plan to do 
> similar changes also for other action loop based runtimes, like go and 
> python. Also I am using a Makefile to start the environment but I am working 
> on a standalone openwhisk-ide launcher. Unless we add the feature “ide" to 
> the wsk cli , if you like the idea...
> 
> I have a couple of problems to solve and I am asking for help. The first 
> problem is that I need to invoke an action twice as the first time the 
> debugger does not attach. I guess it is because the image is paused. So I 
> wonder if it is possible to enable an option that does not pause the 
> container while running using the standalone openwhisk. And the second  
> problem is that sometimes I get more than one instance of an action. This 
> happens when I redeploy. I wonder if it is possible to force the Lean 
> Balancer to use only one instance of an action.
> 
> All of this of course are options only for development purposes but I think 
> in this way OpenWhisk would be the ONLY serverless to include also an IDE 
> with debugger ready to go. No more “serverless actions are hard to debug”.
> 
> -- 
>  Michele Sciabarra
>  mich...@sciabarra.com


[VOTE] Release Apache OpenWhisk Client Js (v3.21.0, rc1)

2020-02-01 Thread Rodric Rabbah
Hi,

This is a call to vote on releasing version 3.21.0 release candidate rc1 of the 
following project module with artifacts built from the Git repositories and 
commit IDs listed below.

* OpenWhisk Client Js: 7c402436c24d564088917a8013e68dc9c9c8a9dc
  
https://github.com/apache/openwhisk-client-js/commits/7c402436c24d564088917a8013e68dc9c9c8a9dc
  
https://dist.apache.org/repos/dist/dev/openwhisk/rc1/openwhisk-client-js-3.21.0-sources.tar.gz
  
https://dist.apache.org/repos/dist/dev/openwhisk/rc1/openwhisk-client-js-3.21.0-sources.tar.gz.asc
  
https://dist.apache.org/repos/dist/dev/openwhisk/rc1/openwhisk-client-js-3.21.0-sources.tar.gz.sha512

This release is comprised of source code distribution only.

You can use this UNIX script to download the release and verify the checklist 
below:
https://gitbox.apache.org/repos/asf?p=openwhisk-release.git;a=blob_plain;f=tools/rcverify.sh;hb=b'515387d'

Usage:
curl -s 
"https://gitbox.apache.org/repos/asf?p=openwhisk-release.git;a=blob_plain;f=tools/rcverify.sh;hb=b'515387d'"
 -o rcverify.sh
chmod +x rcverify.sh
rcverify.sh openwhisk-client-js 'OpenWhisk Client Js' 3.21.0 rc1

Please vote to approve this release:

  [ ] +1 Approve the release
  [ ]  0 Don't care
  [ ] -1 Don't release, because ...

Release verification checklist for reference:
  [ ] Download links are valid.
  [ ] Checksums and PGP signatures are valid.
  [ ] Source code artifacts have correct names matching the current release.
  [ ] LICENSE and NOTICE files are correct for each OpenWhisk repository.
  [ ] All files have license headers as specified by OpenWhisk project policy 
[1].
  [ ] No compiled archives bundled in source archive.

This majority vote is open for at least 72 hours.


[1] 
https://github.com/apache/openwhisk-release/blob/master/docs/license_compliance.md

[slack-digest] [2020-01-31] #general

2020-02-01 Thread OpenWhisk Team Slack
2020-01-31 00:11:19 UTC - Lixiang Ao: does anyone know how to change 
group_vars/all config in docker-compose mode?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1580429479048400

2020-01-31 00:25:25 UTC - Lixiang Ao: I changed 
`openwhisk-devtools/docker-compose/openwhisk-src/ansible/group_vars/all` and 
used `OPENWHISK_PROJECT_HOME=./openwhisk-src make run` , but it didn't seem to 
work
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p158043032505

2020-01-31 00:34:23 UTC - Lixiang Ao: I wanted to change group_vars/all to 
increase # of concurrent functions by adding `numcore` and `coreshare` lines
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1580430863052400?thread_ts=1580430863.052400=C3TPCAQG1

2020-01-31 01:36:50 UTC - Rodric Rabbah: theres no mechanism for this other 
than invoke actions one at a time and you should consistently reuse the same 
container until it crashes or you stop
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1580434610053400?thread_ts=1580381603.047200=C3TPCAQG1

2020-01-31 06:24:12 UTC - drholmie: Hey all! Quick question, is there anyway to 
prewarm a custom container. I ended up messing around with the runtimes.json 
file to prewarm a custom one under blackboxes but doesn't seem to work out. Do 
tell if I'm missing anything.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1580451852055200?thread_ts=1580451852.055200=C3TPCAQG1

2020-01-31 06:33:34 UTC - Dominic Kim: Could you share your `runtimes.json` 
that you tried?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1580452414055300?thread_ts=1580451852.055200=C3TPCAQG1

2020-01-31 06:37:20 UTC - Dominic Kim: Could you describe more what you are 
tying to achieve?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1580452640055500?thread_ts=1580430863.052400=C3TPCAQG1

2020-01-31 06:38:15 UTC - Dominic Kim: Do you want to change the number of 
containers on one invoker? or the number of activations that one container can 
handle concurrently?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1580452695055700?thread_ts=1580430863.052400=C3TPCAQG1

2020-01-31 06:44:08 UTC - drholmie: Currently mobile sorry about that 
:sweat_smile:. 
The blackboxes part is the only thing I changed:
"blackboxes":[{
"prefix": "openwhisk",
"name": "dockerskeleton",
"tag": "nightly",
"stemCells":[{
  "count":1,
  "memory":"256MB"
  }]
}]
white_check_mark : Dominic Kim
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1580453048055900?thread_ts=1580451852.055200=C3TPCAQG1

2020-01-31 06:44:32 UTC - Dominic Kim: let me check on it.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1580453072056300?thread_ts=1580451852.055200=C3TPCAQG1

2020-01-31 06:45:12 UTC - drholmie: Thank you!
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1580453112056500?thread_ts=1580451852.055200=C3TPCAQG1

2020-01-31 07:29:00 UTC - Dominic Kim: What kinds of scenario do you want to 
achieve with this?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1580455740056700?thread_ts=1580451852.055200=C3TPCAQG1

2020-01-31 07:29:42 UTC - Dominic Kim: I could add prewarm containers with a 
custom image like this:
```...
"headless": [
{
"kind": "headless:0.1",
"default": true,
"image": {
"prefix": 
"",
"name": "puppeteer-headless-chrome",
"tag": "latest"
},
"deprecated": false,
"attached": {
"attachmentName": "codefile",
"attachmentType": "text/plain"
},
"stemCells": [
{
"count": 2,
"memory": "256 MB"
}
]
}
]
...```
+1 : Bilal
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1580455782056900?thread_ts=1580451852.055200=C3TPCAQG1

2020-01-31 07:30:38 UTC - Dominic Kim: I added a new kind `headless`  and add 
conf for `stemCell`.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1580455838057200?thread_ts=1580451852.055200=C3TPCAQG1

2020-01-31 07:31:07 UTC - Dominic Kim: Then I could find prewarm containers 
with my image:
```
17a063c335dc

   "dumb-init -- /bin/s…"   23 minutes ago  Up 23 minutes   8080/tcp

wsk00_4_prewarm_headless01
cd4fea6d7367

   "dumb-init -- /bin/s…"   23 minutes ago  Up 23 minutes   8080/tcp