mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-04 18:13:44 +00:00
ci: target release-X.Y.x branches instead of release-X.Y.x-maint (#3995)
We will be updating our release procedure to be more "normal" or "sane". We will - create release branches like normal people - land cherry-picks onto those branches - run releases off of those branches - no more "rc" branch pollution either Given that, this PR cleans things up a bit - Remove `-maint` suffix from release branch patterns in CI workflows - Update branch matching to `release-X.Y.x` format
This commit is contained in:
parent
90234d6973
commit
6f90a7af4b
8 changed files with 37 additions and 13 deletions
|
|
@ -47,7 +47,7 @@ runs:
|
||||||
# Check if PR is targeting a release branch
|
# Check if PR is targeting a release branch
|
||||||
TARGET_BRANCH="${{ github.base_ref }}"
|
TARGET_BRANCH="${{ github.base_ref }}"
|
||||||
|
|
||||||
if [[ "$TARGET_BRANCH" =~ ^release-[0-9]+\.[0-9]+\.x-maint$ ]]; then
|
if [[ "$TARGET_BRANCH" =~ ^release-([0-9]+\.){1,3}[0-9]+$ ]]; then
|
||||||
echo "PR targets release branch: $TARGET_BRANCH"
|
echo "PR targets release branch: $TARGET_BRANCH"
|
||||||
echo "Checking if matching branch exists in llama-stack-client-python..."
|
echo "Checking if matching branch exists in llama-stack-client-python..."
|
||||||
|
|
||||||
|
|
|
||||||
4
.github/workflows/backward-compat.yml
vendored
4
.github/workflows/backward-compat.yml
vendored
|
|
@ -6,7 +6,9 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- 'release-[0-9]+.[0-9]+.x-maint'
|
- 'release-[0-9]+.[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- 'release-[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- 'release-[0-9]+.[0-9]+'
|
||||||
paths:
|
paths:
|
||||||
- 'src/llama_stack/core/datatypes.py'
|
- 'src/llama_stack/core/datatypes.py'
|
||||||
- 'src/llama_stack/providers/datatypes.py'
|
- 'src/llama_stack/providers/datatypes.py'
|
||||||
|
|
|
||||||
8
.github/workflows/integration-auth-tests.yml
vendored
8
.github/workflows/integration-auth-tests.yml
vendored
|
|
@ -6,11 +6,15 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- 'release-[0-9]+.[0-9]+.x-maint'
|
- 'release-[0-9]+.[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- 'release-[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- 'release-[0-9]+.[0-9]+'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- 'release-[0-9]+.[0-9]+.x-maint'
|
- 'release-[0-9]+.[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- 'release-[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- 'release-[0-9]+.[0-9]+'
|
||||||
paths:
|
paths:
|
||||||
- 'distributions/**'
|
- 'distributions/**'
|
||||||
- 'src/llama_stack/**'
|
- 'src/llama_stack/**'
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,15 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- 'release-[0-9]+.[0-9]+.x-maint'
|
- 'release-[0-9]+.[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- 'release-[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- 'release-[0-9]+.[0-9]+'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- 'release-[0-9]+.[0-9]+.x-maint'
|
- 'release-[0-9]+.[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- 'release-[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- 'release-[0-9]+.[0-9]+'
|
||||||
paths:
|
paths:
|
||||||
- 'src/llama_stack/providers/utils/sqlstore/**'
|
- 'src/llama_stack/providers/utils/sqlstore/**'
|
||||||
- 'tests/integration/sqlstore/**'
|
- 'tests/integration/sqlstore/**'
|
||||||
|
|
|
||||||
8
.github/workflows/integration-tests.yml
vendored
8
.github/workflows/integration-tests.yml
vendored
|
|
@ -6,11 +6,15 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- 'release-[0-9]+.[0-9]+.x-maint'
|
- 'release-[0-9]+.[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- 'release-[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- 'release-[0-9]+.[0-9]+'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- 'release-[0-9]+.[0-9]+.x-maint'
|
- 'release-[0-9]+.[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- 'release-[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- 'release-[0-9]+.[0-9]+'
|
||||||
types: [opened, synchronize, reopened]
|
types: [opened, synchronize, reopened]
|
||||||
paths:
|
paths:
|
||||||
- 'src/llama_stack/**'
|
- 'src/llama_stack/**'
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,15 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- 'release-[0-9]+.[0-9]+.x-maint'
|
- 'release-[0-9]+.[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- 'release-[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- 'release-[0-9]+.[0-9]+'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- 'release-[0-9]+.[0-9]+.x-maint'
|
- 'release-[0-9]+.[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- 'release-[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- 'release-[0-9]+.[0-9]+'
|
||||||
paths:
|
paths:
|
||||||
- 'src/llama_stack/**'
|
- 'src/llama_stack/**'
|
||||||
- '!src/llama_stack/ui/**'
|
- '!src/llama_stack/ui/**'
|
||||||
|
|
|
||||||
4
.github/workflows/pre-commit.yml
vendored
4
.github/workflows/pre-commit.yml
vendored
|
|
@ -7,7 +7,9 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- 'release-[0-9]+.[0-9]+.x-maint'
|
- 'release-[0-9]+.[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- 'release-[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- 'release-[0-9]+.[0-9]+'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.ref }}
|
||||||
|
|
|
||||||
8
.github/workflows/unit-tests.yml
vendored
8
.github/workflows/unit-tests.yml
vendored
|
|
@ -6,11 +6,15 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- 'release-[0-9]+.[0-9]+.x-maint'
|
- 'release-[0-9]+.[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- 'release-[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- 'release-[0-9]+.[0-9]+'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- 'release-[0-9]+.[0-9]+.x-maint'
|
- 'release-[0-9]+.[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- 'release-[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- 'release-[0-9]+.[0-9]+'
|
||||||
paths:
|
paths:
|
||||||
- 'src/llama_stack/**'
|
- 'src/llama_stack/**'
|
||||||
- '!src/llama_stack/ui/**'
|
- '!src/llama_stack/ui/**'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue