From c54a83db8cda1b68fa93f48bbc192244cd26cbf3 Mon Sep 17 00:00:00 2001 From: Michele Sciabarra Date: Sat, 18 Jul 2026 13:15:45 +0000 Subject: [PATCH 01/14] sync subrepo --- build | 2 +- cli | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build b/build index 7c97989..16bc007 160000 --- a/build +++ b/build @@ -1 +1 @@ -Subproject commit 7c97989598e56be41fd5bb39e26b67183a5d210e +Subproject commit 16bc00735d531852878af450f1dc0fa081d2924d diff --git a/cli b/cli index b0fc9da..7400c95 160000 --- a/cli +++ b/cli @@ -1 +1 @@ -Subproject commit b0fc9da52997e591ed743068e5a1ba822872095e +Subproject commit 7400c9507902c3f7025e8902401eab366d576e95 From fc6d74d99e5c8185b9188200eae86c1758003e3d Mon Sep 17 00:00:00 2001 From: Trustable User Date: Sat, 18 Jul 2026 19:57:43 +0200 Subject: [PATCH 02/14] fixed test and release tag --- .licenserc.yaml | 1 + README.md | 16 ++++++++++++---- Taskfile.yml | 14 +++++++++++++- testing | 2 +- 4 files changed, 27 insertions(+), 6 deletions(-) diff --git a/.licenserc.yaml b/.licenserc.yaml index 2c3f612..8d39647 100644 --- a/.licenserc.yaml +++ b/.licenserc.yaml @@ -21,6 +21,7 @@ header: copyright-owner: Apache Software Foundation paths-ignore: + - 'cli' - 'admin-api' - 'devcontainer' - 'olaris' diff --git a/README.md b/README.md index 2dbecc1..16e59f7 100644 --- a/README.md +++ b/README.md @@ -13,14 +13,23 @@ Welcome to [Apache OpenServerless](https://openserverless.apache.org), an incub > [!WARNING] > Building from the latest sources in git is **not recommended for production use**. The `main` branch may contain unstable, untested, or incomplete changes. For production deployments, use an official release tarball instead. There are no Apache Software Foundation approved releases yet. -Download a releases tarball or clone all the latest sources with: +Download a releases tarball from the Apache distribution and untar it: + +``` +tar xzvf openseerverless-.tar.gz +``` + +or clone all the latest sources with: ``` git clone https://github.com/apache/openserverless --recurse-submodules -cd openserverless ``` -You can then build and test +then change the directory with: + +`cd openserverless` + +You can then build and test as follows. # Linux @@ -42,7 +51,6 @@ You have to install [lima](https://limma-vm.io) (example: brew install lima). Ex `./build-and-test-mac.sh` - # Development setup ## Prerequisites diff --git a/Taskfile.yml b/Taskfile.yml index 563ec25..1351ae4 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -18,7 +18,6 @@ version: 3 vars: - OPERATOR_IMG: sh: awk -F= '/ARG OPERATOR_IMAGE_DEFAULT=/ { print $2 ; exit }' olaris-op/Dockerfile OPERATOR_TAG: @@ -43,6 +42,17 @@ vars: tasks: + release: + desc: release + dir: .. + requires: + vars: [ V ] + cmds: + - | + tar --exclude='.git' -czvf openserverless-v{{.V}}.tar.gz openserverless + git tag "v{{.V}}" + echo please push the tag + default: task -l clean: @@ -215,6 +225,8 @@ tasks: export OPS_BRANCH="{{.OPS_BRANCH}}" which ops ops -info + ops setup docker delete || true + touch .secrets ./all.sh kind license: diff --git a/testing b/testing index bd633c2..bf962b8 160000 --- a/testing +++ b/testing @@ -1 +1 @@ -Subproject commit bd633c2136afc4f1b1c3d8ee00ccc9babc42dda2 +Subproject commit bf962b8285b96ce0ed32ea8e7d1d9dced734d216 From 589c13b358555e8e8c4781c990ddb4d5037997f5 Mon Sep 17 00:00:00 2001 From: Trustable User Date: Sun, 19 Jul 2026 09:16:52 +0200 Subject: [PATCH 03/14] fixes for source build --- .licenserc.yaml | 1 + Taskfile.yml | 52 +++++++++++++++++++++++++++++++++---------------- cli | 2 +- 3 files changed, 37 insertions(+), 18 deletions(-) diff --git a/.licenserc.yaml b/.licenserc.yaml index 8d39647..bcac326 100644 --- a/.licenserc.yaml +++ b/.licenserc.yaml @@ -38,3 +38,4 @@ header: - 'DISCLAIMER' - 'NOTICE' - 'CHANGES' + - 'RELEASE' diff --git a/Taskfile.yml b/Taskfile.yml index 1351ae4..fcb221e 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -21,7 +21,12 @@ vars: OPERATOR_IMG: sh: awk -F= '/ARG OPERATOR_IMAGE_DEFAULT=/ { print $2 ; exit }' olaris-op/Dockerfile OPERATOR_TAG: - sh: git -C olaris-op rev-parse --short HEAD + sh: | + if test -e RELEASE + then cat RELEASE + else git -C olaris-op rev-parse --short HEAD + fi + OPERATOR_SRC: "{{.OPERATOR_IMG}}:{{.OPERATOR_TAG}}" STREAMER_TAG: "{{.OPERATOR_TAG}}" @@ -42,17 +47,6 @@ vars: tasks: - release: - desc: release - dir: .. - requires: - vars: [ V ] - cmds: - - | - tar --exclude='.git' -czvf openserverless-v{{.V}}.tar.gz openserverless - git tag "v{{.V}}" - echo please push the tag - default: task -l clean: @@ -178,11 +172,11 @@ tasks: - test -e opsroot.orig || jq . opsroot.orig - > jq opsroot.json ' - .config.images.operator = "{{.OPERATOR_SRC}}" | - .config.images.streamer = "{{.STREAMER_SRC}}" | - .config.images.systemapi = "{{.ADMIN_API_SRC}}" | + .config.images.operator = "{{.OPERATOR_SRC}}" | + .config.images.streamer = "{{.STREAMER_SRC}}" | + .config.images.systemapi = "{{.ADMIN_API_SRC}}" | .config.images.controller = "{{.CONTROLLER_SRC}}" | - .config.images.invoker = "{{.INVOKER_SRC}}" + .config.images.invoker = "{{.INVOKER_SRC}}" ' - diff opsroot.orig opsroot.json || true @@ -204,9 +198,24 @@ tasks: fi + gitinit: + desc: initialize git if missing + cmds: + - | + for i in build cli olaris-op runtimes streamer admin-api + do + cd "$i" + if ! test -e .git + then git init 2>/dev/null + git commit -m "init" --allow-empty + fi + cd .. + done + build: desc: build all cmds: + - task: gitinit - task: opslink - task: openwhisk - task: operator @@ -237,9 +246,18 @@ tasks: license-eye header {{.CMD}} for i in */.licenserc.yaml do - DIR=$(dirname $i) + DIR="$(dirname $i)" echo "*** Checking license headers in $DIR" cd $DIR license-eye header {{.CMD}} cd {{.TASKFILE_DIR}} done + + release: + desc: release + requires: + vars: [ V ] + cmds: + - echo "v{{.V}}" >RELEASE + - tar -C .. --exclude='.git' -czvf openserverless-v{{.V}}.tar.gz openserverless + - git tag "v{{.V}}" && git push --tags diff --git a/cli b/cli index 7400c95..bacedca 160000 --- a/cli +++ b/cli @@ -1 +1 @@ -Subproject commit 7400c9507902c3f7025e8902401eab366d576e95 +Subproject commit bacedcaf3523032f1a6b8d2160b4e774be7d311d From bc749435e8a9001c2b62ff182f29302657865e3b Mon Sep 17 00:00:00 2001 From: Trustable User Date: Sun, 19 Jul 2026 09:20:42 +0200 Subject: [PATCH 04/14] no relase in git --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 6f478d8..d5a38b0 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ **/.DS_Store network-cache/ ops +RELEASE From 0e067f061ddf723eded3345fbb3100d32a700b77 Mon Sep 17 00:00:00 2001 From: Trustable User Date: Sun, 19 Jul 2026 09:54:35 +0200 Subject: [PATCH 05/14] add default email and corret target --- Taskfile.yml | 2 +- build-and-test-ubuntu.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Taskfile.yml b/Taskfile.yml index fcb221e..5897274 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -259,5 +259,5 @@ tasks: vars: [ V ] cmds: - echo "v{{.V}}" >RELEASE - - tar -C .. --exclude='.git' -czvf openserverless-v{{.V}}.tar.gz openserverless + - tar -C .. --exclude='.git' -czvf ../openserverless-v{{.V}}.tar.gz openserverless - git tag "v{{.V}}" && git push --tags diff --git a/build-and-test-ubuntu.sh b/build-and-test-ubuntu.sh index 98e1220..bf3bd0d 100755 --- a/build-and-test-ubuntu.sh +++ b/build-and-test-ubuntu.sh @@ -99,6 +99,8 @@ echo "Building and testing" cd "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" git config --global --add safe.directory "$PWD" git config --global --add safe.directory "$PWD/olaris-op" +git config --global user.name "Build OpenServerless" +git config --global user.email "noreply@example.com" mkdir -p ~/.ssh task license task build From 739a3e768898b45f7c2f7703c1f56b0deaacd317 Mon Sep 17 00:00:00 2001 From: Trustable User Date: Sun, 19 Jul 2026 10:18:39 +0200 Subject: [PATCH 06/14] transform to create a versioned dir --- README.md | 14 ++++++-------- Taskfile.yml | 10 ++++++++-- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 16e59f7..48742ca 100644 --- a/README.md +++ b/README.md @@ -11,24 +11,22 @@ Welcome to [Apache OpenServerless](https://openserverless.apache.org), an incub # Build and test from sources > [!WARNING] -> Building from the latest sources in git is **not recommended for production use**. The `main` branch may contain unstable, untested, or incomplete changes. For production deployments, use an official release tarball instead. There are no Apache Software Foundation approved releases yet. +> Building from the latest sources in git is **not recommended for production use**. The `main` branch may contain unstable, untested, or incomplete changes. For production deployments, use an official release tarball instead. -Download a releases tarball from the Apache distribution and untar it: +Download a releases tarball from the Apache distribution, untar and cd to it: ``` tar xzvf openseerverless-.tar.gz +cd openserverless- ``` -or clone all the latest sources with: +or clone the latest sources from the `main` branch or a release branch: ``` -git clone https://github.com/apache/openserverless --recurse-submodules +git clone --branch https://github.com/apache/openserverless --recurse-submodules +cd openserverless ``` -then change the directory with: - -`cd openserverless` - You can then build and test as follows. # Linux diff --git a/Taskfile.yml b/Taskfile.yml index 5897274..70d8351 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -258,6 +258,12 @@ tasks: requires: vars: [ V ] cmds: + - git tag "v{{.V}}" - echo "v{{.V}}" >RELEASE - - tar -C .. --exclude='.git' -czvf ../openserverless-v{{.V}}.tar.gz openserverless - - git tag "v{{.V}}" && git push --tags + - > + {{if eq OS "darwin"}}gtar{{else}}tar{{end}} + -C .. --exclude='.git' + --transform 's,^openserverless,openserverless-v{{.V}},' + -czvf ../openserverless-v{{.V}}.tar.gz + openserverless + - git push --tags From 143cd21ed729be3f1fc35bc716d8182c91e1eaf0 Mon Sep 17 00:00:00 2001 From: Trustable User Date: Sun, 19 Jul 2026 11:19:17 +0200 Subject: [PATCH 07/14] ignoring vscode --- .licenserc.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.licenserc.yaml b/.licenserc.yaml index bcac326..39dfc16 100644 --- a/.licenserc.yaml +++ b/.licenserc.yaml @@ -34,6 +34,7 @@ header: - '**/*.svg' - '**/*.png' - '**/*.md' + - '.vscode/** - 'LICENSE' - 'DISCLAIMER' - 'NOTICE' From 6153d9918051be850270f60fcde41d62e49a5b49 Mon Sep 17 00:00:00 2001 From: Trustable User Date: Sun, 19 Jul 2026 11:32:19 +0200 Subject: [PATCH 08/14] licenserc --- .licenserc.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.licenserc.yaml b/.licenserc.yaml index 39dfc16..a8579c9 100644 --- a/.licenserc.yaml +++ b/.licenserc.yaml @@ -34,7 +34,7 @@ header: - '**/*.svg' - '**/*.png' - '**/*.md' - - '.vscode/** + - '.vscode/**' - 'LICENSE' - 'DISCLAIMER' - 'NOTICE' From 72a080395b807e3699402af6b1ca18b21239706a Mon Sep 17 00:00:00 2001 From: Trustable User Date: Sun, 19 Jul 2026 12:13:55 +0200 Subject: [PATCH 09/14] generate release from paht --- Taskfile.yml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index 70d8351..e29cbdc 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -18,15 +18,22 @@ version: 3 vars: - OPERATOR_IMG: - sh: awk -F= '/ARG OPERATOR_IMAGE_DEFAULT=/ { print $2 ; exit }' olaris-op/Dockerfile - OPERATOR_TAG: + RELEASE_FROM_DIR: '{{ if regexMatch "v[0-9][^/]+$" (base .TASKFILE_DIR) }}{{ regexFind "v[0-9][^/]+$" (base .TASKFILE_DIR) }}{{ else }}snapshot{{ end }}' + RELEASE: sh: | - if test -e RELEASE - then cat RELEASE - else git -C olaris-op rev-parse --short HEAD + if test -e .git + then git -C olaris-op rev-parse --short HEAD + else + if test -e RELEASE + then cat RELEASE + else echo {{.RELEASE_FROM_DIR}} | tee RELEASE + fi fi + OPERATOR_TAG: "{{.RELEASE}}" + + OPERATOR_IMG: + sh: awk -F= '/ARG OPERATOR_IMAGE_DEFAULT=/ { print $2 ; exit }' olaris-op/Dockerfile OPERATOR_SRC: "{{.OPERATOR_IMG}}:{{.OPERATOR_TAG}}" STREAMER_TAG: "{{.OPERATOR_TAG}}" @@ -47,7 +54,9 @@ vars: tasks: - default: task -l + default: + - task -l + - echo release '{{.RELEASE}}' clean: desc: clean the intermediate artifacts From d5b5ede6cb4dc825ab61a68022c457d3500c66ff Mon Sep 17 00:00:00 2001 From: Trustable User Date: Sun, 19 Jul 2026 15:06:14 +0200 Subject: [PATCH 10/14] sync fixes tests --- olaris-op | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/olaris-op b/olaris-op index 7337d43..a21591d 160000 --- a/olaris-op +++ b/olaris-op @@ -1 +1 @@ -Subproject commit 7337d43fa7d4f16aff81c712c701805f758aa8e0 +Subproject commit a21591da79daa1da6950b05bf241e96d34ecf41a From 5c4951d8c69284688425048baf29c7892cf852b5 Mon Sep 17 00:00:00 2001 From: Trustable User Date: Tue, 28 Jul 2026 17:38:31 +0200 Subject: [PATCH 11/14] v0.9.0-RC2 --- olaris | 2 +- olaris-op | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/olaris b/olaris index 3a149de..1832549 160000 --- a/olaris +++ b/olaris @@ -1 +1 @@ -Subproject commit 3a149de862fc46f515e05957a1add868c2a777a2 +Subproject commit 183254916fa8d00f4dff699dc2e0b0f5715a8b10 diff --git a/olaris-op b/olaris-op index a21591d..424ca16 160000 --- a/olaris-op +++ b/olaris-op @@ -1 +1 @@ -Subproject commit a21591da79daa1da6950b05bf241e96d34ecf41a +Subproject commit 424ca16060edba3bb332f515a2c4735e938e2b89 From a88e82fd57f1d081c5c54457ff2e4819dddf49f1 Mon Sep 17 00:00:00 2001 From: Trustable User Date: Tue, 28 Jul 2026 17:41:47 +0200 Subject: [PATCH 12/14] added incubating --- Taskfile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Taskfile.yml b/Taskfile.yml index e29cbdc..c97f883 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -273,6 +273,6 @@ tasks: {{if eq OS "darwin"}}gtar{{else}}tar{{end}} -C .. --exclude='.git' --transform 's,^openserverless,openserverless-v{{.V}},' - -czvf ../openserverless-v{{.V}}.tar.gz + -czvf ../openserverless-v{{.V}}-incubating-src.tar.gz openserverless - git push --tags From 217bbed95ecfb566f2ab3416885f58f66521c105 Mon Sep 17 00:00:00 2001 From: Bruno Salzano Date: Tue, 18 Aug 2026 12:06:46 +0200 Subject: [PATCH 13/14] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 48742ca..7761dca 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Welcome to [Apache OpenServerless](https://openserverless.apache.org), an incub Download a releases tarball from the Apache distribution, untar and cd to it: ``` -tar xzvf openseerverless-.tar.gz +tar xzvf openserverless-.tar.gz cd openserverless- ``` From 97e54289a94c1cb95e53f68d505ab60ff26fa497 Mon Sep 17 00:00:00 2001 From: Trustable User Date: Tue, 18 Aug 2026 12:17:53 +0200 Subject: [PATCH 14/14] change global user.name and email only if unset --- build-and-test-ubuntu.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build-and-test-ubuntu.sh b/build-and-test-ubuntu.sh index bf3bd0d..08056fb 100755 --- a/build-and-test-ubuntu.sh +++ b/build-and-test-ubuntu.sh @@ -88,7 +88,7 @@ curl -fsSL "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/${GOARCH}/kub sudo install -m 0755 /tmp/kubectl /usr/local/bin/kubectl rm -f /tmp/kubectl -echo "Installing license-eye" +echo "Installing license-eye" go install github.com/apache/skywalking-eyes/cmd/license-eye@latest export PATH="$(go env GOPATH)/bin:/usr/local/bin:$PATH" @@ -99,8 +99,10 @@ echo "Building and testing" cd "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" git config --global --add safe.directory "$PWD" git config --global --add safe.directory "$PWD/olaris-op" -git config --global user.name "Build OpenServerless" -git config --global user.email "noreply@example.com" + +git config --global --get user.name >/dev/null || git config --global user.name "Build OpenServerless" +git config --global --get user.email >/dev/null || git config --global user.email "noreply@example.com" + mkdir -p ~/.ssh task license task build