Skip to content
Draft
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
9 changes: 5 additions & 4 deletions .github/workflows/_runner-chimera.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@ jobs:
runs-on: ${{ inputs.runner }}
container:
image: ${{ inputs.docker-image }}
env:
UV_PROJECT_ENVIRONMENT: /app/.venv
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build Deeploy
shell: bash
run: pip install -e .
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Cache ccache
uses: actions/cache/restore@v4
with:
Expand All @@ -42,5 +43,5 @@ jobs:
mkdir -p /app/.ccache
export CCACHE_DIR=/app/.ccache
export CHIMERA_SDK_HOME=/app/install/chimera-sdk
pytest test_platforms.py -v -n 4 -m "chimera and ${{ inputs.pytest-marker }}"
uv run pytest test_platforms.py -v -n 4 -m "chimera and ${{ inputs.pytest-marker }}"
shell: bash
9 changes: 5 additions & 4 deletions .github/workflows/_runner-cortexm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@ jobs:
runs-on: ${{ inputs.runner }}
container:
image: ${{ inputs.docker-image }}
env:
UV_PROJECT_ENVIRONMENT: /app/.venv
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build Deeploy
shell: bash
run: pip install -e .
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Cache ccache
uses: actions/cache/restore@v4
with:
Expand All @@ -41,5 +42,5 @@ jobs:
cd DeeployTest
mkdir -p /app/.ccache
export CCACHE_DIR=/app/.ccache
pytest test_platforms.py -v -n 4 -m "cortexm and ${{ inputs.pytest-marker }}"
uv run pytest test_platforms.py -v -n 4 -m "cortexm and ${{ inputs.pytest-marker }}"
shell: bash
9 changes: 5 additions & 4 deletions .github/workflows/_runner-generic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@ jobs:
runs-on: ${{ inputs.runner }}
container:
image: ${{ inputs.docker-image }}
env:
UV_PROJECT_ENVIRONMENT: /app/.venv
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build Deeploy
shell: bash
run: pip install -e .
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Cache ccache
uses: actions/cache/restore@v4
with:
Expand All @@ -41,5 +42,5 @@ jobs:
cd DeeployTest
mkdir -p /app/.ccache
export CCACHE_DIR=/app/.ccache
pytest test_platforms.py -v -n 4 -m "generic and ${{ inputs.pytest-marker }}"
uv run pytest test_platforms.py -v -n 4 -m "generic and ${{ inputs.pytest-marker }}"
shell: bash
9 changes: 5 additions & 4 deletions .github/workflows/_runner-mempool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@ jobs:
runs-on: ${{ inputs.runner }}
container:
image: ${{ inputs.docker-image }}
env:
UV_PROJECT_ENVIRONMENT: /app/.venv
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build Deeploy
shell: bash
run: pip install -e .
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Cache ccache
uses: actions/cache/restore@v4
with:
Expand All @@ -41,5 +42,5 @@ jobs:
cd DeeployTest
mkdir -p /app/.ccache
export CCACHE_DIR=/app/.ccache
pytest test_platforms.py -v -n 4 -m "mempool and ${{ inputs.pytest-marker }}"
uv run pytest test_platforms.py -v -n 4 -m "mempool and ${{ inputs.pytest-marker }}"
shell: bash
9 changes: 5 additions & 4 deletions .github/workflows/_runner-siracusa-neureka-tiled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,19 @@ jobs:
runs-on: ${{ inputs.runner }}
container:
image: ${{ inputs.docker-image }}
env:
UV_PROJECT_ENVIRONMENT: /app/.venv
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build Deeploy
shell: bash
run: pip install -e .
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Run Test # VJUNG: Run tests with 4 parallel threads as GitHub action VM has 4 cores.
run: |
cd DeeployTest
mkdir -p /app/.ccache
export CCACHE_DIR=/app/.ccache
pytest test_platforms.py -v -n 4 -m "siracusa_neureka_tiled and ${{ inputs.pytest-marker }}"
uv run pytest test_platforms.py -v -n 4 -m "siracusa_neureka_tiled and ${{ inputs.pytest-marker }}"
shell: bash
9 changes: 5 additions & 4 deletions .github/workflows/_runner-siracusa-tiled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,17 @@ jobs:
runs-on: ${{ inputs.runner }}
container:
image: ${{ inputs.docker-image }}
env:
UV_PROJECT_ENVIRONMENT: /app/.venv
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build Deeploy
shell: bash
run: pip install -e .
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Run Test
run: |
cd DeeployTest
pytest test_platforms.py -v -m "siracusa_tiled and ${{ inputs.pytest-marker }}"
uv run pytest test_platforms.py -v -m "siracusa_tiled and ${{ inputs.pytest-marker }}"
shell: bash
9 changes: 5 additions & 4 deletions .github/workflows/_runner-siracusa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ jobs:
runs-on: ${{ inputs.runner }}
container:
image: ${{ inputs.docker-image }}
env:
UV_PROJECT_ENVIRONMENT: /app/.venv
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build Deeploy
shell: bash
run: pip install -e .
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Cache ccache
uses: actions/cache/restore@v4
with:
Expand All @@ -44,5 +45,5 @@ jobs:
export CCACHE_DIR=/app/.ccache

