forked from kserve/kserve
-
Notifications
You must be signed in to change notification settings - Fork 51
250731 sync kserve/master into odh/master batch1 #805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
openshift-merge-bot
merged 10 commits into
opendatahub-io:master
from
mholder6:250731_sync_upstream_batch1
Jul 31, 2025
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4066caf
refactor: Enhance HTTPRoute readiness checks (#4543)
sivanantha321 8346495
Refactor KServe to use global context for PredictorConfig (#4526)
sivanantha321 d3e5e21
feat: refactor storage initializer resources configuration (#4411)
takamai06 5809a9e
feat(envtest): simplifies CRD lookup (#4564)
bartoszmajsak 7c590ab
llmisvc: Initial controller scaffold and helm chart (#4557)
sivanantha321 a3862fe
Add logic to merge specs for LLMInferenceService (#4563)
VedantMahabaleshwarkar 16ff23d
fix: Allow CA bundle path without config map (#4451)
fabiendupont 2c26bba
docs: fixes invalid openshift subscription (#4572)
bartoszmajsak f0c8d39
Add Code Coverage change report for PRs (#4487)
andyi2it 19a0063
synced with upstream batch 1/3
mholder6 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,58 +1,191 @@ | ||
| name: Go | ||
| name: Go Test | ||
|
|
||
| on: | ||
| push: | ||
| branches: [master, release*] | ||
| pull_request: | ||
| branches: [] | ||
| workflow_dispatch: | ||
| push: | ||
| branches: [master, release*] | ||
| pull_request: | ||
| branches: [] | ||
| workflow_dispatch: | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| jobs: | ||
| build: | ||
| name: Build | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Check out code into the Go module directory | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Go 1.x | ||
| uses: actions/setup-go@v5 | ||
| with: | ||
| go-version-file: go.mod | ||
| id: go | ||
|
|
||
| - name: Get dependencies | ||
| run: | | ||
| go get -v -t -d ./... | ||
|
|
||
| - name: Test | ||
| id: test | ||
| run: | | ||
| export GOPATH=/home/runner/go | ||
| export PATH=$PATH:/usr/local/kubebuilder/bin:/home/runner/go/bin | ||
| wget -O $GOPATH/bin/yq https://github.com/mikefarah/yq/releases/download/v4.28.1/yq_linux_amd64 | ||
| chmod +x $GOPATH/bin/yq | ||
| make test | ||
| ./coverage.sh | ||
| echo ::set-output name=coverage::$(./coverage.sh | tr -s '\t' | cut -d$'\t' -f 3) | ||
|
|
||
| - name: Print coverage | ||
| run: | | ||
| echo "Coverage output is ${{ steps.test.outputs.coverage }}" | ||
|
|
||
| - name: Update coverage badge | ||
| # Disabling, because this tries to update a Gist owned by KServe. | ||
| # More info: https://github.com/opendatahub-io/kserve/issues/29 | ||
| if: false # github.ref == 'refs/heads/master' | ||
| uses: schneegans/[email protected] | ||
| with: | ||
| auth: ${{ secrets.GIST_SECRET }} | ||
| gistID: 5174bd748ac63a6e4803afea902e9810 | ||
| filename: coverage.json | ||
| label: coverage | ||
| message: ${{ steps.test.outputs.coverage }} | ||
| color: green | ||
| test: | ||
| name: Test | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
|
|
||
| - name: Check out code into the Go module directory | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Go 1.x | ||
| uses: actions/setup-go@v5 | ||
| with: | ||
| go-version-file: go.mod | ||
| id: go | ||
|
|
||
| - name: Get dependencies | ||
| run: | | ||
| go get -v -t -d ./... | ||
|
|
||
| - name: Test | ||
| id: test | ||
| run: | | ||
| export GOPATH=/home/runner/go | ||
| export PATH=$PATH:/usr/local/kubebuilder/bin:/home/runner/go/bin | ||
| wget -O $GOPATH/bin/yq https://github.com/mikefarah/yq/releases/download/v4.28.1/yq_linux_amd64 | ||
| chmod +x $GOPATH/bin/yq | ||
| make test | ||
| ./coverage.sh | ||
| echo ::set-output name=coverage::$(./coverage.sh | tr -s '\t' | cut -d$'\t' -f 3) | ||
|
|
||
| - name: Print coverage | ||
| run: | | ||
| echo "Coverage output is ${{ steps.test.outputs.coverage }}" | ||
|
|
||
| - name: Update coverage badge | ||
| # Disabling, because this tries to update a Gist owned by KServe. | ||
| # More info: https://github.com/opendatahub-io/kserve/issues/29 | ||
| if: false # github.ref == 'refs/heads/master' | ||
| uses: schneegans/[email protected] | ||
| with: | ||
| auth: ${{ secrets.GIST_SECRET }} | ||
| gistID: 5174bd748ac63a6e4803afea902e9810 | ||
| filename: coverage.json | ||
| label: coverage | ||
| message: ${{ steps.test.outputs.coverage }} | ||
| color: green | ||
| check-coverage: | ||
| needs: test | ||
| runs-on: ubuntu-latest | ||
| name: Check Coverage | ||
| steps: | ||
|
mholder6 marked this conversation as resolved.
|
||
| - name: checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Download cover profile artifact | ||
| id: download-coverage | ||
| uses: actions/download-artifact@v4 | ||
| with: | ||
| name: coverage.out | ||
|
|
||
| - name: Extract coverage percentage | ||
| id: current-coverage | ||
| run: | | ||
| if [ -f coverage.out ]; then | ||
| COVERAGE=$(go tool cover -func=coverage.out | grep total: | awk '{print $3}' | sed 's/%//') | ||
| echo "coverage=$COVERAGE" >> $GITHUB_OUTPUT | ||
| else | ||
| echo "coverage=0" >> $GITHUB_OUTPUT | ||
| fi | ||
|
|
||
| - name: download artifact (master.breakdown) | ||
| id: download-master-breakdown | ||
| uses: dawidd6/action-download-artifact@v9 | ||
| with: | ||
| branch: master | ||
| workflow_conclusion: success | ||
| name: master.breakdown | ||
| if_no_artifact_found: warn | ||
|
|
||
| - name: download artifact (master-coverage.out) | ||
| id: download-master-coverage | ||
| uses: dawidd6/action-download-artifact@v9 | ||
| with: | ||
| branch: master | ||
| workflow_conclusion: success | ||
| name: master-coverage.out | ||
| if_no_artifact_found: warn | ||
|
|
||
| - name: Extract master coverage percentage | ||
| id: master-coverage | ||
| run: | | ||
| if [ -f master-coverage.out ]; then | ||
| MASTER_COVERAGE=$(go tool cover -func=master-coverage.out | grep total: | awk '{print $3}' | sed 's/%//') | ||
| echo "coverage=$MASTER_COVERAGE" >> $GITHUB_OUTPUT | ||
| else | ||
| echo "coverage=0" >> $GITHUB_OUTPUT | ||
| fi | ||
|
|
||
| - name: Generate full coverage breakdown | ||
| id: full_coverage_report | ||
| run: | | ||
| if [ -f coverage.out ]; then | ||
| REPORT_CONTENT=$(go tool cover -func=coverage.out) # This command outputs function-level coverage [5] | ||
| echo "report<<EOF" >> $GITHUB_OUTPUT # Start HERE-doc for multi-line output [3] | ||
| echo "$REPORT_CONTENT" >> $GITHUB_OUTPUT | ||
| echo "EOF" >> $GITHUB_OUTPUT # End HERE-doc | ||
| else | ||
| echo "report=No coverage report found." >> $GITHUB_OUTPUT | ||
| fi | ||
|
|
||
| - name: check test coverage | ||
| id: coverage | ||
| uses: vladopajic/go-test-coverage@v2 | ||
| continue-on-error: true | ||
| with: | ||
| config: ./.github/.testcoverage.yml | ||
| breakdown-file-name: ${{ github.ref_name == 'master' && 'master.breakdown' || '' }} | ||
| diff-base-breakdown-file-name: ${{ steps.download-master-breakdown.outputs.found_artifact == 'true' && 'master.breakdown' || '' }} | ||
|
|
||
| - name: upload artifact (master.breakdown) | ||
| uses: actions/upload-artifact@v4 | ||
| if: github.ref_name == 'master' | ||
| with: | ||
| name: master.breakdown | ||
| path: master.breakdown | ||
| if-no-files-found: error | ||
|
|
||
| - name: Previous coverage | ||
| run: | | ||
| echo "Previous Coverage ${{ steps.master-coverage.outputs.coverage }}" | ||
|
|
||
| - name: Current coverage | ||
| run: | | ||
| echo "Current Coverage ${{ steps.current-coverage.outputs.coverage }}" | ||
|
|
||
| - name: post coverage report | ||
| if: github.event_name == 'pull_request' | ||
| uses: thollander/actions-comment-pull-request@v3 | ||
| with: | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| comment-tag: coverage-report | ||
| pr-number: ${{ github.event.pull_request.number }} | ||
| message: | | ||
| ## 📊 Go Test Coverage Report | ||
|
|
||
| ${{ | ||
| steps.current-coverage.outputs.coverage > steps.master-coverage.outputs.coverage | ||
| && '✅ **Overall code coverage increased.**' | ||
| || steps.current-coverage.outputs.coverage < steps.master-coverage.outputs.coverage | ||
| && '❌ **Overall code coverage decreased.**' | ||
| || 'ℹ️ **Overall code coverage unchanged.**' | ||
| }} | ||
|
|
||
| **🔍 Coverage Summary** | ||
| - **Pull Request Coverage:** `${{ steps.current-coverage.outputs.coverage }}%` | ||
| - **Main Branch Coverage:** `${{ steps.master-coverage.outputs.coverage }}%` | ||
|
|
||
| <details> | ||
| <summary>📄 Click to expand full coverage breakdown</summary> | ||
|
|
||
| ``` | ||
| ${{ steps.full_coverage_report.outputs.report }} | ||
| ``` | ||
|
|
||
| </details> | ||
| - name: Rename and upload master coverage | ||
| if: github.ref_name == 'master' | ||
| run: mv coverage.out master-coverage.out | ||
|
|
||
| - name: Upload master coverage artifact | ||
| if: github.ref_name == 'master' | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: master-coverage.out | ||
| path: master-coverage.out | ||
| if-no-files-found: error | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| apiVersion: v1 | ||
| name: llmisvc-crd | ||
| version: v0.15.2 | ||
| description: Helm chart for deploying LLMInferenceService crds | ||
| keywords: | ||
| - kserve | ||
| - llm | ||
| - llm-d | ||
| - inference | ||
| - generative-ai | ||
| - machine-learning | ||
| - model-serving | ||
| home: https://kserve.github.io/website/ | ||
| sources: | ||
| - https://github.com/kserve/kserve | ||
| maintainers: | ||
| - name: KServe Team | ||
| url: https://github.com/kserve/kserve | ||
| icon: https://raw.githubusercontent.com/kserve/website/main/docs/images/logo.png | ||
| annotations: | ||
| category: AI/Machine Learning |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # llmisvc-crd | ||
|
|
||
| Helm chart for deploying LLMInferenceService crds | ||
|
|
||
|  | ||
|
|
||
| ## Installing the Chart | ||
|
|
||
| To install the chart, run the following: | ||
|
|
||
| ```console | ||
| $ helm install llmisvc-crd oci://ghcr.io/kserve/charts/llmisvc-crd --version v0.15.2 | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| {{ template "chart.header" . }} | ||
| {{ template "chart.description" . }} | ||
|
|
||
| {{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }} | ||
|
|
||
| ## Installing the Chart | ||
|
|
||
| To install the chart, run the following: | ||
|
|
||
| ```console | ||
| $ helm install llmisvc-crd oci://ghcr.io/kserve/charts/llmisvc-crd --version {{ template "chart.version" . }} | ||
| ``` |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.