Skip to content

[CI/CD] Standardize workflow naming conventions (#951) #36

[CI/CD] Standardize workflow naming conventions (#951)

[CI/CD] Standardize workflow naming conventions (#951) #36

# Copyright 2025- FlagOS Contributors
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
name: AIPU3.3-Build-And-Test
on:
push:
branches: [ "triton_v3.3.x" ]
pull_request:
branches: [ "triton_v3.3.x" ]
types: [opened, synchronize, reopened, ready_for_review]
permissions:
contents: read
pull-requests: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
aipu-build-and-test:
runs-on: aipu3.3
if: ${{ github.repository == 'flagos-ai/flagtree' && github.event.pull_request.draft == false }}
steps:
- name: Setup environment
shell: bash
run: |
source ~/env.sh
env | grep -E '^(http_proxy|https_proxy|all_proxy|no_proxy)=' >> $GITHUB_ENV || true
- name: Smart Checkout
uses: flagos-ai/FlagTree/.github/actions/smart-checkout@main
with:
checkout_version: 'v6'
- name: Check if backend-relevant files changed
id: check_backend
uses: flagos-ai/FlagTree/.github/actions/check-backend-changed@main
with:
backend: aipu
- name: Cleanup FlagTree Environment
if: steps.check_backend.outputs.should_skip != 'true'
uses: flagos-ai/FlagTree/.github/actions/cleanup-flagtree-env@main
- name: FlagTree Build on AIPU
if: steps.check_backend.outputs.should_skip != 'true'
shell: bash
run: |
set -x
pip uninstall -y triton
source ~/env_setup.sh
export FLAGTREE_BACKEND=aipu
cd python
MAX_JOBS=32 python3.10 -m pip install . --no-build-isolation
- name: Clear cache if ClearCache label present
if: steps.check_backend.outputs.should_skip != 'true'
id: clear_cache
uses: flagos-ai/FlagTree/.github/actions/clear-cache-if-labeled@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
backend: aipu
- name: FlagTree Test on AIPU
if: steps.check_backend.outputs.should_skip != 'true'
shell: bash
run: |
set -x
source ~/env_setup.sh
python3.10 third_party/aipu/python/test/test_01_vector_add.py
python3.10 third_party/aipu/python/test/test_01_vector_add_shared_memory.py
python3.10 third_party/aipu/python/test/test_01_vector_add_dma.py
python3.10 third_party/aipu/python/test/test_02_fused_softmax.py
python3.10 third_party/aipu/python/test/test_02_fused_softmax_shared_memory.py
python3.10 third_party/aipu/python/test/test_02_fused_softmax_dma.py
python3.10 third_party/aipu/python/test/test_libdevice_fmod.py
python3.10 third_party/aipu/python/test/test_libdevice_fmod_shared_memory.py
python3.10 third_party/aipu/python/test/test_libdevice_fmod_dma.py
python3.10 third_party/aipu/python/test/test_libdevice_pow.py
python3.10 third_party/aipu/python/test/test_libdevice_pow_shared_memory.py
python3.10 third_party/aipu/python/test/test_libdevice_pow_dma.py
python3.10 third_party/aipu/python/test/test_codegen_dma.py
python3.10 third_party/aipu/python/test/test_01_vector_add_structured_1d.py
python3.10 third_party/aipu/python/test/test_01_vector_add_structured_1d_shared_memory.py
python3.10 third_party/aipu/python/test/test_01_vector_add_structured_1d_dma.py
python3.10 third_party/aipu/python/test/min.py
python3.10 third_party/aipu/python/test/min_shared_memory.py
#python3.10 third_party/aipu/python/test/min_dma.py
python3.10 third_party/aipu/python/test/var_mean.py
python3.10 third_party/aipu/python/test/var_mean_shared_memory.py
#python3.10 third_party/aipu/python/test/var_mean_dma.py