From fc149523d6f8144826e47dd3326ceca4e82bd5e4 Mon Sep 17 00:00:00 2001 From: Jiyong Huang Date: Thu, 22 Aug 2024 17:49:07 +0800 Subject: [PATCH] chore(ci): update actions Signed-off-by: Jiyong Huang --- .github/workflows/build_base_image.yaml | 2 +- .github/workflows/build_packages.yaml | 24 ++++++++++++--------- .github/workflows/run_fvt_tests.yaml | 28 ++++++++++++------------- .github/workflows/run_test_case.yaml | 20 +++++++++--------- extensions/sources/random/random.yaml | 2 +- 5 files changed, 40 insertions(+), 36 deletions(-) diff --git a/.github/workflows/build_base_image.yaml b/.github/workflows/build_base_image.yaml index 928ce3dba5..cf96b155bc 100644 --- a/.github/workflows/build_base_image.yaml +++ b/.github/workflows/build_base_image.yaml @@ -28,7 +28,7 @@ jobs: - 1.22.1 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: docker/setup-buildx-action@v2 - uses: docker/setup-qemu-action@v2 with: diff --git a/.github/workflows/build_packages.yaml b/.github/workflows/build_packages.yaml index 7ad49d8ddf..8e8c602e2f 100644 --- a/.github/workflows/build_packages.yaml +++ b/.github/workflows/build_packages.yaml @@ -39,7 +39,7 @@ jobs: - debian steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: docker/setup-qemu-action@v2 @@ -57,7 +57,7 @@ jobs: - name: create sha file run: | cd _packages && for var in $(ls); do sudo bash -c "echo $(sha256sum $var | awk '{print $1}') > $var.sha256"; done && cd - - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: packages path: _packages/ @@ -66,10 +66,10 @@ jobs: runs-on: macos-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v5 with: go-version: '1.22.1' - name: prepare @@ -80,9 +80,9 @@ jobs: run: | make pkg cd _packages && for var in $(ls); do openssl dgst -sha256 $var | awk '{print $2}' > $var.sha256; done && cd - - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: - name: packages + name: mac_packages path: _packages/ build-docker-images: @@ -102,7 +102,7 @@ jobs: - 1.22.1 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: docker/setup-buildx-action@v2 @@ -165,7 +165,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: docker/setup-buildx-action@v2 @@ -222,11 +222,15 @@ jobs: - build-on-mac steps: - - uses: actions/checkout@v3 - - uses: actions/download-artifact@v1 + - uses: actions/checkout@v4 + - uses: actions/download-artifact@v4 with: name: packages path: _packages + - uses: actions/download-artifact@v4 + with: + name: mac_packages + path: _packages - name: check packages run: | cd _packages && for var in $( ls |grep -v sha256); do diff --git a/.github/workflows/run_fvt_tests.yaml b/.github/workflows/run_fvt_tests.yaml index cbc9d307a5..025dbfff35 100644 --- a/.github/workflows/run_fvt_tests.yaml +++ b/.github/workflows/run_fvt_tests.yaml @@ -36,10 +36,10 @@ jobs: - 18083:18083 steps: - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v5 with: go-version: '1.22' - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: distribution: zulu java-version: '8' # The JDK version to make available on the path. @@ -73,7 +73,7 @@ jobs: fi; tar -zxvf /tmp/TDengine-client-$TD_VERSION.tar.gz cd TDengine-client-$TD_VERSION && ./install_client.sh - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: build kuiper run: | sudo apt-get update && sudo apt-get install pkg-config libczmq-dev -y @@ -86,12 +86,12 @@ jobs: - name: run fvt tests timeout-minutes: 12 run: ./test/run_jmeter.sh with_edgex=true - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: always() with: name: kuiper_logs_with_edgex path: ${{ env.KUIPER_LOG_PATH }} - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: always() with: name: jmeter_logs_with_edgex @@ -117,7 +117,7 @@ jobs: run: | go tool covdata textfmt -i=cover -o=jmeter.xml - name: upload coverage report for jmeter - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: jmeter_coverage path: jmeter.xml @@ -147,10 +147,10 @@ jobs: - 18083:18083 steps: - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v5 with: go-version: '1.22' - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: distribution: zulu java-version: '8' # The JDK version to make available on the path. @@ -167,7 +167,7 @@ jobs: echo "jmeter.save.saveservice.response_data.on_error=true" >> /tmp/apache-jmeter-$JMETER_VERSION/user.properties wget -O /tmp/apache-jmeter-$JMETER_VERSION/lib/ext/mqtt-xmeter-1.13-jar-with-dependencies.jar https://github.com/emqx/mqtt-jmeter/raw/master/Download/v1.13.0/mqtt-xmeter-1.13-jar-with-dependencies.jar ln -s /tmp/apache-jmeter-$JMETER_VERSION /opt/jmeter - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: build kuiper run: | make build_with_cover @@ -188,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@v3 + - uses: actions/upload-artifact@v4 if: always() with: name: kuiper_logs_redis_storage path: ${{ env.KUIPER_LOG_PATH }} - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: always() with: name: jmeter_logs_redis_storage @@ -219,7 +219,7 @@ jobs: run: | go tool covdata textfmt -i=cover -o=jmeter_redis.xml - name: upload coverage report for jmeter redis - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: jmeter_redis_coverage path: jmeter_redis.xml @@ -228,8 +228,8 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: zulu java-version: '8' # The JDK version to make available on the path. diff --git a/.github/workflows/run_test_case.yaml b/.github/workflows/run_test_case.yaml index e56af857e6..a21c6a86c2 100644 --- a/.github/workflows/run_test_case.yaml +++ b/.github/workflows/run_test_case.yaml @@ -21,8 +21,8 @@ jobs: run_unit_tests: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: '1.22' - uses: actions/setup-python@v4 @@ -60,13 +60,13 @@ jobs: make failpoint-enable go test -trimpath -tags="edgex msgpack script parquet test" --cover -covermode=atomic -coverpkg=./... -coverprofile=coverage.xml $(go list ./... | grep -v "github.com/lf-edge/ekuiper/v2/fvt") make failpoint-disable - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: failure() with: name: stream.log path: log/stream.log - name: upload coverage report for ut - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: coverage path: coverage.xml @@ -77,13 +77,13 @@ jobs: - name: Run fvt run: | go test -trimpath -tags="edgex msgpack script parquet" --cover -covermode=atomic -coverpkg=./... -coverprofile=fvt_coverage.xml ./fvt - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: failure() with: name: streamFvt.log path: log/stream.log - name: upload coverage report for fvt - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: fvt_coverage path: fvt_coverage.xml @@ -98,22 +98,22 @@ jobs: runs-on: ubuntu-latest steps: - name: Download ut coverage reports - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: coverage path: ./ - name: Download fvt coverage reports - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: fvt_coverage path: ./ - name: Download jmeter coverage reports - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: jmeter_coverage path: ./ - name: Download jmeter redis coverage reports - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: jmeter_redis_coverage path: ./ diff --git a/extensions/sources/random/random.yaml b/extensions/sources/random/random.yaml index 494e79e326..353a35c44d 100644 --- a/extensions/sources/random/random.yaml +++ b/extensions/sources/random/random.yaml @@ -6,7 +6,7 @@ default: deduplicate: 0 ext: - interval: 150 + interval: 500 dedup: interval: 100