Skip to content

Commit ffd7a20

Browse files
RDDT: Add unittest BuildKit image and disable GitHub Actions
Introduce Dockerfile.unittest.buildkit to run `make unittest` (C++ and Go) via internal CI without producing a runtime image. Disable auto-triggered GitHub Actions workflows in this fork so they only run on workflow_dispatch. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 07aa2c4 commit ffd7a20

17 files changed

Lines changed: 62 additions & 237 deletions

.github/workflows/all-contributors.yaml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,8 @@
11
name: all-contributors
22

3+
# Disabled in this fork; CI runs via internal pipelines.
34
on:
4-
schedule:
5-
# * is a special character in YAML so you have to quote this string
6-
# ┌───────────── minute (0 - 59)
7-
# │ ┌───────────── hour (0 - 23)
8-
# │ │ ┌───────────── day of the month (1 - 31)
9-
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
10-
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
11-
# │ │ │ │ │
12-
# │ │ │ │ │
13-
# │ │ │ │ │
14-
- cron: '0 0,12 * * *'
15-
5+
workflow_dispatch:
166
jobs:
177
contributor:
188
runs-on: ubuntu-latest

.github/workflows/check-issue.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: Add Comment for issue
22

3+
# Disabled in this fork; CI runs via internal pipelines.
34
on:
4-
issues:
5-
types: [opened]
6-
5+
workflow_dispatch:
76
jobs:
87
check_issue_title:
98
name: Check issue

.github/workflows/code-checker.yaml

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,9 @@
11
name: Code Checker
22
# TODO: do not trigger action for some document file update
33

4-
# This workflow is triggered on pushes or pull request to the repository.
4+
# Disabled in this fork; CI runs via internal pipelines.
55
on:
6-
push:
7-
branches:
8-
- master
9-
pull_request:
10-
# file paths to consider in the event. Optional; defaults to all.
11-
paths:
12-
- 'scripts/**'
13-
- 'internal/**'
14-
- 'pkg/**'
15-
- 'client/**'
16-
- 'cmd/**'
17-
- 'build/**'
18-
- 'tests/integration/**'
19-
- 'tests/go_client/**'
20-
- '.github/workflows/code-checker.yaml'
21-
- '.env'
22-
- docker-compose.yml
23-
- Makefile
24-
- '!**.md'
25-
- '!build/ci/jenkins/**'
26-
# FIXME(wxyu): not need to run code check, update the ci-passed rules and remove these two lines
27-
- go.mod
28-
- go.sum
29-
- .golangci.yml
30-
- rules.go
31-
6+
workflow_dispatch:
327
concurrency:
338
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
349
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

.github/workflows/daily-release.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
name: Daily Release
2+
# Disabled in this fork; CI runs via internal pipelines.
23
on:
3-
schedule:
4-
# * is a special character in YAML so you have to quote this string
5-
# ┌───────────── minute (0 - 59)
6-
# │ ┌───────────── hour (0 - 23)
7-
# │ │ ┌───────────── day of the month (1 - 31)
8-
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
9-
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
10-
# │ │ │ │ │
11-
# │ │ │ │ │
12-
# │ │ │ │ │
13-
- cron: '0 18 * * *'
14-
4+
workflow_dispatch:
155
jobs:
166
nightly:
177
name: Run Daily Release

.github/workflows/jenkins-checker.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@ name: Jenkins Checker
22
# Lint Jenkinsfile and related groovy files
33

44

5+
# Disabled in this fork; CI runs via internal pipelines.
56
on:
6-
pull_request:
7-
# file paths to consider in the event. Optional; defaults to all.
8-
paths:
9-
- 'build/ci/jenkins/**.groovy'
10-
- 'ci/jenkins/**.groovy'
11-
- '.github/workflows/jenkins-checker.yaml'
7+
workflow_dispatch:
128
jobs:
139
check-jenkinsfile:
1410
name: Jenkinsfile Checker

.github/workflows/mac.yaml

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,8 @@
11
name: Mac Code Checker
22

3-
# This workflow is triggered on pushes or pull request to the repository.
3+
# Disabled in this fork; CI runs via internal pipelines.
44
on:
5-
push:
6-
branches:
7-
- master
8-
pull_request:
9-
# file paths to consider in the event. Optional; defaults to all.
10-
paths:
11-
- 'scripts/**'
12-
- 'internal/**'
13-
- 'pkg/**'
14-
- 'client/**'
15-
- 'cmd/**'
16-
- 'build/**'
17-
- 'tests/integration/**'
18-
- 'tests/go_client/**'
19-
- '.github/workflows/mac.yaml'
20-
- '.env'
21-
- docker-compose.yml
22-
- Makefile
23-
- '!**.md'
24-
- '!build/ci/jenkins/**'
25-
# FIXME(wxyu): not need to run code check, update the ci-passed rules and remove these two lines
26-
- go.mod
27-
- go.sum
28-
5+
workflow_dispatch:
296
concurrency:
307
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
318
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

.github/workflows/main.yaml

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,8 @@
11
name: Build and test
22

