Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): update actions #3133

Merged
merged 2 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/build_base_image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ jobs:
- 1.22.1

steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- uses: docker/setup-qemu-action@v2
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:latest
platforms: all
Expand All @@ -44,7 +44,7 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- uses: docker/build-push-action@v4
- uses: docker/build-push-action@v6
if: matrix.os == 'debian'
with:
push: true
Expand All @@ -55,7 +55,7 @@ jobs:
build-args: GO_VERSION=${{ matrix.golang }}
tags: ghcr.io/${{ github.repository }}/base:${{ matrix.golang }}-${{ matrix.os }}
file: .github/dockerfile/Dockerfile.${{ matrix.os }}
- uses: docker/build-push-action@v4
- uses: docker/build-push-action@v6
if: matrix.os == 'alpine'
with:
push: true
Expand Down
57 changes: 32 additions & 25 deletions .github/workflows/build_packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ jobs:
- debian

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: build
if: matrix.os == 'debian'
run: |
Expand All @@ -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/
Expand All @@ -66,23 +66,23 @@ 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
run: |
brew install curl zip unzip gnu-sed pkg-config zmq
brew install zip unzip gnu-sed zmq
echo "/usr/local/bin:$PATH" >> ~/.bashrc
- name: build
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:
Expand All @@ -102,17 +102,17 @@ jobs:
- 1.22.1

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: docker/setup-buildx-action@v2
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v3
- uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:latest
platforms: all
- name: Build single platform image
if: endsWith( matrix.suffix, 'python') == false
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64
Expand All @@ -131,7 +131,7 @@ jobs:
docker logs ekuiper
exit 1
fi
- uses: docker/metadata-action@v4
- uses: docker/metadata-action@v5
id: meta
with:
images: docker.io/lfedge/ekuiper
Expand All @@ -151,7 +151,7 @@ jobs:
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Build multi platform image
if: contains(fromJSON('["release", "workflow_dispatch"]'), github.event_name)
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7
Expand All @@ -165,16 +165,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: docker/setup-buildx-action@v2
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v3
- uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:latest
platforms: all
- name: Build single platform image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64
Expand All @@ -187,7 +187,7 @@ jobs:
docker run -d --name kuiper-kubernetes-tool docker.io/lfedge/ekuiper-kubernetes-tool
sleep 5
if [[ "$(docker logs kuiper-kubernetes-tool)" != *"Kuiper kubernetes tool is started successfully!"* ]]; then exit 1; fi
- uses: docker/metadata-action@v4
- uses: docker/metadata-action@v5
id: meta
with:
images: docker.io/lfedge/ekuiper-kubernetes-tool
Expand All @@ -205,7 +205,7 @@ jobs:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Build multi platform image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/386
Expand All @@ -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
Expand Down Expand Up @@ -260,9 +264,12 @@ jobs:
-X POST \
-d "{\"repo\":\"lf-edge/ekuiper\", \"tag\": \"${{ github.ref_name }}\" }" \
${{ secrets.EMQX_IO_RELEASE_API }}
- uses: geekyeggo/delete-artifact@v2
- uses: geekyeggo/delete-artifact@v5
with:
name: packages
- uses: geekyeggo/delete-artifact@v2
- uses: geekyeggo/delete-artifact@v5
with:
name: mac_packages
- uses: geekyeggo/delete-artifact@v5
with:
name: plugins
2 changes: 1 addition & 1 deletion .github/workflows/deploy_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
path: frontend

- name: use python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.8

Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/run_fvt_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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.
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/run_test_case.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ 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
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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: ./
Expand Down
2 changes: 1 addition & 1 deletion extensions/sources/random/random.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ default:
deduplicate: 0

ext:
interval: 150
interval: 500

dedup:
interval: 100
Expand Down
Loading