From 6eed56787d9bd0bd8056c29bcac903e8873b975d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bojan=20Ro=C5=A1ko?= <156314064+broskoTT@users.noreply.github.com> Date: Mon, 23 Sep 2024 15:15:24 +0200 Subject: [PATCH 1/4] Create test-runner.yaml Vladimir asked me to create this test runner workflow so that we can test newly added machines for CI. --- .github/workflows/test-runner.yaml | 103 +++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 .github/workflows/test-runner.yaml diff --git a/.github/workflows/test-runner.yaml b/.github/workflows/test-runner.yaml new file mode 100644 index 00000000..319d5bc8 --- /dev/null +++ b/.github/workflows/test-runner.yaml @@ -0,0 +1,103 @@ +name: Check runner + +on: + workflow_dispatch: + pull_request: + push: + +jobs: + + check-runners-host: + timeout-minutes: 10 + strategy: + matrix: + build: [ + {runs-on: ubuntu-latest}, + {runs-on: e150}, + {runs-on: e300}, + {runs-on: e75}, + {runs-on: n150}, + {runs-on: n300}, + ] + + name: Check runner + runs-on: ${{ matrix.build.runs-on }} + + 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 + + check-runners-docker: + timeout-minutes: 10 + strategy: + matrix: + build: [ + {runs-on: ubuntu-latest}, + {runs-on: e150}, + {runs-on: e300}, + {runs-on: e75}, + {runs-on: n150}, + {runs-on: n300}, + ] + + name: Check runner docker + needs: check-runners-host + runs-on: ${{ matrix.build.runs-on }} + + container: + image: ghcr.io/tenstorrent/tt-mlir/tt-mlir-base-ubuntu-22-04:latest + options: --user root + + 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 From 33e98eee48c47dea149961016658d3567d2eaed7 Mon Sep 17 00:00:00 2001 From: Bojan Rosko Date: Tue, 24 Sep 2024 15:37:54 +0200 Subject: [PATCH 2/4] Modify it a bit, and use our tt-umd containers --- .github/workflows/test-runner.yaml | 40 ++++++++++++++---------------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/.github/workflows/test-runner.yaml b/.github/workflows/test-runner.yaml index 319d5bc8..152f7f05 100644 --- a/.github/workflows/test-runner.yaml +++ b/.github/workflows/test-runner.yaml @@ -2,8 +2,6 @@ name: Check runner on: workflow_dispatch: - pull_request: - push: jobs: @@ -11,17 +9,10 @@ jobs: timeout-minutes: 10 strategy: matrix: - build: [ - {runs-on: ubuntu-latest}, - {runs-on: e150}, - {runs-on: e300}, - {runs-on: e75}, - {runs-on: n150}, - {runs-on: n300}, - ] + machine: [ ubuntu-20.04, ubuntu-22.04, e75, e150, e300, n150, n300 ] name: Check runner - runs-on: ${{ matrix.build.runs-on }} + runs-on: ${{ matrix.machine }} steps: - uses: actions/checkout@v4 @@ -52,29 +43,32 @@ jobs: 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: - build: [ - {runs-on: ubuntu-latest}, - {runs-on: e150}, - {runs-on: e300}, - {runs-on: e75}, - {runs-on: n150}, - {runs-on: n300}, - ] + 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.build.runs-on }} + runs-on: ${{ matrix.machine }} container: - image: ghcr.io/tenstorrent/tt-mlir/tt-mlir-base-ubuntu-22-04:latest + 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: | @@ -101,3 +95,7 @@ jobs: # Print Disk usage echo "Disk Usage:" df -h + + # Print usage of landing folder + echo "Show file usage" + du -h --max-depth=1 | sort -rh From a4b2a40795da9ffb9298552381b372c04a284c78 Mon Sep 17 00:00:00 2001 From: Bojan Rosko Date: Tue, 24 Sep 2024 15:40:10 +0200 Subject: [PATCH 3/4] run on push just to test --- .github/workflows/test-runner.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-runner.yaml b/.github/workflows/test-runner.yaml index 152f7f05..1f7f09cb 100644 --- a/.github/workflows/test-runner.yaml +++ b/.github/workflows/test-runner.yaml @@ -2,6 +2,7 @@ name: Check runner on: workflow_dispatch: + push: jobs: From cc2d87ab5a0121f6cc293dacf8c99d47885144af Mon Sep 17 00:00:00 2001 From: Bojan Rosko Date: Tue, 24 Sep 2024 15:40:30 +0200 Subject: [PATCH 4/4] disable running on push --- .github/workflows/test-runner.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test-runner.yaml b/.github/workflows/test-runner.yaml index 1f7f09cb..152f7f05 100644 --- a/.github/workflows/test-runner.yaml +++ b/.github/workflows/test-runner.yaml @@ -2,7 +2,6 @@ name: Check runner on: workflow_dispatch: - push: jobs: