This is an automated email from the ASF dual-hosted git repository.
msciabarra pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openserverless-task.git
The following commit(s) were added to refs/heads/main by this push:
new d1f875c fixed wrong debug
d1f875c is described below
commit d1f875c7f93d1817456475bdc2e9668187fcd60a
Author: Michele Sciabarra <[email protected]>
AuthorDate: Sun Jul 20 05:54:54 2025 +0200
fixed wrong debug
---
ide/deploy/index.js | 2 --
ide/nodejs/opsfile.yml | 16 +++++++++-------
ide/opsfile.yml | 3 +--
ide/python/opsfile.yml | 16 +++++++++-------
ide/util/opsfile.yml | 5 +++--
5 files changed, 22 insertions(+), 20 deletions(-)
diff --git a/ide/deploy/index.js b/ide/deploy/index.js
index d3eebff..0d8fa16 100644
--- a/ide/deploy/index.js
+++ b/ide/deploy/index.js
@@ -24,8 +24,6 @@ import {watchAndDeploy, globalWatcher} from './watch.js';
import {setDryRun, deploy} from './deploy.js';
import {build} from './client.js';
-
-
async function signalHandler() {
console.log('Termination requested.');
diff --git a/ide/nodejs/opsfile.yml b/ide/nodejs/opsfile.yml
index 87e0ef0..f20f39d 100644
--- a/ide/nodejs/opsfile.yml
+++ b/ide/nodejs/opsfile.yml
@@ -46,15 +46,17 @@ tasks:
silent: true
desc: build action
requires: {vars: [DIR]}
- dir: "{{.DIR}}"
cmds:
- test -d "{{.DIR}}" || die "dir '{{.DIR}}' not found or not a directory"
- - zip -q -x "node_modules" -x Dockerfile -r "{{.DIR}}.zip" .
- |
- if test -d "$OPS_PWD/lib/nodejs"
- then
- cd "$OPS_PWD/lib/nodejs"
- zip -q -u -r "{{.DIR}}.zip" . || true
- fi
+ cd "{{.DIR}}"
+ zip -q -u -x "node_modules/*" -x Dockerfile -r "{{.DIR}}.zip" . ||
true
+ # - |
+ # if test -d "$OPS_PWD/lib/nodejs"
+ # then
+ # cd "$OPS_PWD/lib/nodejs"
+ # zip -q -u -r "{{.DIR}}.zip" . || true
+ # cd
+ # fi
diff --git a/ide/opsfile.yml b/ide/opsfile.yml
index 58e1e2e..92b50ff 100644
--- a/ide/opsfile.yml
+++ b/ide/opsfile.yml
@@ -61,8 +61,7 @@ tasks:
echo $PIDFILE
if test -e $PIDFILE
then
- PID=$(cat $PIDFILE)
-
+ PID=$(cat $PIDFILE)
if [ ! -z "$PID" ]; then
if ps -p "$PID" > /dev/null;
then
diff --git a/ide/python/opsfile.yml b/ide/python/opsfile.yml
index 3b1654e..2341e74 100644
--- a/ide/python/opsfile.yml
+++ b/ide/python/opsfile.yml
@@ -46,16 +46,18 @@ tasks:
silent: true
desc: build action
requires: {vars: [DIR]}
- dir: "{{.DIR}}"
cmds:
- test -d "{{.DIR}}" || die "dir '{{.DIR}}' not found or not a directory"
- - zip -q -x "virtualenv" -x "requirements.txt" -x Dockerfile -r
"{{.DIR}}.zip" .
- |
- if test -d "$OPS_PWD/lib/python"
- then
- cd "$OPS_PWD/lib/python"
- zip -q -u -r "{{.DIR}}.zip" . || true
- fi
+ cd "{{.DIR}}"
+ zip -q -u -x "__pycache__/*" -x "virtualenv/*" -x "requirements.txt"
-x Dockerfile -r "{{.DIR}}.zip" . || true
+ # - |
+ # if test -d "$OPS_PWD/lib/python"
+ # then
+ # cd "$OPS_PWD/lib/python"
+ # zip -q -u -r "{{.DIR}}.zip" . || true
+ # cd "{{.DIR}}"
+ # fi
cli:
silent: true
diff --git a/ide/util/opsfile.yml b/ide/util/opsfile.yml
index 4cc3fff..0176ef6 100644
--- a/ide/util/opsfile.yml
+++ b/ide/util/opsfile.yml
@@ -40,10 +40,11 @@ tasks:
cmds:
- |
cd $OPS_PWD
+ DIR="$(ops -opspath "packages/{{.A}}")"
if test -e "packages/{{.A}}/__main__.py"
- then echo $OPS ide python action DIR="$(opspath "packages/{{.A}}")"
+ then $OPS ide python action DIR="$DIR"
elif test -e "packages/{{.A}}/index.js"
- then echo $OPS ide nodejs action DIR="$(opspath "packages/{{.A}}")"
+ then $OPS ide nodejs action DIR="$DIR"
else die "*** unknown action type"
fi