-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
660f1f4
commit be7dbb6
Showing
39 changed files
with
670 additions
and
141 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
# Workflow for checkig the backward compatibility of UMF. | ||
# Test the latest UMF shared library with binaries compiled using the older UMF | ||
# shared library. | ||
name: Compatibility | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
tag: | ||
description: Check backward compatibility with this tag | ||
type: string | ||
default: "0.10.1" | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
ubuntu-build: | ||
# TODO add other OSes | ||
name: Ubuntu | ||
runs-on: 'ubuntu-22.04' | ||
|
||
steps: | ||
# NOTE: we need jemalloc for older version of UMF | ||
- name: Install apt packages | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y clang cmake libnuma-dev libjemalloc-dev libtbb-dev | ||
- name: Checkout "tag" UMF version | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
fetch-depth: 0 | ||
ref: refs/tags/${{inputs.tag}} | ||
path: ${{github.workspace}}/tag_version | ||
|
||
- name: Install libhwloc | ||
working-directory: ${{github.workspace}}/tag_version | ||
run: .github/scripts/install_hwloc.sh | ||
|
||
- name: Get "tag" UMF version | ||
working-directory: ${{github.workspace}}/tag_version | ||
run: | | ||
VERSION=$(git describe --tags --abbrev=0 | grep -oP '\d+\.\d+\.\d+') | ||
echo "tag version: $VERSION" | ||
- name: Configure "tag" UMF build | ||
working-directory: ${{github.workspace}}/tag_version | ||
run: > | ||
cmake | ||
-B ${{github.workspace}}/tag_version/build | ||
-DCMAKE_INSTALL_PREFIX="${{github.workspace}}/tag_version/build/install" | ||
-DCMAKE_BUILD_TYPE=Debug | ||
-DUMF_BUILD_SHARED_LIBRARY=ON | ||
-DCMAKE_C_COMPILER=gcc | ||
-DCMAKE_CXX_COMPILER=g++ | ||
-DUMF_BUILD_BENCHMARKS=ON | ||
-DUMF_BUILD_TESTS=ON | ||
-DUMF_BUILD_LEVEL_ZERO_PROVIDER=ON | ||
-DUMF_BUILD_CUDA_PROVIDER=ON | ||
-DUMF_FORMAT_CODE_STYLE=OFF | ||
-DUMF_DEVELOPER_MODE=ON | ||
-DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON | ||
-DUMF_BUILD_LIBUMF_POOL_DISJOINT=ON | ||
-DUMF_TESTS_FAIL_ON_SKIP=ON | ||
- name: Build "tag" UMF | ||
working-directory: ${{github.workspace}}/tag_version | ||
run: | | ||
cmake --build ${{github.workspace}}/tag_version/build -j $(nproc) | ||
# For UMF < 0.11 set ptrace_scope | ||
- name: Set ptrace value for IPC test | ||
if: ${{ startsWith(github.event.inputs.tag, 'v0.10.') || startsWith(github.event.inputs.tag, 'v0.9.') }} | ||
run: sudo bash -c "echo 0 > /proc/sys/kernel/yama/ptrace_scope" | ||
|
||
- name: Run "tag" UMF tests | ||
working-directory: ${{github.workspace}}/tag_version/build | ||
run: | | ||
LD_LIBRARY_PATH=${{github.workspace}}/tag_version/build/lib/ ctest --output-on-failure | ||
- name: Checkout latest UMF version | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
fetch-depth: 0 | ||
path: ${{github.workspace}}/latest_version | ||
|
||
- name: Get latest UMF version | ||
working-directory: ${{github.workspace}}/latest_version | ||
run: | | ||
VERSION=$(git describe --tags --abbrev=0 | grep -oP '\d+\.\d+\.\d+') | ||
echo "checked version: $VERSION" | ||
- name: Configure latest UMF build | ||
working-directory: ${{github.workspace}}/latest_version | ||
run: > | ||
cmake | ||
-B ${{github.workspace}}/latest_version/build | ||
-DCMAKE_INSTALL_PREFIX="${{github.workspace}}/latest_version/build/install" | ||
-DCMAKE_BUILD_TYPE=Debug | ||
-DUMF_BUILD_SHARED_LIBRARY=ON | ||
-DCMAKE_C_COMPILER=gcc | ||
-DCMAKE_CXX_COMPILER=g++ | ||
-DUMF_BUILD_BENCHMARKS=ON | ||
-DUMF_BUILD_TESTS=ON | ||
-DUMF_BUILD_LEVEL_ZERO_PROVIDER=ON | ||
-DUMF_BUILD_CUDA_PROVIDER=ON | ||
-DUMF_FORMAT_CODE_STYLE=OFF | ||
-DUMF_DEVELOPER_MODE=ON | ||
-DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON | ||
-DUMF_BUILD_LIBUMF_POOL_DISJOINT=ON | ||
-DUMF_TESTS_FAIL_ON_SKIP=ON | ||
- name: Build latest UMF | ||
working-directory: ${{github.workspace}}/latest_version | ||
run: | | ||
cmake --build ${{github.workspace}}/latest_version/build -j $(nproc) | ||
# NOTE: exclude umf-provider_coarse, umf-disjointCoarseMallocPool, | ||
# umf-jemalloc_coarse_file, umf-scalable_coarse_file as they use Coarse | ||
# Provider which is not supported for UMF > 0.10.0 | ||
- name: Run "tag" UMF tests with latest UMF libs (warnigs enabled) | ||
working-directory: ${{github.workspace}}/tag_version/build | ||
run: > | ||
UMF_LOG="level:warning;flush:debug;output:stderr;pid:no" | ||
LD_LIBRARY_PATH=${{github.workspace}}/latest_version/build/lib/ | ||
ctest --output-on-failure -E "umf-provider_coarse|umf-disjointCoarseMallocPool|umf-jemalloc_coarse_file|umf-scalable_coarse_file" |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.