Skip to content

Nightly Pipeline

Nightly Pipeline #38

Workflow file for this run

name: Nightly Pipeline
on:
workflow_dispatch:
inputs:
mode:
description: 'release/nightly, default is nightly'
required: true
default: 'nightly'
type: choice
options:
- nightly
- release
workflow_call:
inputs:
mode:
description: 'release/nightly, default is nightly'
type: string
required: true
default: 'nightly'
schedule:
- cron: '0 13 * * *'
permissions:
id-token: write
contents: read
jobs:
build:
uses: ./.github/workflows/docker-nightly-publish.yml
secrets: inherit
with:
mode: ${{ inputs.mode || 'nightly' }}
get_image_tag_suffix:
outputs:
test_image_tag_suffix: ${{ steps.get_image_tag_suffix.test_image_tag_suffix }}
needs: [build]
runs-on: ubuntu-latest
steps:
- name: get_image_tag_suffix
id: get_image_tag_suffix
run: |
if [[ "${{ inputs.mode || 'nightly' }}" == "nightly" ]]; then
echo "test_image_tag_suffix=nightly" >> $GITHUB_OUTPUT
elif [[ "${{ inputs.mode }}" == "release" ]]; then
echo "test_image_tag_suffix=${{ needs.build.outputs.djl_version }}-${GITHUB_RUN_ID}" >> $GITHUB_OUTPUT
else
echo "Invalid mode specified"
exit 1
fi
integration-test:
needs: [get_image_tag_suffix]
uses: ./.github/workflows/integration.yml
secrets: inherit
with:
tag-suffix: ${{ needs.get_image_tag_suffix.outputs.test_image_tag_suffix }}
publish:
runs-on: ubuntu-latest
needs: [integration-test, get_image_tag_suffix]
if: always()
steps:
- name: Publish Test
run: |
echo "lmi status ${{ needs.integration-test.outputs.failure_lmi }}"
echo "trtllm status ${{ needs.integration-test.outputs.failure_trtllm }}"
echo "gpu status ${{ needs.integration-test.outputs.failure_gpu }}"
echo "cpu status ${{ needs.integration-test.outputs.failure_cpu }}"
echo "aarch64 status ${{ needs.integration-test.outputs.failure_aarch64 }}"
echo "neuron status ${{ needs.integration-test.outputs.failure_neuron }}"
echo "neuron unittest status ${{ needs.integration-test.outputs.failure_neuron_unittest }}"