Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

fix: isolate component release workflows (#2975)

Jiahui Zhoua39b60dcaef5
diff --git a/.github/workflows/api_test.yml b/.github/workflows/api_test.yml
index 588088987..b85e4648a 100644
--- a/.github/workflows/api_test.yml
+++ b/.github/workflows/api_test.yml
@@ -31,7 +31,11 @@ jobs:
name: API & CLI Integration Tests (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 60
- if: github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request' || github.repository == 'volcengine/OpenViking'
+ if: >-
+ github.event_name == 'workflow_dispatch' ||
+ github.event_name == 'pull_request' ||
+ (github.repository == 'volcengine/OpenViking' &&
+ (github.event_name != 'release' || startsWith(github.event.release.tag_name, 'v')))
strategy:
fail-fast: false
max-parallel: 1
diff --git a/.github/workflows/api_test_effect.yml b/.github/workflows/api_test_effect.yml
index 8097d3c73..8a16e1441 100644
--- a/.github/workflows/api_test_effect.yml
+++ b/.github/workflows/api_test_effect.yml
@@ -16,7 +16,10 @@ jobs:
name: API Effect Tests (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 120
- if: github.event_name == 'workflow_dispatch' || github.repository == 'volcengine/OpenViking'
+ if: >-
+ github.event_name == 'workflow_dispatch' ||
+ (github.repository == 'volcengine/OpenViking' &&
+ (github.event_name != 'release' || startsWith(github.event.release.tag_name, 'v')))
strategy:
fail-fast: false
max-parallel: 1
diff --git a/.github/workflows/oc2ov_test.yml b/.github/workflows/oc2ov_test.yml
index 11f566fe7..081c5e9f0 100644
--- a/.github/workflows/oc2ov_test.yml
+++ b/.github/workflows/oc2ov_test.yml
@@ -30,7 +30,11 @@ jobs:
name: P0 Memory Tests
runs-on: [self-hosted, linux, x64]
timeout-minutes: 100
- if: inputs.skip_tests != true && (github.event_name == 'workflow_dispatch' || github.repository == 'volcengine/OpenViking')
+ if: >-
+ inputs.skip_tests != true &&
+ (github.event_name == 'workflow_dispatch' ||
+ (github.repository == 'volcengine/OpenViking' &&
+ (github.event_name != 'release' || startsWith(github.event.release.tag_name, 'v'))))
steps:
- name: Clean up previous artifacts
@@ -199,4 +203,4 @@ jobs:
- name: Test summary
if: success()
run: |
- echo "::notice::P0 tests passed successfully! Ready for release."
\ No newline at end of file
+ echo "::notice::P0 tests passed successfully! Ready for release."
diff --git a/.github/workflows/python-sdk-release.yml b/.github/workflows/python-sdk-release.yml
index 5f123920b..a4f05d71c 100644
--- a/.github/workflows/python-sdk-release.yml
+++ b/.github/workflows/python-sdk-release.yml
@@ -1,9 +1,8 @@
name: Python SDK Release
on:
- push:
- tags:
- - "python-sdk@*"
+ release:
+ types: [published]
workflow_dispatch:
inputs:
target:
@@ -23,6 +22,7 @@ permissions:
jobs:
build-sdk:
name: Build openviking-sdk
+ if: github.event_name == 'workflow_dispatch' || startsWith(github.event.release.tag_name, 'python-sdk@')
runs-on: ubuntu-24.04
outputs:
sdk_version: ${{ steps.version.outputs.sdk_version }}
@@ -68,9 +68,9 @@ jobs:
echo "Resolved SDK version: $SDK_VERSION"
- name: Validate tag matches SDK version
- if: github.event_name == 'push'
+ if: github.event_name == 'release'
env:
- TAG_NAME: ${{ github.ref_name }}
+ TAG_NAME: ${{ github.event.release.tag_name }}
SDK_VERSION: ${{ steps.version.outputs.sdk_version }}
run: |
EXPECTED_TAG="python-sdk@${SDK_VERSION}"
diff --git a/.github/workflows/release-tos.yml b/.github/workflows/release-tos.yml
index 2f16056df..6fe5418be 100644
--- a/.github/workflows/release-tos.yml
+++ b/.github/workflows/release-tos.yml
@@ -21,8 +21,9 @@ permissions:
jobs:
upload:
name: Upload Release Artifacts to TOS
- # Skip CLI releases (cli@* / cli-* tags); main releases use v* tags
- if: github.event_name == 'workflow_dispatch' || !startsWith(github.event.release.tag_name, 'cli')
+ # Only GitHub Releases for main package tags should upload release artifacts.
+ # Component releases such as python-sdk@* and cli@* have dedicated workflows.
+ if: github.event_name == 'workflow_dispatch' || startsWith(github.event.release.tag_name, 'v')
runs-on: ubuntu-24.04
steps:
- name: Resolve release tag
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 4d8d81681..bfdfda560 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -43,8 +43,9 @@ permissions:
jobs:
build:
- # Skip this workflow for CLI releases (tags starting with cli-)
- if: "!startsWith(github.event.release.tag_name, 'cli-')"
+ # Only GitHub Releases for main package tags should run this workflow.
+ # Component releases such as python-sdk@* and cli@* have dedicated workflows.
+ if: github.event_name == 'workflow_dispatch' || startsWith(github.event.release.tag_name, 'v')
uses: ./.github/workflows/_build.yml
with:
os_json: ${{ inputs.os_json || '["ubuntu-24.04", "ubuntu-24.04-arm", "macos-14", "macos-15-intel", "windows-latest"]' }}
@@ -375,4 +376,3 @@ jobs:
"${dockerhub_image_refs[@]}"
fi
done <<< "$SOURCE_TAGS"
-