Browse Source
Add OpenSuse and Arch Linux to limited tests. Only run the full tests against the latest stable Fedora version to reduce the workload. Also remove the `hung_task_panic=1` on the kernel command line, as qemu tends to be really slow in non-kvm mode.master


22 changed files with 112 additions and 113 deletions
@ -1,56 +0,0 @@
@@ -1,56 +0,0 @@
|
||||
## The test container is created with https://github.com/dracutdevs/fedora-container |
||||
|
||||
name: Fedora |
||||
|
||||
on: |
||||
pull_request: |
||||
branches: [ master ] |
||||
|
||||
jobs: |
||||
test: |
||||
runs-on: ubuntu-latest |
||||
timeout-minutes: 45 |
||||
concurrency: |
||||
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.fedora }}-${{ matrix.test }} |
||||
cancel-in-progress: true |
||||
strategy: |
||||
matrix: |
||||
fedora: [ |
||||
"33", |
||||
"34", |
||||
"latest" |
||||
] |
||||
test: [ |
||||
"01", |
||||
"02", |
||||
"03", |
||||
"04", |
||||
"10", |
||||
"11", |
||||
"12", |
||||
"13", |
||||
"14", |
||||
"15", |
||||
"17", |
||||
"20", |
||||
"21", |
||||
"30", |
||||
"31", |
||||
"35", |
||||
"36", |
||||
"40", |
||||
"41", |
||||
"98", |
||||
] |
||||
fail-fast: false |
||||
container: |
||||
image: quay.io/haraldh/dracut-fedora:${{ matrix.fedora }} |
||||
options: "--privileged -v /dev/kvm:/dev/kvm" |
||||
steps: |
||||
- name: "Checkout Repository" |
||||
uses: actions/checkout@v2 |
||||
with: |
||||
fetch-depth: 0 |
||||
|
||||
- name: "Fedora-${{ matrix.fedora }} TEST-${{ matrix.test }}" |
||||
run: ./tools/fedora-test-github.sh "TEST-${{ matrix.test }}" ${{ matrix.test }} |
@ -0,0 +1,81 @@
@@ -0,0 +1,81 @@
|
||||
name: Integration Test |
||||
|
||||
on: |
||||
pull_request: |
||||
branches: [ master ] |
||||
|
||||
jobs: |
||||
basic: |
||||
runs-on: ubuntu-latest |
||||
timeout-minutes: 45 |
||||
concurrency: |
||||
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.container }}-${{ matrix.test }} |
||||
cancel-in-progress: true |
||||
strategy: |
||||
matrix: |
||||
container: [ |
||||
"fedora:33", |
||||
"fedora:rawhide", |
||||
"opensuse:latest", |
||||
"arch:latest", |
||||
] |
||||
test: [ |
||||
"04", |
||||
] |
||||
fail-fast: false |
||||
container: |
||||
image: ghcr.io/dracutdevs/${{ matrix.container }} |
||||
options: "--privileged -v /dev:/dev" |
||||
steps: |
||||
- name: "Checkout Repository" |
||||
uses: actions/checkout@v2 |
||||
with: |
||||
fetch-depth: 0 |
||||
|
||||
- name: "${{ matrix.container }} TEST-${{ matrix.test }}" |
||||
run: ./tools/test-github.sh "TEST-${{ matrix.test }}" ${{ matrix.test }} |
||||
test: |
||||
runs-on: ubuntu-latest |
||||
timeout-minutes: 45 |
||||
concurrency: |
||||
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.container }}-${{ matrix.test }} |
||||
cancel-in-progress: true |
||||
strategy: |
||||
matrix: |
||||
container: [ |
||||
"fedora:latest", |
||||
] |
||||
test: [ |
||||
"01", |
||||
"02", |
||||
"03", |
||||
"04", |
||||
"10", |
||||
"11", |
||||
"12", |
||||
"13", |
||||
"14", |
||||
"15", |
||||
"17", |
||||
"20", |
||||
"21", |
||||
"30", |
||||
"31", |
||||
"35", |
||||
"36", |
||||
"40", |
||||
"41", |
||||
"98", |
||||
] |
||||
fail-fast: false |
||||
container: |
||||
image: ghcr.io/dracutdevs/${{ matrix.container }} |
||||
options: "--privileged -v /dev:/dev" |
||||
steps: |
||||
- name: "Checkout Repository" |
||||
uses: actions/checkout@v2 |
||||
with: |
||||
fetch-depth: 0 |
||||
|
||||
- name: "${{ matrix.container }} TEST-${{ matrix.test }}" |
||||
run: ./tools/test-github.sh "TEST-${{ matrix.test }}" ${{ matrix.test }} |
@ -1,30 +0,0 @@
@@ -1,30 +0,0 @@
|
||||
#!/bin/bash |
||||
|
||||
set -ex |
||||
|
||||
[[ -d ${0%/*} ]] && cd "${0%/*}"/../ |
||||
|
||||
RUN_ID="$1" |
||||
TESTS=$2 |
||||
|
||||
./configure |
||||
|
||||
NCPU=$(getconf _NPROCESSORS_ONLN) |
||||
|
||||
if ! [[ $TESTS ]]; then |
||||
make -j"$NCPU" all syncheck rpm logtee |
||||
else |
||||
[[ $TESTS == "99" ]] && make_docs=yes || make_docs=no |
||||
make -j"$NCPU" enable_documentation=$make_docs all logtee |
||||
|
||||
cd test |
||||
|
||||
time sudo LOGTEE_TIMEOUT_MS=300000 make \ |
||||
enable_documentation=$make_docs \ |
||||
KVERSION="$(rpm -qa kernel --qf '%{VERSION}-%{RELEASE}.%{ARCH}\n' | sort -rn | head -1)" \ |
||||
DRACUT_NO_XATTR=1 \ |
||||
TEST_RUN_ID="$RUN_ID" \ |
||||
${TESTS:+TESTS="$TESTS"} \ |
||||
-k V=2 \ |
||||
check |
||||
fi |
Loading…
Reference in new issue