Skip to content

Commit

Permalink
chore(ci): update actions
Browse files Browse the repository at this point in the history
Signed-off-by: Jiyong Huang <huangjy@emqx.io>
  • Loading branch information
ngjaying committed Aug 23, 2024
1 parent 1560ac3 commit fc14952
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_base_image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
24 changes: 14 additions & 10 deletions .github/workflows/build_packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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,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
Expand All @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
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
20 changes: 10 additions & 10 deletions .github/workflows/run_test_case.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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

0 comments on commit fc14952

Please sign in to comment.