diff --git a/.github/actionlint.yaml b/.github/actionlint.yaml new file mode 100644 index 000000000..225fc00f6 --- /dev/null +++ b/.github/actionlint.yaml @@ -0,0 +1,12 @@ +# Configuration for actionlint +# https://github.com/rhysd/actionlint/blob/main/docs/config.md + +self-hosted-runner: + # Labels for self-hosted runners used in this repository + labels: + - rbln-sw-k8s-general + - rbln-sw-k8s-ca22-1 + - rbln-sw-k8s-ca22-4 + - rbln-sw-k8s-ca22-8 + - fsw-r18s-atom-ext-rbln-sw-general-c3m48a1 + - fsw-r18s-atom-ext-rbln-sw-general-c1m12 diff --git a/.github/workflows/rbln_optimum_ci.yaml b/.github/workflows/rbln_optimum_ci.yaml index af2280a1c..18b3fb182 100644 --- a/.github/workflows/rbln_optimum_ci.yaml +++ b/.github/workflows/rbln_optimum_ci.yaml @@ -7,13 +7,17 @@ on: description: "ref to checkout" required: false type: string + pr_number: + description: "PR number to checkout (optional)" + required: false + type: string rebel_compiler_version: - description: "Version of rebel-compiler to use (optional)" - required: true + description: "Version of rebel-compiler to use (optional, will fetch latest if not provided)" + required: false type: string optimum_rbln_version: description: "Version of optimum-rbln to use (optional)" - required: true + required: false type: string workflow_call: inputs: @@ -21,8 +25,12 @@ on: description: "ref to checkout" required: false type: string + pr_number: + description: "PR number to checkout (optional)" + required: false + type: string rebel_compiler_version: - description: "Version of rebel-compiler to use (optional)" + description: "Version of rebel-compiler to use" required: false type: string optimum_rbln_version: @@ -34,7 +42,14 @@ env: REBEL_VLLM_PRE_COMPILED_DIR: ${{ secrets.VLLM_PRE_COMPILED_DIR }} jobs: + get-compiler-version: + if: ${{ !inputs.rebel_compiler_version }} + uses: ./.github/workflows/rbln_utils_get_compiler_version_ci.yaml + secrets: inherit + test_vllm_rbln_rsd1: + needs: [get-compiler-version] + if: ${{ always() && !cancelled() }} name: Optimum Test CI RSD 1 runs-on: rbln-sw-k8s-ca22-1 container: @@ -59,7 +74,7 @@ jobs: apt-get install -y build-essential export CXX=$(which g++) uv pip uninstall --system rebel-compiler - VERSION=${{ inputs.rebel_compiler_version }} + VERSION=${{ inputs.rebel_compiler_version || needs.get-compiler-version.outputs.compiler_version }} uv pip install --system --extra-index-url ${{ secrets.DEV_PKG_URL }} rebel-compiler==${VERSION} - name: Checkout current repository @@ -121,6 +136,8 @@ jobs: --golden_json ${{ env.REBEL_VLLM_PRE_COMPILED_DIR }}/golden/golden_bge_m3_result_qp_prompts.json test_vllm_rbln_rsd4: + needs: [get-compiler-version] + if: ${{ always() && !cancelled() }} name: Optimum Test CI RSD 4 runs-on: rbln-sw-k8s-ca22-4 container: @@ -145,7 +162,7 @@ jobs: apt-get install -y build-essential export CXX=$(which g++) uv pip uninstall --system rebel-compiler - VERSION=${{ inputs.rebel_compiler_version }} + VERSION=${{ inputs.rebel_compiler_version || needs.get-compiler-version.outputs.compiler_version }} uv pip install --system --extra-index-url ${{ secrets.DEV_PKG_URL }} rebel-compiler==${VERSION} - name: Checkout current repository @@ -251,6 +268,8 @@ jobs: --model_id ${{ env.REBEL_VLLM_PRE_COMPILED_DIR }}/paligemma-3b-8k-b4 test_vllm_rbln_rsd8: + needs: [get-compiler-version] + if: ${{ always() && !cancelled() }} name: Optimum Test CI RSD 8 runs-on: rbln-sw-k8s-ca22-8 container: @@ -275,7 +294,7 @@ jobs: apt-get install -y build-essential export CXX=$(which g++) uv pip uninstall --system rebel-compiler - VERSION=${{ inputs.rebel_compiler_version }} + VERSION=${{ inputs.rebel_compiler_version || needs.get-compiler-version.outputs.compiler_version }} uv pip install --system --extra-index-url ${{ secrets.DEV_PKG_URL }} rebel-compiler==${VERSION} - name: Checkout current repository diff --git a/.github/workflows/rbln_trigger_internal_test.yaml b/.github/workflows/rbln_trigger_internal_test.yaml index 59e900e1e..faabc5c65 100644 --- a/.github/workflows/rbln_trigger_internal_test.yaml +++ b/.github/workflows/rbln_trigger_internal_test.yaml @@ -7,6 +7,10 @@ on: description: "ref to checkout" required: false type: string + pr_number: + description: "PR number to checkout (optional)" + required: false + type: string rebel_compiler_version: description: "Version of rebel-compiler to use (optional)" required: false @@ -60,18 +64,20 @@ jobs: vllm-rbln-pytest: needs: [get-compiler-version, build-vllm-rbln] + if: ${{ always() && !cancelled() && needs.build-vllm-rbln.result == 'success' }} uses: ./.github/workflows/rbln_vllm-rbln_pytest.yaml secrets: inherit with: ref: ${{ inputs.ref }} - rebel_compiler_version: ${{ needs.get-compiler-version.outputs.compiler_version }} + rebel_compiler_version: ${{ inputs.rebel_compiler_version || needs.get-compiler-version.outputs.compiler_version }} optimum_rbln_version: ${{ inputs.optimum_rbln_version }} vllm-rbln-optimum-ci: needs: [get-compiler-version, build-vllm-rbln] + if: ${{ always() && !cancelled() && needs.build-vllm-rbln.result == 'success' }} uses: ./.github/workflows/rbln_optimum_ci.yaml secrets: inherit with: ref: ${{ inputs.ref }} - rebel_compiler_version: ${{ needs.get-compiler-version.outputs.compiler_version }} + rebel_compiler_version: ${{ inputs.rebel_compiler_version || needs.get-compiler-version.outputs.compiler_version }} optimum_rbln_version: ${{ inputs.optimum_rbln_version }} diff --git a/.github/workflows/rbln_vllm-rbln_pytest.yaml b/.github/workflows/rbln_vllm-rbln_pytest.yaml index 5af007beb..62b4b49d2 100644 --- a/.github/workflows/rbln_vllm-rbln_pytest.yaml +++ b/.github/workflows/rbln_vllm-rbln_pytest.yaml @@ -24,6 +24,10 @@ on: required: false type: boolean default: true + test_level: + description: "Test level for VLLM_RBLN_TEST_LEVEL environment variable" + required: false + type: string workflow_call: inputs: ref: @@ -43,6 +47,10 @@ on: description: "Version of optimum-rbln to use (optional)" required: false type: string + test_level: + description: "Test level for VLLM_RBLN_TEST_LEVEL environment variable" + required: false + type: string env: RBLN_VERBOSE: 6 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 78aef3ab6..4f13a2a9f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,7 +18,6 @@ repos: rev: v1.7.7 hooks: - id: actionlint - args: ["-config-file", "actionlint.yaml"] - repo: https://github.com/pre-commit/mirrors-clang-format rev: v21.1.2 hooks: @@ -86,17 +85,6 @@ repos: entry: python tools/pre_commit/check_license_header.py language: python types: [python] - language: python - types: [python] - - id: check-filenames - name: Check for spaces in all filenames - entry: bash - args: - - -c - - 'git ls-files | grep " " && echo "Filenames should not contain spaces!" && exit 1 || exit 0' - language: system - always_run: true - pass_filenames: false - id: check-filenames name: Check for spaces in all filenames entry: bash diff --git a/actionlint.yaml b/actionlint.yaml deleted file mode 100644 index 7e53a17f5..000000000 --- a/actionlint.yaml +++ /dev/null @@ -1,8 +0,0 @@ -self-hosted-runner: - labels: - - rbln-sw-k8s-general - - rbln-sw-k8s-ca22-1 - - rbln-sw-k8s-ca22-4 - - rbln-sw-k8s-ca22-8 - - fsw-r18s-atom-ext-rbln-sw-general-c1m12 - - fsw-r18s-atom-ext-rbln-sw-general-c3m48a1 \ No newline at end of file