diff --git a/.github/workflows/presubmit.yml b/.github/workflows/presubmit.yml index df122488..0901bb69 100644 --- a/.github/workflows/presubmit.yml +++ b/.github/workflows/presubmit.yml @@ -19,47 +19,43 @@ jobs: needs: pre_job if: ${{ needs.pre_job.outputs.should_skip != 'true' }} name: Build and cache Babeltrace2 - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/cache@v4 id: babeltrace2 env: cache-name: cache-babeltrace2 with: - path: ~/babeltrace2/2.0.4 + path: ~/babeltrace2/2.0.5 key: ${{ runner.os }}-build-${{ env.cache-name }} - - run: sudo apt update; sudo apt install -y gcc g++ lttng-tools liblttng-ust-dev ruby ruby-dev elfutils libelf-dev libdw-dev libprotobuf-dev protobuf-compiler - if: steps.babeltrace2.outputs.cache-hit != 'true' - - run: sudo gem install cast-to-yaml nokogiri babeltrace2 opencl_ruby_ffi metababel + - run: sudo apt update; sudo apt install -y gcc g++ lttng-tools liblttng-ust-dev ruby ruby-dev elfutils libelf-dev libdw-dev libprotobuf-dev protobuf-compiler libglib2.0-dev if: steps.babeltrace2.outputs.cache-hit != 'true' - - run: wget https://www.efficios.com/files/babeltrace/babeltrace2-2.0.4.tar.bz2 + - run: wget https://www.efficios.com/files/babeltrace/babeltrace2-2.0.5.tar.bz2 if: steps.babeltrace2.outputs.cache-hit != 'true' - - run: tar -xjvf babeltrace2-2.0.4.tar.bz2 + - run: tar -xjvf babeltrace2-2.0.5.tar.bz2 if: steps.babeltrace2.outputs.cache-hit != 'true' - run: | wget https://github.com/argonne-lcf/THAPI-spack/raw/main/packages/babeltrace2/d2d2e6cc.patch - wget https://github.com/argonne-lcf/THAPI-spack/raw/main/packages/babeltrace2/0db1832.patch patch -p1 < d2d2e6cc.patch - patch -p1 < 0db1832.patch if: steps.babeltrace2.outputs.cache-hit != 'true' - working-directory: babeltrace2-2.0.4 - - run: mkdir -p babeltrace2-2.0.4/build + working-directory: babeltrace2-2.0.5 + - run: mkdir -p babeltrace2-2.0.5/build if: steps.babeltrace2.outputs.cache-hit != 'true' - - run: ../configure --prefix=$HOME/babeltrace2/2.0.4 + - run: ../configure --prefix=$HOME/babeltrace2/2.0.5 if: steps.babeltrace2.outputs.cache-hit != 'true' - working-directory: babeltrace2-2.0.4/build + working-directory: babeltrace2-2.0.5/build - run: make -j if: steps.babeltrace2.outputs.cache-hit != 'true' - working-directory: babeltrace2-2.0.4/build + working-directory: babeltrace2-2.0.5/build - run: make -j install if: steps.babeltrace2.outputs.cache-hit != 'true' - working-directory: babeltrace2-2.0.4/build + working-directory: babeltrace2-2.0.5/build build-and-check: needs: [babeltrace2, pre_job] if: ${{ needs.pre_job.outputs.should_skip != 'true' }} - name: Build and Check ubuntu-latest - runs-on: ubuntu-latest + name: Build and Check ubuntu-24.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - uses: actions/cache@v4 @@ -67,17 +63,17 @@ jobs: env: cache-name: cache-babeltrace2 with: - path: ~/babeltrace2/2.0.4 + path: ~/babeltrace2/2.0.5 key: ${{ runner.os }}-build-${{ env.cache-name }} - - run: sudo apt update; sudo apt install -y gcc g++ lttng-tools liblttng-ust-dev ruby ruby-dev elfutils libelf-dev libdw-dev libprotobuf-dev protobuf-compiler valgrind + - run: sudo apt update; sudo apt install -y gcc g++ lttng-tools liblttng-ust-dev ruby ruby-dev elfutils libelf-dev libdw-dev libprotobuf-dev protobuf-compiler valgrind libglib2.0-dev - run: sudo gem install cast-to-yaml nokogiri babeltrace2 opencl_ruby_ffi metababel - name: Load Babeltrace2 run: | - echo "$HOME/babeltrace2/2.0.4/bin" >> $GITHUB_PATH - echo "PKG_CONFIG_PATH=$HOME/babeltrace2/2.0.4/lib/pkgconfig:$PKG_CONFIG_PATH" >> $GITHUB_ENV - echo "CPATH=$HOME/babeltrace2/2.0.4/include:$CPATH" >> $GITHUB_ENV - echo "LD_LIBRARY_PATH=$HOME/babeltrace2/2.0.4/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV - echo "LIBRARY_PATH=$HOME/babeltrace2/2.0.4/lib:$LIBRARY_PATH" >> $GITHUB_ENV + echo "$HOME/babeltrace2/2.0.5/bin" >> $GITHUB_PATH + echo "PKG_CONFIG_PATH=$HOME/babeltrace2/2.0.5/lib/pkgconfig:$PKG_CONFIG_PATH" >> $GITHUB_ENV + echo "CPATH=$HOME/babeltrace2/2.0.5/include:$CPATH" >> $GITHUB_ENV + echo "LD_LIBRARY_PATH=$HOME/babeltrace2/2.0.5/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV + echo "LIBRARY_PATH=$HOME/babeltrace2/2.0.5/lib:$LIBRARY_PATH" >> $GITHUB_ENV - run: mkdir -p build - run: ./autogen.sh - run: ../configure @@ -101,7 +97,7 @@ jobs: needs: [babeltrace2, pre_job] if: ${{ needs.pre_job.outputs.should_skip != 'true' }} name: Install with MPI daemon support - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - uses: mpi4py/setup-mpi@v1 @@ -112,17 +108,17 @@ jobs: env: cache-name: cache-babeltrace2 with: - path: ~/babeltrace2/2.0.4 + path: ~/babeltrace2/2.0.5 key: ${{ runner.os }}-build-${{ env.cache-name }} - - run: sudo apt update; sudo apt install -y gcc g++ lttng-tools liblttng-ust-dev ruby ruby-dev elfutils libelf-dev libdw-dev libprotobuf-dev protobuf-compiler + - run: sudo apt update; sudo apt install -y gcc g++ lttng-tools liblttng-ust-dev ruby ruby-dev elfutils libelf-dev libdw-dev libprotobuf-dev protobuf-compiler libglib2.0-dev - run: sudo gem install cast-to-yaml nokogiri babeltrace2 opencl_ruby_ffi metababel - name: Load Babeltrace2 run: | - echo "$HOME/babeltrace2/2.0.4/bin" >> $GITHUB_PATH - echo "PKG_CONFIG_PATH=$HOME/babeltrace2/2.0.4/lib/pkgconfig:$PKG_CONFIG_PATH" >> $GITHUB_ENV - echo "CPATH=$HOME/babeltrace2/2.0.4/include:$CPATH" >> $GITHUB_ENV - echo "LD_LIBRARY_PATH=$HOME/babeltrace2/2.0.4/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV - echo "LIBRARY_PATH=$HOME/babeltrace2/2.0.4/lib:$LIBRARY_PATH" >> $GITHUB_ENV + echo "$HOME/babeltrace2/2.0.5/bin" >> $GITHUB_PATH + echo "PKG_CONFIG_PATH=$HOME/babeltrace2/2.0.5/lib/pkgconfig:$PKG_CONFIG_PATH" >> $GITHUB_ENV + echo "CPATH=$HOME/babeltrace2/2.0.5/include:$CPATH" >> $GITHUB_ENV + echo "LD_LIBRARY_PATH=$HOME/babeltrace2/2.0.5/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV + echo "LIBRARY_PATH=$HOME/babeltrace2/2.0.5/lib:$LIBRARY_PATH" >> $GITHUB_ENV - run: mkdir -p build - run: ./autogen.sh - run: ../configure --prefix=`pwd`/ici @@ -140,7 +136,7 @@ jobs: needs: [babeltrace2, pre_job, install-with-mpi] if: ${{ needs.pre_job.outputs.should_skip != 'true' }} name: Integration ${{ matrix.bats_file }} ${{matrix.thapi_sync_daemon }} - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 env: THAPI_TEST_BIN: clinfo THAPI_BIN_DIR: ./build/ici/bin @@ -154,19 +150,19 @@ jobs: env: cache-name: cache-babeltrace2 with: - path: ~/babeltrace2/2.0.4 + path: ~/babeltrace2/2.0.5 key: ${{ runner.os }}-build-${{ env.cache-name }} - uses: actions/download-artifact@v4 with: name: thapi-bin - name: Untar THAPI run: tar -xvf thapi.tar - - run: sudo apt update; sudo apt install -y lttng-tools liblttng-ust-dev ruby ruby-dev libprotobuf-dev libpocl2 clinfo bats coreutils + - run: sudo apt update; sudo apt install -y lttng-tools liblttng-ust-dev ruby ruby-dev libprotobuf-dev libpocl2 clinfo bats coreutils libglib2.0-dev - run: sudo gem install babeltrace2 opencl_ruby_ffi - name: Load Babeltrace2 run: | - echo "$HOME/babeltrace2/2.0.4/bin" >> $GITHUB_PATH - echo "LD_LIBRARY_PATH=$HOME/babeltrace2/2.0.4/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV + echo "$HOME/babeltrace2/2.0.5/bin" >> $GITHUB_PATH + echo "LD_LIBRARY_PATH=$HOME/babeltrace2/2.0.5/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV - name: Integration test run: | bats integration_tests/ @@ -174,8 +170,8 @@ jobs: build-in-tree: needs: [babeltrace2, pre_job] if: ${{ needs.pre_job.outputs.should_skip != 'true' }} - name: Build in Tree ubuntu-latest - runs-on: ubuntu-latest + name: Build in Tree ubuntu-24.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - uses: actions/cache@v4 @@ -183,17 +179,17 @@ jobs: env: cache-name: cache-babeltrace2 with: - path: ~/babeltrace2/2.0.4 + path: ~/babeltrace2/2.0.5 key: ${{ runner.os }}-build-${{ env.cache-name }} - - run: sudo apt update; sudo apt install -y gcc g++ lttng-tools liblttng-ust-dev ruby ruby-dev elfutils libelf-dev libdw-dev libprotobuf-dev protobuf-compiler valgrind + - run: sudo apt update; sudo apt install -y gcc g++ lttng-tools liblttng-ust-dev ruby ruby-dev elfutils libelf-dev libdw-dev libprotobuf-dev protobuf-compiler valgrind libglib2.0-dev - run: sudo gem install cast-to-yaml nokogiri babeltrace2 opencl_ruby_ffi metababel - name: Load Babeltrace2 run: | - echo "$HOME/babeltrace2/2.0.4/bin" >> $GITHUB_PATH - echo "PKG_CONFIG_PATH=$HOME/babeltrace2/2.0.4/lib/pkgconfig:$PKG_CONFIG_PATH" >> $GITHUB_ENV - echo "CPATH=$HOME/babeltrace2/2.0.4/include:$CPATH" >> $GITHUB_ENV - echo "LD_LIBRARY_PATH=$HOME/babeltrace2/2.0.4/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV - echo "LIBRARY_PATH=$HOME/babeltrace2/2.0.4/lib:$LIBRARY_PATH" >> $GITHUB_ENV + echo "$HOME/babeltrace2/2.0.5/bin" >> $GITHUB_PATH + echo "PKG_CONFIG_PATH=$HOME/babeltrace2/2.0.5/lib/pkgconfig:$PKG_CONFIG_PATH" >> $GITHUB_ENV + echo "CPATH=$HOME/babeltrace2/2.0.5/include:$CPATH" >> $GITHUB_ENV + echo "LD_LIBRARY_PATH=$HOME/babeltrace2/2.0.5/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV + echo "LIBRARY_PATH=$HOME/babeltrace2/2.0.5/lib:$LIBRARY_PATH" >> $GITHUB_ENV - run: ./autogen.sh - run: ./configure - run: make -j @@ -212,8 +208,8 @@ jobs: distcheck: needs: [babeltrace2, pre_job] if: ${{ needs.pre_job.outputs.should_skip != 'true' }} - name: Distcheck ubuntu-latest - runs-on: ubuntu-latest + name: Distcheck ubuntu-24.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - uses: actions/cache@v4 @@ -221,17 +217,17 @@ jobs: env: cache-name: cache-babeltrace2 with: - path: ~/babeltrace2/2.0.4 + path: ~/babeltrace2/2.0.5 key: ${{ runner.os }}-build-${{ env.cache-name }} - - run: sudo apt update; sudo apt install -y gcc g++ lttng-tools liblttng-ust-dev ruby ruby-dev elfutils libelf-dev libdw-dev libprotobuf-dev protobuf-compiler valgrind + - run: sudo apt update; sudo apt install -y gcc g++ lttng-tools liblttng-ust-dev ruby ruby-dev elfutils libelf-dev libdw-dev libprotobuf-dev protobuf-compiler valgrind libglib2.0-dev - run: sudo gem install cast-to-yaml nokogiri babeltrace2 opencl_ruby_ffi metababel - name: Load Babeltrace2 run: | - echo "$HOME/babeltrace2/2.0.4/bin" >> $GITHUB_PATH - echo "PKG_CONFIG_PATH=$HOME/babeltrace2/2.0.4/lib/pkgconfig:$PKG_CONFIG_PATH" >> $GITHUB_ENV - echo "CPATH=$HOME/babeltrace2/2.0.4/include:$CPATH" >> $GITHUB_ENV - echo "LD_LIBRARY_PATH=$HOME/babeltrace2/2.0.4/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV - echo "LIBRARY_PATH=$HOME/babeltrace2/2.0.4/lib:$LIBRARY_PATH" >> $GITHUB_ENV + echo "$HOME/babeltrace2/2.0.5/bin" >> $GITHUB_PATH + echo "PKG_CONFIG_PATH=$HOME/babeltrace2/2.0.5/lib/pkgconfig:$PKG_CONFIG_PATH" >> $GITHUB_ENV + echo "CPATH=$HOME/babeltrace2/2.0.5/include:$CPATH" >> $GITHUB_ENV + echo "LD_LIBRARY_PATH=$HOME/babeltrace2/2.0.5/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV + echo "LIBRARY_PATH=$HOME/babeltrace2/2.0.5/lib:$LIBRARY_PATH" >> $GITHUB_ENV - run: mkdir -p build - run: ./autogen.sh - run: ../configure @@ -244,8 +240,8 @@ jobs: dist-check: needs: [babeltrace2, pre_job] if: ${{ needs.pre_job.outputs.should_skip != 'true' }} - name: Dist and Check ubuntu-latest - runs-on: ubuntu-latest + name: Dist and Check ubuntu-24.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - uses: actions/cache@v4 @@ -253,17 +249,17 @@ jobs: env: cache-name: cache-babeltrace2 with: - path: ~/babeltrace2/2.0.4 + path: ~/babeltrace2/2.0.5 key: ${{ runner.os }}-build-${{ env.cache-name }} - - run: sudo apt update; sudo apt install -y gcc g++ lttng-tools liblttng-ust-dev ruby ruby-dev elfutils libelf-dev libdw-dev libprotobuf-dev protobuf-compiler valgrind + - run: sudo apt update; sudo apt install -y gcc g++ lttng-tools liblttng-ust-dev ruby ruby-dev elfutils libelf-dev libdw-dev libprotobuf-dev protobuf-compiler valgrind libglib2.0-dev - run: sudo gem install cast-to-yaml nokogiri babeltrace2 opencl_ruby_ffi metababel - name: Load Babeltrace2 run: | - echo "$HOME/babeltrace2/2.0.4/bin" >> $GITHUB_PATH - echo "PKG_CONFIG_PATH=$HOME/babeltrace2/2.0.4/lib/pkgconfig:$PKG_CONFIG_PATH" >> $GITHUB_ENV - echo "CPATH=$HOME/babeltrace2/2.0.4/include:$CPATH" >> $GITHUB_ENV - echo "LD_LIBRARY_PATH=$HOME/babeltrace2/2.0.4/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV - echo "LIBRARY_PATH=$HOME/babeltrace2/2.0.4/lib:$LIBRARY_PATH" >> $GITHUB_ENV + echo "$HOME/babeltrace2/2.0.5/bin" >> $GITHUB_PATH + echo "PKG_CONFIG_PATH=$HOME/babeltrace2/2.0.5/lib/pkgconfig:$PKG_CONFIG_PATH" >> $GITHUB_ENV + echo "CPATH=$HOME/babeltrace2/2.0.5/include:$CPATH" >> $GITHUB_ENV + echo "LD_LIBRARY_PATH=$HOME/babeltrace2/2.0.5/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV + echo "LIBRARY_PATH=$HOME/babeltrace2/2.0.5/lib:$LIBRARY_PATH" >> $GITHUB_ENV - run: mkdir -p build - run: ./autogen.sh - run: ../configure