Skip to content

Commit 93ef1a3

Browse files
Merge pull request #585 from spolti/250424_sync_upstream
250424 sync upstream
2 parents 64769a9 + d2b3a22 commit 93ef1a3

File tree

379 files changed

+22975
-30389
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

379 files changed

+22975
-30389
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<!-- Thanks for sending a pull request! Here are some tips for you:
22
1. If this is your first time, read our contributor guidelines https://www.kubeflow.org/docs/about/contributing/ and developer guide https://github.com/kserve/kserve/blob/master/docs/DEVELOPER_GUIDE.md
3-
2. If you want *faster* PR reviews, read how: https://git.k8s.io/community/contributors/guide/pull-requests.md#best-practices-for-faster-reviews
4-
3. Follow the instructions for writing a release note: https://git.k8s.io/community/contributors/guide/release-notes.md
5-
4. If the PR is unfinished, see how to mark it: https://git.k8s.io/community/contributors/guide/pull-requests.md#marking-unfinished-pull-requests
3+
2. Before raising a PR, please run `make go-lint` and `make py-fmt` to check the code style.
4+
3. If you want *faster* PR reviews, read how: https://git.k8s.io/community/contributors/guide/pull-requests.md#best-practices-for-faster-reviews
5+
4. Follow the instructions for writing a release note: https://git.k8s.io/community/contributors/guide/release-notes.md
6+
5. If the PR is unfinished, see how to mark it: https://git.k8s.io/community/contributors/guide/pull-requests.md#marking-unfinished-pull-requests
67
-->
78

89
**What this PR does / why we need it**:

.github/workflows/automated-release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,27 @@ on:
33
workflow_dispatch:
44
inputs:
55
releaseBranch:
6-
description: 'The existing branch name to release from, e.g. release-0.12'
6+
description: "The existing branch name to release from, e.g. release-0.12"
77
required: true
88
releaseTag:
9-
description: 'The release tag, e.g. v0.12.0-rc1'
9+
description: "The release tag, e.g. v0.12.0-rc1"
1010
required: true
1111

1212
jobs:
1313
prepare-release:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- name: Setup Go
17-
uses: actions/setup-go@v5
18-
with:
19-
go-version: 1.22
20-
2116
- name: Checkout source code
2217
uses: actions/checkout@v4
2318
with:
2419
fetch-depth: 0
2520
ref: ${{ inputs.releaseBranch }}
2621

22+
- name: Setup Go
23+
uses: actions/setup-go@v5
24+
with:
25+
go-version-file: go.mod
26+
2727
- name: Install dependencies
2828
run: |
2929
go mod download
@@ -39,12 +39,12 @@ jobs:
3939
cd $KSERVE_PATH
4040
export RELEASE_BRANCH=${{ inputs.releaseBranch }}
4141
export RELEASE_TAG=${{ inputs.releaseTag }}
42-
42+
4343
# Bump Versions
4444
make bump-version
4545
./hack/generate-install.sh $RELEASE_TAG
4646
./hack/python-release.sh
47-
47+
4848
# Update Release Branch and Push Tag
4949
git diff
5050
git config --global user.email "[email protected]"

.github/workflows/e2e-test.yml

Lines changed: 32 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
path: ${{ env.DOCKER_IMAGES_PATH }}/${{ env.CONTROLLER_IMG }}-${{ github.sha }}
8080
compression-level: 0
8181
if-no-files-found: error
82-
82+
8383
- name: Upload localmodel controller image
8484
uses: actions/upload-artifact@v4
8585
with:
@@ -295,11 +295,7 @@ jobs:
295295

296296
test-predictor:
297297
runs-on: ubuntu-22.04
298-
needs:
299-
[
300-
kserve-image-build,
301-
predictor-runtime-build,
302-
]
298+
needs: [kserve-image-build, predictor-runtime-build]
303299
steps:
304300
- name: Checkout
305301
uses: actions/checkout@v4
@@ -310,7 +306,7 @@ jobs:
310306
- name: Setup Go
311307
uses: actions/setup-go@v5
312308
with:
313-
go-version: "1.22"
309+
go-version-file: go.mod
314310

315311
- name: Setup Python
316312
uses: actions/setup-python@v5
@@ -372,8 +368,8 @@ jobs:
372368
- name: Setup Go
373369
uses: actions/setup-go@v5
374370
with:
375-
go-version: "1.22"
376-
371+
go-version-file: go.mod
372+
377373
- name: Setup Python
378374
uses: actions/setup-python@v5
379375
with:
@@ -424,7 +420,7 @@ jobs:
424420
- name: Install KServe
425421
run: |
426422
./test/scripts/gh-actions/setup-kserve.sh
427-
423+
428424
kubectl get pods -n kserve
429425
kubectl describe pods -n kserve
430426
@@ -441,19 +437,15 @@ jobs:
441437
test-graph:
442438
runs-on: ubuntu-22.04
443439
needs:
444-
[
445-
kserve-image-build,
446-
predictor-runtime-build,
447-
graph-tests-images-build,
448-
]
440+
[kserve-image-build, predictor-runtime-build, graph-tests-images-build]
449441
steps:
450442
- name: Checkout
451443
uses: actions/checkout@v4
452444

