Skip to content

Commit

Permalink
fix(workflow): ci/cd failure for main branch (#3996)
Browse files Browse the repository at this point in the history
* fix(workflow): upgrade upload-artifact to v4

* fix(workflow): make action works by actions/runner#2906 (comment)
  • Loading branch information
Shouren authored Oct 30, 2024
1 parent 1bb7d29 commit 613250a
Show file tree
Hide file tree
Showing 10 changed files with 74 additions and 19 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
container:
image: ghcr.io/4paradigm/hybridsql:latest
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
OS: linux
SQL_PYSDK_ENABLE: OFF
TESTING_ENABLE: ON
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/devops-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
container:
image: ghcr.io/4paradigm/hybridsql:latest
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
OS: linux
steps:
- uses: actions/checkout@v2
Expand All @@ -51,6 +53,8 @@ jobs:
container:
image: ghcr.io/4paradigm/hybridsql:latest
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
OS: linux
steps:
- uses: actions/checkout@v2
Expand All @@ -77,6 +81,8 @@ jobs:
container:
image: ghcr.io/4paradigm/hybridsql:latest
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
OS: linux
steps:
- uses: actions/checkout@v2
Expand All @@ -103,6 +109,8 @@ jobs:
container:
image: ghcr.io/4paradigm/hybridsql:latest
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
OS: linux
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -135,6 +143,8 @@ jobs:
container:
image: ghcr.io/4paradigm/hybridsql:latest
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
OS: linux
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -167,6 +177,8 @@ jobs:
container:
image: ghcr.io/4paradigm/hybridsql:latest
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
OS: linux
steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/hybridse-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
container:
image: ghcr.io/4paradigm/hybridsql:latest
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
TESTING_ENABLE_STRIP: ON
# ref https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
Expand All @@ -44,7 +46,7 @@ jobs:
- name: Upload Cpp UT Results
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: linux-ut-result-cpp-${{ github.sha }}
path: |
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/integration-test-pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ jobs:
container:
image: ghcr.io/4paradigm/hybridsql:latest
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
OS: linux
steps:
- uses: actions/checkout@v2
Expand All @@ -107,6 +109,8 @@ jobs:
container:
image: ghcr.io/4paradigm/hybridsql:latest
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
OS: linux
steps:
- uses: actions/checkout@v2
Expand All @@ -129,6 +133,8 @@ jobs:
container:
image: ghcr.io/4paradigm/hybridsql:latest
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
OS: linux
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -192,6 +198,8 @@ jobs:
container:
image: ghcr.io/4paradigm/hybridsql:latest
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
OS: linux
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -229,6 +237,8 @@ jobs:
container:
image: ghcr.io/4paradigm/hybridsql:latest
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
OS: linux
steps:
- uses: actions/checkout@v2
Expand All @@ -250,6 +260,8 @@ jobs:
container:
image: ghcr.io/4paradigm/hybridsql:latest
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
OS: linux
steps:
- uses: actions/checkout@v2
Expand All @@ -271,6 +283,8 @@ jobs:
container:
image: ghcr.io/4paradigm/hybridsql:latest
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
OS: linux
steps:
- uses: actions/checkout@v2
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/integration-test-src.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ jobs:
container:
image: ghcr.io/4paradigm/hybridsql:latest
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
OS: linux
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -114,6 +116,8 @@ jobs:
container:
image: ghcr.io/4paradigm/hybridsql:latest
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
OS: linux
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -157,6 +161,8 @@ jobs:
container:
image: ghcr.io/4paradigm/hybridsql:latest
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
OS: linux
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -199,6 +205,8 @@ jobs:
container:
image: ghcr.io/4paradigm/hybridsql:latest
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
OS: linux
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -284,6 +292,8 @@ jobs:
container:
image: ghcr.io/4paradigm/hybridsql:latest
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
OS: linux
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -429,7 +439,7 @@ jobs:
# run: source /root/.bashrc && bash test/steps/openmldb-sdk-test-python.sh -b SRC -d standalone -l "0"
# - name: upload test results
# if: always()
# uses: actions/upload-artifact@v2
# uses: actions/upload-artifact@v3
# with:
# name: python-sdk-standalone-0-src-${{ github.sha }}
# path: |
Expand Down Expand Up @@ -470,7 +480,7 @@ jobs:
# run: source /root/.bashrc && bash test/steps/openmldb-sdk-test-python.sh -b SRC -d standalone -l "1,2,3,4,5"
# - name: upload test results
# if: always()
# uses: actions/upload-artifact@v2
# uses: actions/upload-artifact@v3
# with:
# name: python-sdk-standalone-1-src-${{ github.sha }}
# path: |
Expand Down Expand Up @@ -530,6 +540,8 @@ jobs:
container:
image: ghcr.io/4paradigm/hybridsql:latest
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
OS: linux
steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ env:
jobs:
openmldb-test-python:
runs-on: [self-hosted,generic]
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
container:
image: ghcr.io/4paradigm/hybridsql:latest
steps:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/openmldb-tool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
bash openmldb/sbin/stop-all.sh && bash openmldb/sbin/clear-all.sh
- name: upload python test results
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: openmldb-tool-test-result-${{ github.sha }}
path: |
Expand All @@ -59,6 +59,9 @@ jobs:
openmldb-tool-name:
runs-on: [self-hosted,generic]
if: github.repository == '4paradigm/OpenMLDB'
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
container:
image: ghcr.io/4paradigm/hybridsql:latest
steps:
Expand All @@ -84,7 +87,7 @@ jobs:
bash openmldb/sbin/stop-all.sh && bash openmldb/sbin/clear-all.sh
- name: upload python test results
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: openmldb-tool-test-result-${{ github.sha }}
path: |
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/other-os-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,21 +138,21 @@ jobs:
df -h
- name: upload binary
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
path: build/bin/openmldb
name: binary

- name: upload java native
if: ${{ env.SQL_JAVASDK_ENABLE == 'ON' }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: native-jar
path: java/openmldb-native/target/openmldb-native-*.jar

- name: upload python whl
if: ${{ env.SQL_PYSDK_ENABLE == 'ON' }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: python-whl
path: |
Expand Down Expand Up @@ -206,21 +206,21 @@ jobs:
tar czf ${{ env.OPENMLDB_PREFIX }}.tar.gz ${{ env.OPENMLDB_PREFIX }}/
- name: upload binary
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
path: openmldb-*.tar.gz
name: binary-package

- name: upload java native
if: ${{ env.SQL_JAVASDK_ENABLE == 'ON' }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: native-jar
path: java/openmldb-native/target/openmldb-native-*.jar

- name: upload python whl
if: ${{ env.SQL_PYSDK_ENABLE == 'ON' }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: python-whl
path: |
Expand Down Expand Up @@ -276,21 +276,21 @@ jobs:
tar czf ${{ env.OPENMLDB_PREFIX }}.tar.gz ${{ env.OPENMLDB_PREFIX }}/
- name: upload binary
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
path: openmldb-*.tar.gz
name: binary-package

- name: upload java native
if: ${{ env.SQL_JAVASDK_ENABLE == 'ON' }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: native-jar
path: java/openmldb-native/target/openmldb-native-*.jar

- name: upload python whl
if: ${{ env.SQL_PYSDK_ENABLE == 'ON' }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: python-whl
path: |
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
container:
image: ghcr.io/4paradigm/hybridsql:latest
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
SQL_JAVASDK_ENABLE: ON
OPENMLDB_BUILD_TARGET: "cp_native_so openmldb"
MAVEN_OPTS: -Duser.home=/github/home
Expand Down Expand Up @@ -84,7 +86,7 @@ jobs:
- name: upload linux library
if: github.event_name == 'push'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: shared-library-${{ github.sha }}
path: |
Expand All @@ -104,14 +106,14 @@ jobs:
- name: Upload Event File
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: event-file
path: ${{ github.event_path }}

- name: upload java ut results
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: linux-ut-result-java-${{ github.sha }}
path: |
Expand Down Expand Up @@ -259,6 +261,9 @@ jobs:
container:
image: ghcr.io/4paradigm/hybridsql:latest
env:
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
SQL_PYSDK_ENABLE: ON
OPENMLDB_BUILD_TARGET: "cp_python_sdk_so openmldb"
# ref https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Expand Down Expand Up @@ -287,7 +292,7 @@ jobs:
- name: upload python ut results
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: linux-ut-result-python-${{ github.sha }}
path: |
Expand Down Expand Up @@ -352,7 +357,7 @@ jobs:
- name: upload python ut results
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: mac-ut-result-python-${{ github.sha }}
path: |
Expand Down
Loading

0 comments on commit 613250a

Please sign in to comment.