Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

test runs on #552

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,11 @@ jobs:
test-l0-docker:
name: Sanity test (Gtests)
needs: build-l0-docker
uses: ./.github/workflows/test-l0-docker.yml
uses: ./.github/workflows/test-docker.yml
with:
name: l0
reset-cache: ${{ !!inputs.reset-cache }}
runner: intel-ai.hdk.l0

windows-build:
name: Build
Expand Down
38 changes: 29 additions & 9 deletions .github/workflows/test-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,20 @@ on:
reset-cache:
type: boolean
default: false
runner:
type: string
default: docker

jobs:
build:
name: Test (Linux - Docker - ${{ inputs.name }})
runs-on: [self-hosted, linux, docker]
runs-on: [self-hosted, linux, ${{ inputs.runner }}]
steps:
- name: Clean
run: |
docker stop hdk-build.${{ inputs.name }} || true
docker rm hdk-build.${{ inputs.name }} || true
rm -rf _work/*
docker stop hdk-build.${{ inputs.name }} || true
docker rm hdk-build.${{ inputs.name }} || true
rm -rf /build-runner/_work/*

- name: Set env context
run: |
Expand All @@ -34,18 +37,28 @@ jobs:
with:
name: ${{ env.RUN_STAMP }}-${{ inputs.build-name }}

- name: Unpack build files
- name: Unpack build files, create Dockerfile
run: |
tar -zxf build.tgz

- name: Build docker image
run: |
cat docker/Dockerfile docker/Dockerfile.${{ inputs.name }} >Dockerfile
docker build . ${{ inputs.reset-cache && '--no-cache ' || '' }}--tag hdk-build.${{ inputs.name }}

- name: Start the container
if: inputs.name != 'l0'
run: |
set -vx
docker build . ${{ inputs.reset-cache && '--no-cache ' || '' }}--tag hdk-build.${{ inputs.name }}
docker run -id --name hdk-build.${{ inputs.name }} --network host --device /dev/nvidia-modeset:/dev/nvidia-modeset --device /dev/nvidia-uvm-tools:/dev/nvidia-uvm-tools --device /dev/nvidia-uvm:/dev/nvidia-uvm --device /dev/nvidia0:/dev/nvidia0 --device /dev/nvidiactl:/dev/nvidiactl hdk-build.${{ inputs.name }}:latest

- name: Start L0 container
if: inputs.name == 'l0'
run: |
set -vx
getent group render | awk -F : '{ print "RUN groupadd -g "$3" render && usermod -a -G render ghrunner" }' >>Dockerfile
docker build . ${{ inputs.reset-cache && '--no-cache' || '' }}--tag hdk-build.${{ inputs.name }}
docker run -id --name hdk-build.${{ inputs.name }} --network host --device /dev/dri:/dev/dri hdk-build.${{ inputs.name }}:latest

- name: Copy files into the container
run: |
docker exec hdk-build.${{ inputs.name }} mkdir -p /_work/
docker cp build.tgz hdk-build.${{ inputs.name }}:/_work/
docker exec hdk-build.${{ inputs.name }} chown -R ghrunner:ghrunner /_work/
Expand All @@ -62,7 +75,14 @@ jobs:
run: |
echo FIXME docker exec -u ghrunner hdk-build.${{ inputs.name }} bash -c 'cd /_work/omniscidb/build/Tests && ./ArrowBasedExecuteTest --use-rel-alg-cache=cache.txt'

- name: L0 Sanity test
if: inputs.name == 'l0'
run: |
docker exec -u ghrunner hdk-build.${{ inputs.name }} dpkg -l
docker exec -u ghrunner hdk-build.${{ inputs.name }} bash /_work/omniscidb/scripts/conda/intel-gpu-enabling-test.sh

- name: Stop the container
if: always()
run: docker stop hdk-build.${{ inputs.name }} || true


70 changes: 0 additions & 70 deletions .github/workflows/test-l0-docker.yml

This file was deleted.