453445
- name: Setup Go
454446
uses: actions/setup-go@v5
455447
with:
456-
go-version: "1.22"
448+
go-version-file: go.mod
457449

458450
- name: Setup Python
459451
uses: actions/setup-python@v5
@@ -516,23 +508,18 @@ jobs:
516508
run: |
517509
./test/scripts/gh-actions/status-check.sh
518510
519-
520511
test-path-based-routing:
521512
runs-on: ubuntu-22.04
522513
needs:
523-
[
524-
kserve-image-build,
525-
predictor-runtime-build,
526-
explainer-runtime-build
527-
]
514+
[kserve-image-build, predictor-runtime-build, explainer-runtime-build]
528515
steps:
529516
- name: Checkout
530517
uses: actions/checkout@v4
531518

532519
- name: Setup Go
533520
uses: actions/setup-go@v5
534521
with:
535-
go-version: "1.22"
522+
go-version-file: go.mod
536523

537524
- name: Setup Python
538525
uses: actions/setup-python@v5
@@ -624,7 +611,7 @@ jobs:
624611
- name: Setup Go
625612
uses: actions/setup-go@v5
626613
with:
627-
go-version: "1.22"
614+
go-version-file: go.mod
628615
- name: Setup Python
629616
uses: actions/setup-python@v5
630617
with:
@@ -678,16 +665,15 @@ jobs:
678665
679666
test-with-helm:
680667
runs-on: ubuntu-22.04
681-
needs:
682-
[kserve-image-build]
668+
needs: [kserve-image-build]
683669
steps:
684670
- name: Checkout source
685671
uses: actions/checkout@v4
686672

687673
- name: Setup Go
688674
uses: actions/setup-go@v5
689675
with:
690-
go-version: "1.22"
676+
go-version-file: go.mod
691677

692678
- name: Setup Python
693679
uses: actions/setup-python@v5
@@ -711,7 +697,6 @@ jobs:
711697

712698
- name: Install Kserve from helm
713699
run: |
714-
./test/scripts/gh-actions/setup-modelmesh-dep.sh
715700
./test/scripts/gh-actions/setup-kserve-helm.sh
716701
kubectl get pods -n kserve
717702
kubectl describe pods -n kserve
@@ -746,7 +731,7 @@ jobs:
746731
- name: Setup Go
747732
uses: actions/setup-go@v5
748733
with:
749-
go-version: "1.22"
734+
go-version-file: go.mod
750735

751736
- name: Setup Python
752737
uses: actions/setup-python@v5
@@ -818,13 +803,13 @@ jobs:
818803
timeout-minutes: 30
819804
run: |
820805
./test/scripts/gh-actions/run-e2e-tests.sh "raw" "6" ${{ matrix.network-layer }}
821-
806+
822807
- name: Patch inferenceservice config for path based routing
823808
if: matrix.network-layer == 'envoy-gatewayapi' || matrix.network-layer == 'istio-gatewayapi'
824809
run: |
825810
kubectl patch configmaps -n kserve inferenceservice-config --patch-file config/overlays/test/configmap/inferenceservice-path-template.yaml
826811
kubectl describe configmaps -n kserve inferenceservice-config
827-
812+
828813
- name: Run E2E tests with path based routing
829814
if: matrix.network-layer == 'envoy-gatewayapi' || matrix.network-layer == 'istio-gatewayapi'
830815
timeout-minutes: 30
@@ -860,7 +845,7 @@ jobs:
860845
- name: Setup Go
861846
uses: actions/setup-go@v5
862847
with:
863-
go-version: "1.22"
848+
go-version-file: go.mod
864849