3-
# This workflow is triggered on pushes or pull request to the repository.
3+
# Disabled in this fork; CI runs via internal pipelines.
44
on:
5-
push:
6-
# file paths to consider in the event. Optional; defaults to all.
7-
paths:
8-
- 'scripts/**'
9-
- 'internal/**'
10-
- 'client/**'
11-
- 'pkg/**'
12-
- 'cmd/**'
13-
- 'build/**'
14-
- 'tests/integration/**' # run integration test
15-
- '.github/workflows/main.yaml'
16-
- '.env'
17-
- docker-compose.yml
18-
- Makefile
19-
- go.mod
20-
- '!**.md'
21-
- '!build/ci/jenkins/**'
22-
pull_request:
23-
# file paths to consider in the event. Optional; defaults to all.
24-
paths:
25-
- 'scripts/**'
26-
- 'internal/**'
27-
- 'pkg/**'
28-
- 'client/**'
29-
- 'cmd/**'
30-
- 'build/**'
31-
- 'tests/integration/**' # run integration test
32-
- '.github/workflows/main.yaml'
33-
- '.env'
34-
- docker-compose.yml
35-
- Makefile
36-
- go.mod
37-
- '!**.md'
38-
- '!build/ci/jenkins/**'
39-
5+
workflow_dispatch:
406
concurrency:
417
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
428
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

.github/workflows/markdown-check.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: Markdown Links Check
2+
# Disabled in this fork; CI runs via internal pipelines.
23
on:
34
workflow_dispatch:
4-
schedule:
5-
- cron: "30 20 * * *"
6-
75
jobs:
86
check-links:
97
runs-on: ubuntu-latest

.github/workflows/publish-builder.yaml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
11
name: Publish Builder
22
# TODO: do not trigger action for some document file update
33

4-
# This workflow is triggered on pushes or pull request to the repository.
4+
# Disabled in this fork; CI runs via internal pipelines.
55
on:
6-
push:
7-
# file paths to consider in the event. Optional; defaults to all.
8-
paths:
9-
- 'build/docker/builder/cpu/**'
10-
- '.github/workflows/publish-builder.yaml'
11-
- '!**.md'
12-
pull_request:
13-
# file paths to consider in the event. Optional; defaults to all.
14-
paths:
15-
- 'build/docker/builder/cpu/**'
16-
- '.github/workflows/publish-builder.yaml'
17-
- '!**.md'
18-
6+
workflow_dispatch:
197
concurrency:
208
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
219
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
@@ -46,7 +34,7 @@ jobs:
4634
- name: Checkout
4735
uses: actions/checkout@v2
4836
- name: Get version from system time after release step
49-
id: extracter
37+
id: extractor
5038
run: |
5139
echo "::set-output name=version::$(date +%Y%m%d)"
5240
echo "::set-output name=sha_short::$(git rev-parse --short=7 HEAD)"
@@ -85,6 +73,6 @@ jobs:
8573
uses: ./.github/actions/bump-builder-version
8674
if: success() && github.event_name == 'push' && github.repository == 'milvus-io/milvus' && matrix.os == 'ubuntu22.04'
8775
with:
88-
tag: "${{ steps.extracter.outputs.version }}-${{ steps.extracter.outputs.sha_short }}"
76+
tag: "${{ steps.extractor.outputs.version }}-${{ steps.extractor.outputs.sha_short }}"
8977
type: cpu
9078
token: ${{ secrets.ALL_CONTRIBUTORS_TOKEN }}

.github/workflows/publish-gpu-builder.yaml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,8 @@
11
name: Publish Gpu Builder
22
# TODO: do not trigger action for some document file update
33

4-
# This workflow is triggered on pushes or pull request to the repository.
4+
# Disabled in this fork; CI runs via internal pipelines.
55
on:
6-
push:
7-
# file paths to consider in the event. Optional; defaults to all.
8-
paths:
9-
- 'build/docker/builder/gpu/**'
10-
- '.github/workflows/publish-gpu-builder.yaml'
11-
- '!**.md'
12-
pull_request:
13-
# file paths to consider in the event. Optional; defaults to all.
14-
paths:
15-
- 'build/docker/builder/gpu/**'
16-
- '.github/workflows/publish-gpu-builder.yaml'
17-
- '!**.md'
186
workflow_dispatch:
197
inputs:
208
RunnerHost:
@@ -37,7 +25,7 @@ jobs:
3725
- name: Checkout
3826
uses: actions/checkout@v2
3927
- name: Get version from system time after release step
40-
id: extracter
28+
id: extractor
4129
run: |
4230
echo "version=$(date +%Y%m%d)" >> $GITHUB_OUTPUT
4331
echo "sha_short=$(git rev-parse --short=7 HEAD)" >> $GITHUB_OUTPUT
@@ -76,6 +64,6 @@ jobs:
7664
if: success() && github.event_name == 'push' && github.repository == 'milvus-io/milvus' && ${{ env.OS == 'ubuntu22.04' }}
7765
uses: ./.github/actions/bump-builder-version
7866
with:
79-
tag: "${{ steps.extracter.outputs.version }}-${{ steps.extracter.outputs.sha_short }}"
67+
tag: "${{ steps.extractor.outputs.version }}-${{ steps.extractor.outputs.sha_short }}"
8068
type: gpu
8169
token: ${{ secrets.ALL_CONTRIBUTORS_TOKEN }}

0 commit comments

Comments
 (0)