|
@@ -42,13 +42,13 @@ jobs:
|
|
|
- uses: actions/setup-go@v3
|
|
|
with:
|
|
|
go-version: '1.18'
|
|
|
- - uses: actions/setup-java@v2
|
|
|
+ - uses: actions/setup-java@v3
|
|
|
with:
|
|
|
distribution: zulu
|
|
|
java-version: '8' # The JDK version to make available on the path.
|
|
|
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
|
|
|
architecture: x64 # (x64 or x86) - defaults to x64
|
|
|
- - uses: actions/setup-python@v3 # For the test of python portable plugin
|
|
|
+ - uses: actions/setup-python@v4 # For the test of python portable plugin
|
|
|
with:
|
|
|
python-version: '3.x'
|
|
|
architecture: 'x64'
|
|
@@ -87,20 +87,20 @@ jobs:
|
|
|
make build_with_edgex
|
|
|
go build -trimpath -modfile extensions.mod --buildmode=plugin -o plugins/sources/Zmq.so extensions/sources/zmq/zmq.go
|
|
|
go build -trimpath -modfile extensions.mod --buildmode=plugin -o plugins/functions/Image.so extensions/functions/image/*.go
|
|
|
+ echo "KUIPER_LOG_PATH=_build/kuiper-$(git describe --tags --always)-$(uname -s | tr "[A-Z]" "[a-z]")-amd64/log" >> $GITHUB_ENV
|
|
|
- name: run edgex && kuiper
|
|
|
run: |
|
|
|
./test/setup_env.sh
|
|
|
./test/prepare_plugins.sh
|
|
|
- ln -s _build/kuiper-$(git describe --tags --always)-$(uname -s | tr "[A-Z]" "[a-z]")-amd64/log kuiper_logs
|
|
|
- name: run fvt tests
|
|
|
timeout-minutes: 12
|
|
|
run: ./test/run_jmeter.sh with_edgex=true
|
|
|
- - uses: actions/upload-artifact@v1
|
|
|
+ - uses: actions/upload-artifact@v3
|
|
|
if: always()
|
|
|
with:
|
|
|
name: kuiper_logs_with_edgex
|
|
|
- path: ./kuiper_logs
|
|
|
- - uses: actions/upload-artifact@v1
|
|
|
+ path: ${{ env.KUIPER_LOG_PATH }}
|
|
|
+ - uses: actions/upload-artifact@v3
|
|
|
if: always()
|
|
|
with:
|
|
|
name: jmeter_logs_with_edgex
|
|
@@ -147,7 +147,7 @@ jobs:
|
|
|
- uses: actions/setup-go@v3
|
|
|
with:
|
|
|
go-version: '1.18'
|
|
|
- - uses: actions/setup-java@v2
|
|
|
+ - uses: actions/setup-java@v3
|
|
|
with:
|
|
|
distribution: zulu
|
|
|
java-version: '8' # The JDK version to make available on the path.
|
|
@@ -171,13 +171,12 @@ jobs:
|
|
|
make build_with_edgex
|
|
|
go build -trimpath -modfile extensions.mod --buildmode=plugin -o plugins/sources/Zmq.so extensions/sources/zmq/zmq.go
|
|
|
go build -trimpath -modfile extensions.mod --buildmode=plugin -o plugins/functions/Image.so extensions/functions/image/*.go
|
|
|
+ echo "KUIPER_LOG_PATH=_build/kuiper-$(git describe --tags --always)-$(uname -s | tr "[A-Z]" "[a-z]")-amd64/log" >> $GITHUB_ENV
|
|
|
- name: run edgex && kuiper
|
|
|
env:
|
|
|
KUIPER__STORE__TYPE: redis
|
|
|
KUIPER__STORE__REDIS__PASSWORD: ""
|
|
|
- run: |
|
|
|
- ./test/setup_env.sh
|
|
|
- ln -s _build/kuiper-$(git describe --tags --always)-$(uname -s | tr "[A-Z]" "[a-z]")-amd64/log kuiper_logs
|
|
|
+ run: ./test/setup_env.sh
|
|
|
- name: run fvt tests
|
|
|
timeout-minutes: 8
|
|
|
run: |
|
|
@@ -189,12 +188,12 @@ jobs:
|
|
|
fvt_dir=`pwd`
|
|
|
/opt/jmeter/bin/jmeter.sh -Jjmeter.save.saveservice.output_format=xml -n -t test/redis_kv_storage.jmx -Dfvt="$fvt_dir" -l jmeter_logs/redis_kv_storage.jtl -j jmeter_logs/redis_kv_storage.log
|
|
|
|
|
|
- - uses: actions/upload-artifact@v1
|
|
|
+ - uses: actions/upload-artifact@v3
|
|
|
if: always()
|
|
|
with:
|
|
|
name: kuiper_logs_redis_storage
|
|
|
- path: ./kuiper_logs
|
|
|
- - uses: actions/upload-artifact@v1
|
|
|
+ path: ${{ env.KUIPER_LOG_PATH }}
|
|
|
+ - uses: actions/upload-artifact@v3
|
|
|
if: always()
|
|
|
with:
|
|
|
name: jmeter_logs_redis_storage
|
|
@@ -218,7 +217,7 @@ jobs:
|
|
|
|
|
|
steps:
|
|
|
- uses: actions/checkout@v3
|
|
|
- - uses: actions/setup-java@v2
|
|
|
+ - uses: actions/setup-java@v3
|
|
|
with:
|
|
|
distribution: zulu
|
|
|
java-version: '8' # The JDK version to make available on the path.
|