Repository navigation
chore(deps): Bump dtolnay/rust-toolchain from 6d653acede28d24f02e3cd41383119e8b1b35921 to e2a55d2ffb04f378e9626c28d38b36d230d1e12f #4295
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: Functional | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| branches: [ "main" ] | |
| paths: | |
| - 'Cargo.toml' | |
| - 'Cargo.lock' | |
| - '.github/workflows/functional.yml' | |
| - 'cli/**' | |
| - 'openstack_cli/**' | |
| - 'openstack_sdk/**' | |
| - 'openstack_types/**' | |
| - 'sdk/**' | |
| - 'types/**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| jobs: | |
| functional: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| name: ["master"] | |
| openstack_version: ["master"] | |
| ubuntu_version: ["24.04"] | |
| # include: | |
| # - name: "bobcat" | |
| # openstack_version: "stable/2023.2" | |
| # ubuntu_version: "22.04" | |
| runs-on: ubuntu-${{ matrix.ubuntu_version }} | |
| name: Functional tests on OpenStack ${{ matrix.name }} | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@ccd8616d44fd3846e67624a50d5aad6d37bf2d25 # v2.22.1 | |
| with: | |
| egress-policy: audit | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libudev-dev | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Cache | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| ~/.cache/pip | |
| target/ | |
| key: ${{ runner.os }}-devstack-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-devstack- | |
| ${{ runner.os }}- | |
| - name: Deploy devstack | |
| uses: EmilienM/devstack-action@60ca1042045c0c9e3e001c64575d381654ffcba1 # v0.19 | |
| with: | |
| branch: ${{ matrix.openstack_version }} | |
| # `c-bak` (cinder-backup) is not in devstack's default service | |
| # set - without it, backup creates never get a worker to process | |
| # them and eventually hit a Cinder bug that leaves the source | |
| # volume's `status` as `None`, breaking any later attach/boot of | |
| # that volume. The functional test exercises volume backups. | |
| enabled_services: swift,c-bak | |
| log_dir: /tmp/devstack-logs | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@e2a55d2ffb04f378e9626c28d38b36d230d1e12f # stable | |
| with: | |
| toolchain: stable | |
| - name: Install cargo-nextest | |
| uses: taiki-e/install-action@9e1e5806d4a4822de933115878265be9aaa786d9 # v2.82.2 | |
| with: | |
| tool: cargo-nextest | |
| - name: Execute functional tests | |
| env: | |
| OS_CLOUD: devstack | |
| run: cargo nextest run --test functional | |
| - name: Dump service logs on failure | |
| if: failure() | |
| run: | | |
| for unit in g-api \ | |
| c-api c-sch c-vol c-bak \ | |
| n-api n-cond n-sch n-cpu; do | |
| echo "::group::journalctl -u devstack@${unit}" | |
| journalctl -u "devstack@${unit}" --no-pager || true | |
| echo "::endgroup::" | |
| done |