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

Create test-runner.yaml #71

Merged
merged 4 commits into from
Sep 25, 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
101 changes: 101 additions & 0 deletions .github/workflows/test-runner.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: Check runner

on:
workflow_dispatch:

jobs:

check-runners-host:
timeout-minutes: 10
strategy:
matrix:
machine: [ ubuntu-20.04, ubuntu-22.04, e75, e150, e300, n150, n300 ]

name: Check runner
runs-on: ${{ matrix.machine }}

steps:
- uses: actions/checkout@v4

- name: Print machine info
run: |
# Print machine name
echo "Machine Name: $(hostname)"

# Print OS information
echo "Operating System: $(lsb_release -d | cut -f2-)"
echo "Kernel Version: $(uname -r)"
echo "Architecture: $(uname -m)"

# Print current user
echo "Current User: $(whoami)"

# Print CPU information
echo "CPU Information:"
lscpu | grep 'Model name'
lscpu | grep 'Architecture'

# Print Memory information
echo "Memory Information:"
free -h

# Print Disk usage
echo "Disk Usage:"
df -h

# Print usage of landing folder
echo "Show file usage"
du -h --max-depth=1 | sort -rh

check-runners-docker:
timeout-minutes: 10
strategy:
matrix:
machine: [ ubuntu-20.04, ubuntu-22.04, e75, e150, e300, n150, n300 ]
image: [ tt-umd-ci-ubuntu-22.04, tt-umd-ci-ubuntu-20.04 ]

name: Check runner docker
needs: check-runners-host
runs-on: ${{ matrix.machine }}

container:
image: ghcr.io/${{ github.repository }}/${{ matrix.image }}:latest
options: --user root
volumes:
- /dev/hugepages:/dev/hugepages
- /dev/hugepages-1G:/dev/hugepages-1G

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Print machine info
run: |
# Print machine name
echo "Machine Name: $(hostname)"

# Print OS information
echo "Operating System: $(lsb_release -d | cut -f2-)"
echo "Kernel Version: $(uname -r)"
echo "Architecture: $(uname -m)"

# Print current user
echo "Current User: $(whoami)"

# Print CPU information
echo "CPU Information:"
lscpu | grep 'Model name'
lscpu | grep 'Architecture'

# Print Memory information
echo "Memory Information:"
free -h

# Print Disk usage
echo "Disk Usage:"
df -h

# Print usage of landing folder
echo "Show file usage"
du -h --max-depth=1 | sort -rh