validate number of indirect desc in pop_avail (#1196) #2979
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: Rust | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| check-style: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Report rustfmt version | |
| run: cargo fmt -- --version | |
| - name: Check style | |
| run: cargo fmt -- --check | |
| - name: Check misc. style | |
| run: cargo xtask style | |
| check-clippy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Report clippy version | |
| run: cargo clippy -- --version | |
| - name: Check clippy | |
| run: cargo xtask clippy --strict | |
| check-license: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Check license headers | |
| uses: apache/skywalking-eyes/header@5c5b974209f0de5d905f37deb69369068ebfc15c # v0.7.0 | |
| build-docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Test build documentation | |
| run: cargo doc --workspace --no-deps | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| # see https://github.com/oxidecomputer/omicron/issues/4461 | |
| # (by default the action picks a merge commit with the target branch | |
| # rather than the actual PR tip) | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| # `test_apis_up_to_date` needs a full history for the gitstubs | |
| fetch-depth: 0 | |
| - name: Build | |
| run: cargo build --verbose | |
| - name: Build mock-only server | |
| run: cargo build -p propolis-mock-server --verbose | |
| - name: Test Libraries | |
| run: cargo test --lib --verbose | |
| - name: Test everything | |
| run: cargo test --locked | |
| # Build and test propolis-the-library on its own; `cargo test --lib` as used | |
| # above builds the entire workspace, meaning propolis-server default features | |
| # are used to build and run propolis-lib tests. Instead, this check uses | |
| # `cargo build -p propolis` to only operate with that one crate. | |
| build-and-test-propolis-lib: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Build | |
| run: cargo build -p propolis --verbose | |
| - name: Test Propolis-lib | |
| run: cargo test -p propolis --verbose |