865850
- name: Setup Python
866851
uses: actions/setup-python@v5
@@ -933,8 +918,7 @@ jobs:
933918
934919
test-llm:
935920
runs-on: ubuntu-22.04
936-
needs:
937-
[kserve-image-build, predictor-runtime-build]
921+
needs: [kserve-image-build, predictor-runtime-build]
938922
steps:
939923
- name: Checkout source
940924
uses: actions/checkout@v4
@@ -945,7 +929,7 @@ jobs:
945929
- name: Setup Go
946930
uses: actions/setup-go@v5
947931
with:
948-
go-version: "1.22"
932+
go-version-file: go.mod
949933
- name: Setup Python
950934
uses: actions/setup-python@v5
951935
with:
@@ -993,8 +977,7 @@ jobs:
993977
994978
test-huggingface-server-vllm:
995979
runs-on: ubuntu-22.04
996-
needs:
997-
[kserve-image-build, predictor-runtime-build]
980+
needs: [kserve-image-build, predictor-runtime-build]
998981
steps:
999982
- name: Checkout source
1000983
uses: actions/checkout@v4
@@ -1005,7 +988,7 @@ jobs:
1005988
- name: Setup Go
1006989
uses: actions/setup-go@v5
1007990
with:
1008-
go-version: "1.22"
991+
go-version-file: go.mod
1009992
- name: Setup Python
1010993
uses: actions/setup-python@v5
1011994
with:
@@ -1050,11 +1033,10 @@ jobs:
10501033
if: always()
10511034
run: |
10521035
./test/scripts/gh-actions/status-check.sh
1053-
1036+
10541037
test-modelcache:
10551038
runs-on: ubuntu-22.04
1056-
needs:
1057-
[kserve-image-build, predictor-runtime-build]
1039+
needs: [kserve-image-build, predictor-runtime-build]
10581040
steps:
10591041
- name: Checkout source
10601042
uses: actions/checkout@v4
@@ -1065,13 +1047,13 @@ jobs:
10651047
- name: Setup Go
10661048
uses: actions/setup-go@v5
10671049
with:
1068-
go-version: "1.22"
1050+
go-version-file: go.mod
10691051

10701052
- name: Setup Python
10711053
uses: actions/setup-python@v5
10721054
with:
10731055
python-version: "3.9"
1074-
1056+
10751057
- name: Create tmp-images directory
10761058
run: |
10771059
sudo mkdir -p /tmp-images
@@ -1083,7 +1065,7 @@ jobs:
10831065
nodes: 3
10841066
driver: "docker"
10851067
start-args: "--mount --mount-string=/tmp-images:/tmp-images"
1086-
1068+
10871069
- name: Create minikube tunnel
10881070
run: |
10891071
nohup minikube tunnel > minikube-tunnel.log 2>&1 &
@@ -1129,7 +1111,7 @@ jobs:
11291111
done
11301112
sudo rm -rf tmp-images/*
11311113
minikube ssh -n minikube-m02 -- docker image ls
1132-
1114+
11331115
- name: Create model root directory
11341116
run: |
11351117
minikube ssh -n minikube-m02 -- sudo mkdir -p -m=777 /models
@@ -1144,7 +1126,7 @@ jobs:
11441126
11451127
kubectl get pods -n kserve
11461128
kubectl describe pods -n kserve
1147-
1129+
11481130
- name: Enable modelcache
11491131
run: |
11501132
sed -i -e "s/latest/${GITHUB_SHA}/g" config/overlays/test/configmap/inferenceservice-enable-modelcache.yaml
@@ -1154,15 +1136,15 @@ jobs:
11541136
- name: Create localmodel job namespace
11551137
run: |
11561138
kubectl create ns kserve-localmodel-jobs
1157-
1139+
11581140
- name: Label worker nodes for modelcache
11591141
run: |
11601142
kubectl label nodes -l '!node-role.kubernetes.io/control-plane' kserve/localmodel=worker
1161-
1143+
11621144
- name: Enable nodeselector in knative
11631145
run: |
11641146
kubectl patch configmaps -n knative-serving config-features --patch '{"data": {"kubernetes.podspec-nodeselector": "enabled"}}'
1165-
1147+
11661148
- name: Run E2E tests
11671149
timeout-minutes: 15
11681150
run: |
@@ -1174,4 +1156,4 @@ jobs:
11741156
echo "::group::Minikube tunnel logs"
11751157
cat minikube-tunnel.log
11761158
echo "::endgroup::"
1177-
./test/scripts/gh-actions/status-check.sh
1159+
./test/scripts/gh-actions/status-check.sh

.github/workflows/go.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ jobs:
1616
name: Build
1717
runs-on: ubuntu-latest
1818
steps:
19+
- name: Check out code into the Go module directory
20+
uses: actions/checkout@v4
21+
1922
- name: Set up Go 1.x
2023
uses: actions/setup-go@v5
2124
with:
22-
go-version: "1.22"
25+
go-version-file: go.mod
2326
id: go
2427

25-
- name: Check out code into the Go module directory
26-
uses: actions/checkout@v4
27-
2828
- name: Get dependencies
2929
run: |
3030
go get -v -t -d ./...
@@ -55,4 +55,4 @@ jobs:
5555
filename: coverage.json
5656
label: coverage
5757
message: ${{ steps.test.outputs.coverage }}
58-
color: green
58+
color: green

0 commit comments

Comments
 (0)