Skip to content

Commit

Permalink
Merge pull request #104 from openSUSE/queue
Browse files Browse the repository at this point in the history
multipath-tools 0.11.0
  • Loading branch information
cvaroqui authored Jan 23, 2025
2 parents ee3a701 + e6c8428 commit de16cf8
Show file tree
Hide file tree
Showing 45 changed files with 1,443 additions and 710 deletions.
5 changes: 5 additions & 0 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ DIO
directio
disablequeueing
dmevent
dmi
dmmp
dmraid
dmsetup
Expand Down Expand Up @@ -183,6 +184,7 @@ rtprio
sas
sbp
scsi
SCST
sda
sdc
setmarginal
Expand All @@ -207,6 +209,7 @@ switchgroup
sys
sysfs
sysinit
systemd
tcp
terabytes
SYSDIR
Expand Down Expand Up @@ -237,12 +240,14 @@ usr
uuid
valgrind
varoqui
versioning
Vess
vgr
VNX
vpd
VSN
wakka
watchdogsec
weightedpath
wholedisk
Wilck
Expand Down
89 changes: 89 additions & 0 deletions .github/workflows/abi-stable.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: check-abi for stable branch
on:
push:
branches:
- 'stable-*'
paths:
- '.github/workflows/abi-stable.yaml'
- '**.h'
- '**.c'
- '**.version'
pull_request:
branches:
- 'stable-*'
workflow_dispatch:

jobs:
reference-abi:
runs-on: ubuntu-20.04
steps:
- name: get parent tag
run: >
echo ${{ github.ref }} |
sed -E 's,refs/heads/stable-([0-9]\.[0-9]*)\.y,PARENT_TAG=\1.0,' >> $GITHUB_ENV
- name: assert parent tag
run: /bin/false
if: ${{ env.PARENT_TAG == '' }}
- name: update
run: sudo apt-get update
- name: dependencies
run: >
sudo apt-get install --yes gcc
gcc make pkg-config abigail-tools
libdevmapper-dev libreadline-dev libaio-dev libsystemd-dev
libudev-dev libjson-c-dev liburcu-dev libcmocka-dev libedit-dev
- name: checkout ${{ env.PARENT_TAG }}
uses: actions/checkout@v4
with:
ref: ${{ env.PARENT_TAG }}
- name: build ABI for ${{ env.PARENT_TAG }}
run: make -j$(grep -c ^processor /proc/cpuinfo) -Orecurse abi
- name: save ABI
uses: actions/upload-artifact@v4
with:
name: multipath-abi-${{ env.PARENT_TAG }}
path: abi

check-abi:
runs-on: ubuntu-20.04
needs: reference-abi
steps:
- name: get parent tag
run: >
echo ${{ github.ref }} |
sed -E 's,refs/heads/stable-([0-9]\.[0-9]*)\.y,PARENT_TAG=\1.0,' >> $GITHUB_ENV
- name: assert parent tag
run: /bin/false
if: ${{ env.PARENT_TAG == '' }}
- name: checkout ${{ env.PARENT_TAG }}
uses: actions/checkout@v4
with:
ref: ${{ env.PARENT_TAG }}
- name: download ABI for ${{ env.PARENT_TAG }}
id: download_abi
uses: actions/download-artifact@v4
with:
name: multipath-abi-${{ env.PARENT_TAG }}
path: reference-abi
- name: update
run: sudo apt-get update
if: steps.download_abi.outcome != 'success'
- name: dependencies
run: >
sudo apt-get install --yes gcc
gcc make pkg-config abigail-tools
libdevmapper-dev libreadline-dev libaio-dev libsystemd-dev
libudev-dev libjson-c-dev liburcu-dev libcmocka-dev libedit-dev
- name: check ABI of ${{ github.ref }} against ${{ env.PARENT_TAG }}
id: check_abi
run: make -j$(grep -c ^processor /proc/cpuinfo) -Orecurse abi-test
continue-on-error: true
- name: save differences
if: ${{ steps.check_abi.outcome != 'success' }}
uses: actions/upload-artifact@v4
with:
name: abi-test
path: abi-test
- name: fail
run: /bin/false
if: steps.check_abi.outcome != 'success'
10 changes: 6 additions & 4 deletions .github/workflows/abi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
if: ${{ env.ABI_BRANCH == '' }}
run: echo "ABI_BRANCH=master" >> $GITHUB_ENV
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: get reference ABI
id: reference
continue-on-error: true
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v6
with:
workflow: abi.yaml
branch: ${{ env.ABI_BRANCH }}
Expand All @@ -45,21 +45,23 @@ jobs:
- name: create ABI
run: make -Orecurse -j$(grep -c ^processor /proc/cpuinfo) abi.tar.gz
- name: save ABI
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: abi
path: abi
overwrite: true
- name: compare ABI against reference
id: compare
continue-on-error: true
if: ${{ steps.reference.outcome == 'success' }}
run: make abi-test
- name: save differences
if: ${{ steps.compare.outcome == 'failure' }}
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: abi-test
path: abi-test
overwrite: true

