Commit 5215c90d authored by Harrison Saturley-Hall's avatar Harrison Saturley-Hall Committed by GitHub
Browse files

Merge pull request #3 from dynemo-ai/harrison/ci-test

Fixing GitHub CI for dynemo
parents 63a54ee9 79a3cbe6
name: CodeQL
on:
pull_request:
jobs:
codeql:
name: Analyze Codebase
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'python' ]
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{matrix.language}}
queries: +security-and-quality
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
name: Copyright Checks
on:
pull_request
jobs:
copyright-checks:
runs-on: ubuntu-24.04
container:
image: ghcr.io/dynemo-ai/dynemo/helm-tester:0.1.1
options: --tty
volumes:
- ${{ github.workspace }}:/workspace
permissions:
contents: read
packages: read
steps:
- uses: actions/checkout@v4
# Allowlist both variants of the mounted source directory.
- run: git config --global --add safe.directory /__w/dynemo/dynemo
- run: git config --global --add safe.directory /workspace
- run: pwsh /workspace/.github/workflows/copyright-check.ps1
env:
NVBUILD_VERBOSITY: DETAILED
timeout-minutes: 2
working-directory: /workspace
\ No newline at end of file
...@@ -32,7 +32,7 @@ jobs: ...@@ -32,7 +32,7 @@ jobs:
name: Build and Test - ${{ matrix.framework }} name: Build and Test - ${{ matrix.framework }}
env: env:
CONTAINER_ID: test_${{ github.run_id }}_${{ github.run_attempt }}_${{ github.job }}_${{ matrix.framework }} CONTAINER_ID: test_${{ github.run_id }}_${{ github.run_attempt }}_${{ github.job }}_${{ matrix.framework }}
IMAGE_TAG: ghcr.io/triton-inference-server/triton_distributed:pr_${{ github.event.pull_request.number}}_${{ matrix.framework }} IMAGE_TAG: ghcr.io/dynemo-ai/dynemo:pr_${{ github.event.pull_request.number}}_${{ matrix.framework }}
PYTEST_XML_FILE: pytest_test_report.xml PYTEST_XML_FILE: pytest_test_report.xml
steps: steps:
- name: Checkout repository - name: Checkout repository
...@@ -48,7 +48,7 @@ jobs: ...@@ -48,7 +48,7 @@ jobs:
- name: Decide on cache - name: Decide on cache
id: which_cache id: which_cache
env: env:
DEFAULT_CACHE_LOCATION: ghcr.io/triton-inference-server/triton_distributed:buildcache_${{ matrix.framework }} DEFAULT_CACHE_LOCATION: ghcr.io/dynemo-ai/dynemo:latest-${{ matrix.framework }}
run: | run: |
set +e set +e
docker manifest inspect ${{ env.IMAGE_TAG }} docker manifest inspect ${{ env.IMAGE_TAG }}
...@@ -64,7 +64,6 @@ jobs: ...@@ -64,7 +64,6 @@ jobs:
env: env:
CACHE_FROM: "type=registry,ref=${{ steps.which_cache.outputs.cache_from_location }}" CACHE_FROM: "type=registry,ref=${{ steps.which_cache.outputs.cache_from_location }}"
CACHE_TO: "type=registry,ref=${{ steps.which_cache.outputs.cache_to_location }},image-manifest=true,mode=max" CACHE_TO: "type=registry,ref=${{ steps.which_cache.outputs.cache_to_location }},image-manifest=true,mode=max"
run: | run: |
./container/build.sh --tag $IMAGE_TAG --framework ${{ matrix.framework }} --cache-from "${{ env.CACHE_FROM }}" --cache-to "${{ env.CACHE_TO }}" ./container/build.sh --tag $IMAGE_TAG --framework ${{ matrix.framework }} --cache-from "${{ env.CACHE_FROM }}" --cache-to "${{ env.CACHE_TO }}"
- name: Run pytest - name: Run pytest
......
...@@ -26,7 +26,7 @@ on: ...@@ -26,7 +26,7 @@ on:
branches: branches:
- main - main
paths: paths:
- pre-merge-rust.yml - .github/workflows/pre-merge-rust.yml
- 'lib/runtime/**' - 'lib/runtime/**'
- 'lib/llm/**' - 'lib/llm/**'
- 'lib/bindings/**' - 'lib/bindings/**'
...@@ -85,7 +85,6 @@ jobs: ...@@ -85,7 +85,6 @@ jobs:
run: | run: |
cargo-deny --version || cargo install cargo-deny@0.16.4 cargo-deny --version || cargo install cargo-deny@0.16.4
cargo-deny check --hide-inclusion-graph licenses --config ${{ github.workspace }}/deny.toml cargo-deny check --hide-inclusion-graph licenses --config ${{ github.workspace }}/deny.toml
timeout-minutes: 5
- name: Run Unit Tests - name: Run Unit Tests
working-directory: ${{ matrix.dir }} working-directory: ${{ matrix.dir }}
run: cargo test --locked --all-targets run: cargo test --locked --all-targets
...@@ -51,54 +51,7 @@ jobs: ...@@ -51,54 +51,7 @@ jobs:
- uses: pre-commit/action@v3.0.0 - uses: pre-commit/action@v3.0.0
timeout-minutes: 3 timeout-minutes: 3
copyright-checks:
runs-on: ubuntu-24.04
container:
image: ghcr.io/triton-inference-server/triton_distributed/helm-tester:0.1.1
options: --tty
volumes:
- ${{ github.workspace }}:/workspace
permissions:
contents: read
packages: read
steps:
- uses: actions/checkout@v4
# Allowlist both variants of the mounted source directory.
- run: git config --global --add safe.directory /__w/triton_distributed/triton_distributed
- run: git config --global --add safe.directory /workspace
- run: pwsh /workspace/.github/workflows/copyright-check.ps1
env:
NVBUILD_VERBOSITY: DETAILED
timeout-minutes: 2
working-directory: /workspace
codeql:
name: Analyze Codebase
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'python' ]
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{matrix.language}}
queries: +security-and-quality
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
# providers_validation: # providers_validation:
# runs-on: ubuntu-latest # runs-on: ubuntu-latest
......
# CODEOWNERS file for Triton Distributed # CODEOWNERS file for Dynemo
# #
# For more information about CODEOWNERS files, see: # For more information about CODEOWNERS files, see:
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners # https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
...@@ -17,8 +17,8 @@ Cargo.toml @ryanolson @grahamking @paulhendricks @biswapanda @tmonty12 @guanluo ...@@ -17,8 +17,8 @@ Cargo.toml @ryanolson @grahamking @paulhendricks @biswapanda @tmonty12 @guanluo
/deploy/Kubernetes/ @whoisj @hutm @biswapanda /deploy/Kubernetes/ @whoisj @hutm @biswapanda
# CI/CD # CI/CD
/.github/ @triton-inference-server/devops @nnshah1 /.github/ @dynemo-ai/Devops @nnshah1
CODEOWNERS @triton-inference-server/devops @nnshah1 CODEOWNERS @dynemo-ai/Devops @nnshah1
# Legal # Legal
/LICENSE @nv-anants @nvda-mesharma @glos-nv @dmitry-tokarev-nv /LICENSE @nv-anants @nvda-mesharma @glos-nv @dmitry-tokarev-nv
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment