Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ on:
branches: [main, "release/**"]
paths-ignore:
- "**/*.md"
merge_group:
workflow_dispatch:

env:
# Cache key components for better organization
CACHE_KEY_PREFIX: kagent-v2
BRANCH_CACHE_KEY: ${{ github.head_ref || github.ref_name }}
# Merge groups share one cache scope; their ref names are unique and would each write a throwaway one.
BRANCH_CACHE_KEY: ${{ github.head_ref || (github.event.merge_group.base_ref && 'merge-queue') || github.ref_name }}
AGENT_SANDBOX_VERSION: v0.3.10
# Consistent builder configuration
BUILDX_BUILDER_NAME: kagent-builder-v0.23.0
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/migration-immutability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches: [main, "release/**"]
paths:
- "go/core/pkg/migrations/**"
merge_group:

jobs:
check:
Expand All @@ -15,11 +16,14 @@ jobs:
fetch-depth: 0

- name: Fail if any existing migration file was modified
env:
# A merge group has no base_ref; it only exposes the base branch as refs/heads/<branch>.
BASE_REF: ${{ github.base_ref || github.event.merge_group.base_ref }}
run: |
# List files under go/core/pkg/migrations/ that were changed relative
# to the merge base of this PR. We only care about modifications (M)
# and renames (R); additions (A) are fine.
BASE=$(git merge-base HEAD origin/${{ github.base_ref }})
BASE=$(git merge-base HEAD "origin/${BASE_REF#refs/heads/}")
MODIFIED=$(git diff --name-only --diff-filter=MR "$BASE" HEAD \
-- 'go/core/pkg/migrations/**/*.sql')

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/sqlc-generate-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- "go/core/internal/database/queries/**"
- "go/core/internal/database/sqlc.yaml"
- "go/core/pkg/migrations/**"
merge_group:

jobs:
check:
Expand Down
Loading