scheduler: add committed eviction transaction metric #12642
Workflow file for this run
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
| name: Code Verify | |
| on: | |
| push: | |
| branches: | |
| - master | |
| tags: | |
| pull_request: | |
| permissions: read-all | |
| jobs: | |
| verify: | |
| runs-on: ubuntu-24.04 | |
| name: Verify codes, generated files | |
| timeout-minutes: 40 | |
| env: | |
| GOPATH: /home/runner/work/${{ github.repository }} | |
| steps: | |
| - name: Install Go | |
| uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0 | |
| with: | |
| go-version: 1.26.x | |
| - name: Checkout code | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| fetch-depth: 0 | |
| path: ./src/github.com/${{ github.repository }} | |
| - name: Set TAG from release config | |
| run: | | |
| cd ./src/github.com/${{ github.repository }} | |
| if [[ -f .release-version ]]; then | |
| TAG=$(cat .release-version | tr -d '\n\r') | |
| echo "TAG=${TAG}" >> $GITHUB_ENV | |
| echo "Using TAG from .release-version: ${TAG}" | |
| else | |
| echo "TAG=latest" >> $GITHUB_ENV | |
| echo "Using default TAG=latest (.release-version file not found)" | |
| fi | |
| - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| with: | |
| path: ~/go/pkg/mod | |
| key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
| - name: Run verify test | |
| run: | | |
| make lint | |
| make verify | |
| make TAG=${{ env.TAG }} generate-yaml | |
| make TAG=${{ env.TAG }} verify-generated-yaml | |
| sudo make unit-test | |
| working-directory: ./src/github.com/${{ github.repository }} | |
| - name: Verify staging APIs generated code | |
| run: | | |
| echo "::group::Verifying staging APIs generated code" | |
| cd staging/src/volcano.sh/apis | |
| if ! bash hack/verify-codegen.sh; then | |
| echo "::error::Staging APIs generated code is out of date" | |
| echo "Please run: cd staging/src/volcano.sh/apis && bash hack/update-codegen.sh" | |
| exit 1 | |
| fi | |
| echo "Staging APIs generated code is up to date" | |
| echo "::endgroup::" | |
| working-directory: ./src/github.com/${{ github.repository }} |