# Run tests using pytest markers
pytest test_platforms.py -v -n 4 -m "siracusa and ${{ inputs.pytest-marker }}"
uv run pytest test_platforms.py -v -n 4 -m "siracusa and ${{ inputs.pytest-marker }}"
shell: bash
9 changes: 5 additions & 4 deletions .github/workflows/_runner-snitch-tiled-sequential.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,19 @@ jobs:
runs-on: ${{ inputs.runner }}
container:
image: ${{ inputs.docker-image }}
env:
UV_PROJECT_ENVIRONMENT: /app/.venv
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build Deeploy
shell: bash
run: pip install -e .
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Run Test # VJUNG: Run tests with 4 parallel threads as GitHub action VM has 4 cores.
run: |
cd DeeployTest
mkdir -p /app/.ccache
export CCACHE_DIR=/app/.ccache
pytest test_platforms.py -v -n 4 -m "snitch_tiled and ${{ inputs.pytest-marker }}"
uv run pytest test_platforms.py -v -n 4 -m "snitch_tiled and ${{ inputs.pytest-marker }}"
shell: bash
9 changes: 5 additions & 4 deletions .github/workflows/_runner-snitch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@ jobs:
runs-on: ${{ inputs.runner }}
container:
image: ${{ inputs.docker-image }}
env:
UV_PROJECT_ENVIRONMENT: /app/.venv
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build Deeploy
shell: bash
run: pip install -e .
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Cache ccache
uses: actions/cache/restore@v4
with:
Expand All @@ -41,5 +42,5 @@ jobs:
cd DeeployTest
mkdir -p /app/.ccache
export CCACHE_DIR=/app/.ccache
pytest test_platforms.py -v -n 4 -m "snitch and ${{ inputs.pytest-marker }}"
uv run pytest test_platforms.py -v -n 4 -m "snitch and ${{ inputs.pytest-marker }}"
shell: bash
9 changes: 5 additions & 4 deletions .github/workflows/_runner-softhier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,20 @@ jobs:
runs-on: ${{ inputs.runner }}
container:
image: ${{ inputs.docker-image }}
env:
UV_PROJECT_ENVIRONMENT: /app/.venv
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build Deeploy
shell: bash
run: pip install -e .
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Run Test # VJUNG: Run tests with 4 parallel threads as GitHub action VM has 4 cores.
run: |
export SOFTHIER_INSTALL_DIR=/app/install/softhier
cd DeeployTest
mkdir -p /app/.ccache
export CCACHE_DIR=/app/.ccache
pytest test_platforms.py -v -n 4 -m "softhier and ${{ inputs.pytest-marker }}" --toolchain=GCC --toolchain-install-dir=$SOFTHIER_INSTALL_DIR/third_party/toolchain/install
uv run pytest test_platforms.py -v -n 4 -m "softhier and ${{ inputs.pytest-marker }}" --toolchain=GCC --toolchain-install-dir=$SOFTHIER_INSTALL_DIR/third_party/toolchain/install
shell: bash
2 changes: 2 additions & 0 deletions .github/workflows/_select-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
IMAGE="ghcr.io/pulp-platform/deeploy:${TAG_NAME}"
elif [[ "${{ github.ref_name }}" == "main" ]]; then
IMAGE="ghcr.io/pulp-platform/deeploy:main"
elif [[ "${{ github.ref_name }}" == "fischeti/uv" ]]; then
IMAGE="ghcr.io/pulp-platform/deeploy:uv"
else
IMAGE="ghcr.io/pulp-platform/deeploy:devel"
fi
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/ci-deeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,30 +34,35 @@ jobs:
runs-on: ${{ needs.select-env.outputs.runner }}
container:
image: ${{ needs.select-env.outputs.image }}
env:
UV_PROJECT_ENVIRONMENT: /app/.venv
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Build Deeploy
shell: bash
run: pip install -e .
run: uv sync --locked

