name: Patchbay Tests on: pull_request: merge_group: push: branches: - main concurrency: group: patchbay-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true env: RUST_BACKTRACE: 1 SCCACHE_CACHE_SIZE: "10G" IROH_FORCE_STAGING_RELAYS: "1" NEXTEST_VERSION: "0.9.80" # Default to read-only; jobs that need more grant it explicitly. permissions: contents: read jobs: patchbay_tests: name: Patchbay Tests timeout-minutes: 15 runs-on: [self-hosted, linux, X64] env: RUSTC_WRAPPER: "sccache" steps: - name: Enable unprivileged user namespaces run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 continue-on-error: true - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - uses: dtolnay/rust-toolchain@e2a55d2ffb04f378e9626c28d38b36d230d1e12f # v1 with: toolchain: stable - uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11 continue-on-error: true - uses: $/.github/workflows/sccache-probe - name: Install cargo-make and cargo-nextest uses: taiki-e/install-action@f7e5d7c961414b23f5b25b2da9294395d08513ad # v2.87.26 with: tool: nextest@${{ env.NEXTEST_VERSION }},cargo-make - name: Build patchbay tests run: cargo make patchbay --no-run - name: Run patchbay tests run: | set -o pipefail cargo make patchbay 2>&1 | tee "$RUNNER_TEMP/logs.txt" env: PATCHBAY_LOG: ${{ runner.debug && 'trace' || 'debug' }} RUST_LOG: ${{ runner.debug && 'trace' || 'debug' }} - name: Lockfile must not have moved # cargo make takes no --locked; assert the lockfile instead. run: git diff --exit-code Cargo.lock - name: Upload test results if: always() uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: patchbay-testdir-${{ github.sha }} path: | target/testdir-current/ ${{ runner.temp }}/logs.txt retention-days: 7 if-no-files-found: ignore