Skip to content

Commit

Permalink
Nightly rebase and test
Browse files Browse the repository at this point in the history
  • Loading branch information
srkreddy1238 committed Aug 8, 2024
1 parent 5b61b77 commit f09a0aa
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 17 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/adreno_nightly_mainline-rebase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

# Checkout mainline commit on local repo and run tests.
name: Adreno Rebase Mainline And Test

on:
schedule:
# 6:30 AM IST
- cron: "0 1 * * *"
workflow_dispatch:

concurrency:
group: update-mainline-and-test
cancel-in-progress: true

jobs:
RebaseMainline:
if: github.repository == 'gpgpu/apache-tvm'
runs-on: blr-ubuntu-tvm01
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
fetch-depth: 0
- name: Checkout Mainline
run: |
if ! git remote -v | grep ^mainline ; then git remote add mainline git@github.com:apache/tvm.git ; fi
git fetch mainline
- name: Checkout GPGPU
run: |
if ! git remote -v | grep ^gpgpu ; then git remote add gpgpu git@github.qualcomm.com:gpgpu/apache-tvm.git ; fi
git fetch gpgpu
- name: Rebase with Mainline
run: |
git checkout -b rebase-main gpgpu/main
git rebase mainline/main
git submodule update
echo "TVM Commit ID:" `git log --format="%H" -n 1`
for ii in `ls 3rdparty/` ; do cd 3rdparty/$ii; echo "$ii:" `git log --format="%H" -n 1`; cd - > /dev/null 2>&1 ; done
- name: Run Lint
shell: bash -l {0}
run: |
SCCACHE_SERVER_PORT=8767 ./tests/scripts/ci.py lint -d tvm.ci_lint
- name: Build and run tests
shell: bash -l {0}
run: |
git fetch gpgpu
git checkout gpgpu/adreno_ci -- pytest_deselect_ids.txt
git restore --staged pytest_deselect_ids.txt
SCCACHE_SERVER_PORT=8767 ADRENO_OPENCL="/usr/local/workspace/CLML/clml-sdk-3.0" ANDROID_SERIAL=`cat /etc/tvm-ci-device` python ./tests/scripts/ci.py adreno -d tvm.ci_adreno --test
- name: Commit Stable Rebase Version
run: |
git push -u gpgpu rebase-main --force
34 changes: 17 additions & 17 deletions .github/workflows/adreno_nightly_mainline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,39 +16,39 @@
# under the License.

# Checkout mainline commit on local repo and run tests.
name: Adreno update mainline and test
name: Adreno Mainline Test

on:
schedule:
# 6:30 AM IST
- cron: "0 1 * * *"
# 2:30 AM IST
- cron: "0 20 * * *"
workflow_dispatch:

concurrency:
group: update-mainline-and-test
group: mainline-test
cancel-in-progress: true

jobs:
update-mainline-and-test:
Mainline:
if: github.repository == 'gpgpu/apache-tvm'
runs-on: blr-ubuntu-tvm01
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
fetch-depth: 0
- name: Checkout Mainline
run: |
if ! git remote -v | grep ^mainline ; then git remote add mainline git@github.com:apache/tvm.git ; fi
git fetch mainline
- name: Checkout GPGPU
- name: Rebase with Mainline
run: |
if ! git remote -v | grep ^gpgpu ; then git remote add gpgpu git@github.qualcomm.com:gpgpu/apache-tvm.git ; fi
git fetch gpgpu
- name: Update Main Branch
run: |
git checkout -b mainline-main gpgpu/mainline-main
git reset --hard mainline/main
git push --force gpgpu
- name: Update Unity Branch
git checkout -b mainline-main mainline/main
git submodule update
- name: Build and run tests
shell: bash -l {0}
run: |
git checkout -b mainline-unity gpgpu/mainline-unity
git reset --hard mainline/unity
git push --force gpgpu
git fetch gpgpu
git checkout gpgpu/adreno_ci -- pytest_deselect_ids.txt
git restore --staged pytest_deselect_ids.txt
SCCACHE_SERVER_PORT=8767 ADRENO_OPENCL="/usr/local/workspace/CLML/clml-sdk-3.0" ANDROID_SERIAL=`cat /etc/tvm-ci-device` python ./tests/scripts/ci.py adreno -d tvm.ci_adreno --test

0 comments on commit f09a0aa

Please sign in to comment.