Files
iroh/.github/workflows/patchbay.yml
T
Floris Bruynooghe b8c5759d47 ci: run daily jobs earlier & run patchbay in merge queue (#4425)
## Description

This runs the daily jobs earlier because they eat into the entire
Europe morning right now. Which slows down development work a lot.

Also runs patchbay tests in the merge queue, we probably want those to
be required.

## Breaking Changes

<!-- Optional, if there are any breaking changes document them,
including how to migrate older code. -->

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## Change checklist
<!-- Remove any that are not relevant. -->
- [ ] Self-review.
- [ ] Documentation updates following the [style
guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text),
if relevant.
- [ ] Tests if relevant.
- [ ] All breaking changes documented.
- [ ] This PR was created by a human that thought critically about the
      proposed change and wrote an as clear and concise description as
      they could.
- [ ] This PR isn't slop, and is carefully crafted to do have the
      intented effect.

<!-- Message of single commit: -->
2026-07-17 09:26:42 +00:00

63 lines
1.7 KiB
YAML

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"
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@v7
- uses: dtolnay/rust-toolchain@stable
- uses: mozilla-actions/sccache-action@v0.0.10
continue-on-error: true
- uses: ./.github/workflows/sccache-probe
- name: Install cargo-make and cargo-nextest
uses: taiki-e/install-action@v2
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: Upload test results
if: always()
uses: actions/upload-artifact@v7
with:
name: patchbay-testdir-${{ github.sha }}
path: |
target/testdir-current/
${{ runner.temp }}/logs.txt
retention-days: 7
if-no-files-found: ignore