fix(ublk): decouple proactive prewarm from idle cache capacity #229
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: Ublk Tests | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| log_level: | |
| description: "Log level for the tests" | |
| required: false | |
| pull_request: | |
| paths: | |
| - "storage/**" | |
| - "crates/linux-cap/**" | |
| - "scripts/run-with-capabilities.sh" | |
| - "scripts/tests/setup-ublk-access.sh" | |
| - "src/privileges.rs" | |
| - "Makefile" | |
| - "Cargo.toml" | |
| - "Cargo.lock" | |
| - "rust-toolchain.toml" | |
| - ".github/actions/rust-ci-setup/**" | |
| - ".github/workflows/ublk-tests.yml" | |
| push: | |
| paths: | |
| - "storage/**" | |
| - "crates/linux-cap/**" | |
| - "scripts/run-with-capabilities.sh" | |
| - "scripts/tests/setup-ublk-access.sh" | |
| - "src/privileges.rs" | |
| - "Makefile" | |
| - "Cargo.toml" | |
| - "Cargo.lock" | |
| - "rust-toolchain.toml" | |
| - ".github/actions/rust-ci-setup/**" | |
| - ".github/workflows/ublk-tests.yml" | |
| env: | |
| RUST_LOG: ${{ github.event.inputs.log_level || 'info' }} | |
| jobs: | |
| ublk-tests: | |
| # Ubuntu 24.04's Linux 6.17 kernel can crash in ublk ADD_DEV. | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ./.github/actions/rust-ci-setup | |
| - name: Configure ublk test host | |
| run: sudo scripts/tests/setup-ublk-access.sh "$(id -un)" "$(id -gn)" | |
| - name: ublk tests | |
| run: make test-ublk PROFILE=debug | |
| - uses: ./.github/actions/sandbox-artifacts-cleanup | |
| if: always() |