deeploy-internal-tests:
needs: select-env
runs-on: ${{ needs.select-env.outputs.runner }}
container:
image: ${{ needs.select-env.outputs.image }}
env:
UV_PROJECT_ENVIRONMENT: /app/.venv
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build Deeploy
shell: bash
run: pip install -e .
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Run Internal Tests
shell: bash
run: |
cd DeeployTest
pytest -v -m deeploy_internal -n 4
uv run pytest -v -m deeploy_internal -n 4
13 changes: 3 additions & 10 deletions .github/workflows/ci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,13 @@ jobs:
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pre-commit
- name: Install uv
uses: astral-sh/setup-uv@v7

- name: Run pre-commit (all files)
run: |
# Show diffs on failure and run across the entire repository to ensure consistency
pre-commit run --show-diff-on-failure --all-files
uvx pre-commit run --show-diff-on-failure --all-files

- name: Show git status (debug)
if: ${{ always() }}
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/infra-generate-ccache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,29 @@ jobs:
runs-on: ubuntu-latest
container:
image: ${{ github.event.inputs.docker_image_deeploy || 'ghcr.io/pulp-platform/deeploy:devel' }}
env:
UV_PROJECT_ENVIRONMENT: /app/.venv
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build Deeploy
shell: bash
run: pip install -e .

- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Generate CCache
run: |
cd DeeployTest
mkdir -p /app/.ccache
export CCACHE_DIR=/app/.ccache
pytest 'test_platforms.py::test_generic_kernels[Kernels/Integer/Add/Regular]' --skipsim
pytest 'test_platforms.py::test_mempool_kernels[Kernels/Integer/Add/Regular]' --skipsim
pytest 'test_platforms.py::test_cortexm_kernels[Kernels/Integer/Add/Regular]' --skipsim
pytest 'test_platforms.py::test_snitch_kernels[Kernels/Integer/Add/Regular]' --skipsim
pytest 'test_platforms.py::test_snitch_tiled_kernels_l2_singlebuffer[Kernels/Integer/Add/Large-5000-L2-singlebuffer]' --skipsim
pytest 'test_platforms.py::test_siracusa_kernels[Kernels/Integer/Add/Regular]' --skipsim
pytest 'test_platforms.py::test_siracusa_tiled_kernels_l2_singlebuffer[Kernels/Integer/MatMul/Regular-64000-L2-singlebuffer]' --skipsim
pytest 'test_platforms.py::test_siracusa_neureka_tiled_kernels_l2_singlebuffer[Kernels/Integer/GEMM/Regular_RQPerColumn-16000-L2-singlebuffer]' --skipsim
pytest 'test_platforms.py::test_chimera_kernels[Kernels/Integer/Add/Regular]' --skipsim
uv run pytest 'test_platforms.py::test_generic_kernels[Kernels/Integer/Add/Regular]' --skipsim
uv run pytest 'test_platforms.py::test_mempool_kernels[Kernels/Integer/Add/Regular]' --skipsim
uv run pytest 'test_platforms.py::test_cortexm_kernels[Kernels/Integer/Add/Regular]' --skipsim
uv run pytest 'test_platforms.py::test_snitch_kernels[Kernels/Integer/Add/Regular]' --skipsim
uv run pytest 'test_platforms.py::test_snitch_tiled_kernels_l2_singlebuffer[Kernels/Integer/Add/Large-5000-L2-singlebuffer]' --skipsim
uv run pytest 'test_platforms.py::test_siracusa_kernels[Kernels/Integer/Add/Regular]' --skipsim
uv run pytest 'test_platforms.py::test_siracusa_tiled_kernels_l2_singlebuffer[Kernels/Integer/MatMul/Regular-64000-L2-singlebuffer]' --skipsim
uv run pytest 'test_platforms.py::test_siracusa_neureka_tiled_kernels_l2_singlebuffer[Kernels/Integer/GEMM/Regular_RQPerColumn-16000-L2-singlebuffer]' --skipsim
uv run pytest 'test_platforms.py::test_chimera_kernels[Kernels/Integer/Add/Regular]' --skipsim

- name: Clean and Upload CCache
uses: actions/cache@v4
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/infra-generate-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: astral-sh/setup-uv@v7
- name: Install dependencies
run: |
pip install .
pip install -r requirements-dev.txt
run: uv sync --group dev
- name: Sphinx build
run: |
sphinx-build docs _build
uv run sphinx-build docs _build
- name: Prepare Multipages
uses: xeratec/gh-pages-multibranch@pr/support_tags
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
Expand Down
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.11
Loading
Loading