Recent changes (master)
The following changes since commit 7bc12310ac39f8bf694a6785d027e4cee96dbbdf:
Merge branch 'errdetails' of https://github.com/minwooim/fio (2024-08-16 08:21:20 -0600)
are available in the Git repository at:
git://git.kernel.dk/fio.git master
for you to fetch changes up to 2d416331db2735031e85c8da64ce93382796799b:
ci: install isal packages for testing (2024-08-21 20:31:46 +0000)
----------------------------------------------------------------
Vincent Fu (3):
ci: remove arm64 case for tests
ci: run tests in containers
ci: install isal packages for testing
.github/workflows/ci.yml | 32 ++++++++++++++++++++++++ ci/actions-build.sh | 14 ++++++++--- ci/actions-full-test.sh | 28 ++++++++++++++++++--- ci/actions-install.sh | 63 ++++++++++++++++++++++++++++++++++++++++++++++-- 4 files changed, 128 insertions(+), 9 deletions(-)
---
Diff of recent changes:
.github/workflows/ci.yml +32 -0
@@ -5,6 +5,38 @@ on: pull_request: jobs: + build-containers: + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + container: + - {os: 'debian', dh: 'debian', ver: 'bookworm', target_arch: 'x86_64'} + - {os: 'fedora', dh: 'fedora', ver: '40', target_arch: 'x86_64'} + - {os: 'ubuntu', dh: 'ubuntu', ver: 'noble', target_arch: 'i686'} + - {os: 'ubuntu', dh: 'ubuntu', ver: 'noble', target_arch: 'x86_64'} + + container: + image: ${{ matrix.container.dh }}:${{ matrix.container.ver }} + env: + CI_TARGET_BUILD: Linux + CI_TARGET_ARCH: ${{ matrix.container.target_arch }} + CI_TARGET_OS: ${{ matrix.container.os }} + CI_TARGET_OS_VER: ${{ matrix.container.ver }} + + steps: + - name: Checkout repo + uses: actions/checkout@v4 + - name: Install dependencies + run: ./ci/actions-install.sh + - name: Build + run: ./ci/actions-build.sh + - name: Smoke test + run: ./ci/actions-smoke-test.sh + - name: Full test + run: ./ci/actions-full-test.sh + build: runs-on: ${{ matrix.os }} strategy:
ci/actions-build.sh +11 -3
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script expects to be invoked from the base fio directory. set -eu
@@ -29,7 +29,16 @@ main() { return 1 fi ;; - */linux) + */linux | */ubuntu) + case "${CI_TARGET_ARCH}" in + "x86_64") + configure_flags+=( + "--enable-cuda" + ) + ;; + esac + ;;& + */linux | */ubuntu | */debian | */fedora) case "${CI_TARGET_ARCH}" in "i686") extra_cflags="${extra_cflags} -m32"
@@ -37,7 +46,6 @@ main() { ;; "x86_64") configure_flags+=( - "--enable-cuda" "--enable-libiscsi" "--enable-libnbd" )
ci/actions-full-test.sh +24 -4
@@ -10,11 +10,31 @@ main() { echo "Running long running tests..." export PYTHONUNBUFFERED="TRUE" - if [[ "${CI_TARGET_ARCH}" == "arm64" ]]; then - python3 t/run-fio-tests.py --skip 6 1007 1008 --debug -p 1010:"--skip 15 16 17 18 19 20" - else - python3 t/run-fio-tests.py --skip 6 1007 1008 --debug + skip=( + 6 + 1007 + 1008 + ) + args=( + --debug + ) + if [ "${GITHUB_JOB}" == "build-containers" ]; then + # io_uring is disabled in containers + # so skip the io_uring test + skip+=( + 18 + ) + # cmd priority does not work in containers + # so skip the related latency test cases + args+=( + -p + "1010:--skip 15 16 17 18 19 20 21 22" + ) + fi + + echo python3 t/run-fio-tests.py --skip "${skip[@]}" "${args[@]}" + python3 t/run-fio-tests.py --skip "${skip[@]}" "${args[@]}" make -C doc html }
ci/actions-install.sh +61 -2
110 lines not on this page · raw message