- name: fail
# MUST use >- here, otherwise the condition always evaluates to true
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build-and-unittest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ on:
- master
- queue
- tip
- 'stable-*'
pull_request:
branches:
- master
- queue
- 'stable-*'
jobs:
jammy:
runs-on: ubuntu-22.04
Expand All @@ -18,7 +20,7 @@ jobs:
rl: ['', 'libreadline', 'libedit']
cc: [ gcc, clang ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: update
run: sudo apt-get update
- name: dependencies
Expand Down Expand Up @@ -73,7 +75,7 @@ jobs:
rl: ['', 'libreadline', 'libedit']
cc: [ gcc, clang ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: mpath
run: sudo modprobe dm_multipath
- name: brd
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: dependencies
run: >
sudo apt-get install --yes
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/foreign.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
- master
- queue
- tip
- 'stable-*'
paths:
- '.github/workflows/foreign.yaml'
- '**.h'
Expand All @@ -15,6 +16,7 @@ on:
branches:
- master
- queue
- 'stable-*'
paths:
- '.github/workflows/foreign.yaml'
- '**.h'
Expand All @@ -34,16 +36,15 @@ jobs:
container: ghcr.io/mwilck/multipath-cross-debian_cross-${{ matrix.os }}-${{ matrix.arch }}
steps:
- name: checkout
uses: actions/checkout@v1
uses: actions/checkout@v4
- name: build
run: make -j8 -Orecurse test-progs
- name: create binary archive
run: make test-progs.tar
run: make -j -Orecurse test-progs.tar
- name: upload binary archive
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: cross-${{ matrix.os }}-${{ matrix.arch }}
path: test-progs.tar
overwrite: true

test:
runs-on: ubuntu-22.04
Expand All @@ -61,11 +62,11 @@ jobs:
run: echo CONTAINER_ARCH="arm/v7" >> $GITHUB_ENV
if: ${{ matrix.arch == 'armhf' }}
- name: download binary archive
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: cross-${{ matrix.os }}-${{ matrix.arch }}
- name: unpack binary archive
run: tar xfv cross-${{ matrix.os }}-${{ matrix.arch }}/test-progs.tar
run: tar xfv test-progs.tar
- name: enable foreign arch
uses: dbhi/qus/action@main
- name: run tests
Expand Down Expand Up @@ -100,11 +101,11 @@ jobs:
run: echo CONTAINER_ARCH="arm/v7" >> $GITHUB_ENV
if: ${{ matrix.arch == 'armhf' }}
- name: download binary archive
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: cross-${{ matrix.os }}-${{ matrix.arch }}
- name: unpack binary archive
run: tar xfv cross-${{ matrix.os }}-${{ matrix.arch }}/test-progs.tar
run: tar xfv test-progs.tar
- name: enable foreign arch
uses: dbhi/qus/action@main
- name: run tests
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/multiarch-stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
- master
- queue
- tip
- 'stable-*'
paths:
- '.github/workflows/multiarch-stable.yaml'
- '**.h'
Expand All @@ -15,6 +16,7 @@ on:
branches:
- master
- queue
- 'stable-*'
paths:
- '.github/workflows/multiarch-stable.yaml'
- '**.h'
Expand Down Expand Up @@ -42,7 +44,7 @@ jobs:
arch: ppc64le
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: enable foreign arch
uses: dbhi/qus/action@main
- name: compile and run unit tests
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/multiarch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
- master
- queue
- tip
- 'stable-*'
paths:
- '.github/workflows/multiarch.yaml'
- '**.h'
Expand All @@ -15,6 +16,7 @@ on:
branches:
- master
- queue
- 'stable-*'
paths:
- '.github/workflows/multiarch.yaml'
- '**.h'
Expand Down Expand Up @@ -45,7 +47,7 @@ jobs:
arch: arm/v7
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: enable foreign arch
uses: dbhi/qus/action@main
- name: compile and run unit tests
Expand Down
Loading

0 comments on commit de16cf8

Please sign in to comment.