Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add manually run workflow to exhaustively test all LLVM versions expected to work #855

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/llvm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Exhaustive LLVM Build

on:
workflow_dispatch:

permissions:
contents: read

jobs:
doit:
name: 'Build & Test (${{matrix.version}})'
strategy:
fail-fast: false
matrix:
version: ['10.0.1', '11.1.0']
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But wait, if we expect 7 through 11 to work why is this new workflow only testing 10 and 11? ah yes, tune in soon for the next PR...

runs-on: ["self-hosted", "enf-x86-beefy"]
container: ubuntu:jammy
steps:
- name: Install packages
run: |
apt-get update && apt-get -y upgrade
apt-get install -y build-essential cmake git libcurl4-openssl-dev libgmp-dev ninja-build python3 zlib1g-dev
- name: Clone LLVM
run: git clone -b llvmorg-${{matrix.version}} --single-branch --recursive https://github.com/llvm/llvm-project
- name: Build LLVM
run: |
cmake -S llvm-project/llvm -B llvm-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=host -DLLVM_BUILD_TOOLS=Off \
-DLLVM_INCLUDE_BENCHMARKS=Off -DLLVM_INCLUDE_EXAMPLES=Off -DLLVM_BUILD_TESTS=Off \
-DLLVM_ENABLE_RTTI=On -DLLVM_ENABLE_TERMINFO=Off -DCMAKE_INSTALL_PREFIX=/usr
cmake --build llvm-build -t install
rm -rf llvm-*
- uses: actions/checkout@v4
with:
submodules: recursive
path: src
- name: Build spring
run: |
cmake -S src -B build -DCMAKE_BUILD_TYPE=Release -GNinja
cmake --build build
- name: Test spring
run: ctest --test-dir build -j $(nproc) --output-on-failure -LE "(nonparallelizable_tests|long_running_tests)" -E eosvmoc_limits_unit_test_eos-vm-oc --timeout 480
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The eosvmoc_limits_unit_test is very sensitive to exact code generated since its pass criteria was empirically derived from a single LLVM version with a threshold of 1 byte. Need to think on how to improve this test; disable in here for now.