Skip to content

docker-prep-mpi-ubuntu-2204 performed by @AdityaAtulTewari #2

docker-prep-mpi-ubuntu-2204 performed by @AdityaAtulTewari

docker-prep-mpi-ubuntu-2204 performed by @AdityaAtulTewari #2

Workflow file for this run

# SPDX-License-Identifier: MIT
# Copyright (c) 2023. University of Texas at Austin. All rights reserved.
name: Docker / Ubuntu 22.04 / PREP / gasnet-mpi-par
run-name: docker-prep-mpi-ubuntu-2204 performed by @${{ github.triggering_actor }}
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
prep-smp-ubuntu-2204-docker:
name: gcc / ${{ matrix.build-type }} / ${{ matrix.sanitizer-type }}
runs-on: self-hosted
permissions:
contents: read
packages: write
env:
IMAGE_NAME: pando
CONTAINER_SRC_DIR: "/pando"
CONTAINER_BUILD_DIR: "/pando/dockerbuild"
CONTAINER_WORK_DIR: "/pando"
INTERACTIVE: ""
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
build-type: ['Release', 'RelWithDebInfo']
sanitizer-type: ['nosan', 'san']
exclude:
- build-type: 'RelWithDebInfo'
sanitizer-type: 'nosan'
- build-type: 'Release'
sanitizer-type: 'san'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: 'true'
submodules: recursive
token: ${{ secrets.CI_PAT }}
- name: Set up environment variables
timeout-minutes: 1
run: |
echo "UNAME=$(whoami)" >> $GITHUB_ENV
echo "UID=$(id -u)" >> $GITHUB_ENV
echo "GID=$(id -g)" >> $GITHUB_ENV
echo "SRC_DIR=$(pwd)" >> $GITHUB_ENV
echo "PANDO_TEST_DISCOVERY_TIMEOUT=600" >> $GITHUB_ENV
echo "IMAGE_VERSION=$(git log --pretty="%h" -1 Dockerfile.dev)" >> $GITHUB_ENV
if [ ${{ matrix.sanitizer-type }} == 'san' ]; then
echo "PANDO_BUILD_DOCS=OFF" >> $GITHUB_ENV
echo "PANDO_CONTAINER_ENV=-e=PANDO_PREP_L1SP_HART=32768 -ePANDO_PREP_MAIN_NODE=8589934592 -e=PANDO_EXTRA_CXX_FLAGS='\"-fsanitize=address -fsanitize=undefined\"'" >> $GITHUB_ENV
fi
cat $GITHUB_ENV
- name: Configure
timeout-minutes: 10
run: |
CONTAINER_CMD="make setup-ci" \
CONTAINER_OPTS="-e=BUILD_TYPE=${{ matrix.build-type }}" \
IMAGE_NAME="${{ env.IMAGE_NAME }}" \
VERSION="${{ env.IMAGE_VERSION }}" \
make docker
- name: Build
timeout-minutes: 15
run: |
CONTAINER_CMD="setarch `uname -m` -R bash -c '. ~/.profile && make -j8 || make || make'" \
IMAGE_NAME="${{ env.IMAGE_NAME }}" \
VERSION="${{ env.IMAGE_VERSION }}" \
CONTAINER_WORKDIR="${{ env.CONTAINER_BUILD_DIR }}" \
make docker
- name: Run Smoke Test
timeout-minutes: 10
env:
PANDO_PREP_LOG_LEVEL: warning
run: |
mkdir -p data
CONTAINER_CMD="setarch `uname -m` -R bash -c 'export HOST_THREADS=8 && . ~/.profile && scripts/run.sh'" \
IMAGE_NAME="${{ env.IMAGE_NAME }}" \
VERSION="${{ env.IMAGE_VERSION }}" \
make docker
- name: Run Tests
timeout-minutes: 30
env:
PANDO_PREP_LOG_LEVEL: warning
run: |
CONTAINER_CMD="setarch `uname -m` -R make run-tests" \
IMAGE_NAME="${{ env.IMAGE_NAME }}" \
VERSION="${{ env.IMAGE_VERSION }}" \
make docker