feat(queue): implement RED and PIE queues (#197) #940
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: Test | |
| on: | |
| push: | |
| paths-ignore: | |
| - "documents/**" | |
| - "assets/**" | |
| pull_request: | |
| types: [ready_for_review, opened, synchronize, reopened] | |
| paths-ignore: | |
| - "documents/**" | |
| - "assets/**" | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| concurrency: | |
| group: test-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test-all-features: | |
| name: cargo test with all features | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - kernel: "5.4" | |
| llvm: "14" | |
| - kernel: "5.15" | |
| llvm: "17" | |
| - kernel: "6.8" | |
| llvm: "17" | |
| - kernel: "6.12" | |
| llvm: "17" | |
| runs-on: ${{ matrix.kernel }} | |
| if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name != github.repository | |
| env: | |
| # CI only needs line numbers for panic backtraces, not full DWARF. | |
| # Overrides the `debug = true` (for cargo flamegraph) in the root Cargo.toml | |
| # to cut release build artifact size and disk writes. | |
| CARGO_PROFILE_RELEASE_DEBUG: "line-tables-only" | |
| # LLVM is preinstalled on the runners (apt: clang-N llvm-N libclang-N-dev). | |
| # Point bindgen (via libbpf-sys) at the matching preinstalled libclang. | |
| LIBCLANG_PATH: /usr/lib/llvm-${{ matrix.llvm }}/lib | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| submodules: recursive | |
| - uses: dtolnay/rust-toolchain@stable | |
| - run: sudo apt update && sudo apt install ethtool iputils-ping iproute2 iperf3 pkg-config m4 libelf-dev libpcap-dev gcc-multilib libnftnl-dev libmnl-dev autoconf automake autopoint flex bison gawk libtool -y | |
| - name: Use preinstalled LLVM ${{ matrix.llvm }} | |
| run: echo "/usr/lib/llvm-${{ matrix.llvm }}/bin" >> "$GITHUB_PATH" | |
| - name: Install nextest | |
| uses: taiki-e/install-action@nextest | |
| - run: cargo nextest run --profile ci -F http,xdp --release --workspace | |
| env: | |
| RUST_LOG: "info" | |
| CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER: "sudo -E" | |
| # For insta to disable writing new snapshot files and fail on mismatch | |
| CI: "true" | |
| - name: Test CLI | |
| run: ./ci/scripts/test_cli.sh | |
| - run: sudo ./scripts/clean_stdenv.sh -a |