diff --git a/.github/workflows/cicd-main.yml b/.github/workflows/cicd-main.yml index 7affc300ff3..89b6d0d74cd 100644 --- a/.github/workflows/cicd-main.yml +++ b/.github/workflows/cicd-main.yml @@ -14,7 +14,7 @@ name: CICD Megatron-LM on: schedule: - - cron: "0 */2 * * *" + - cron: 0 0 * * * push: branches: - dev @@ -23,6 +23,7 @@ on: - "deploy-release/*" merge_group: types: [checks_requested] + workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.event.label.name || 'main' }}-${{ github.event_name }} @@ -318,7 +319,7 @@ jobs: - name: Parse unit tests id: parse-unit-tests run: | - cat tests/test_utils/recipes/unit-tests.yaml | yq -o json '[.products[].test_case[] | { "bucket": .}]' | jq -c > unit-tests.json + cat tests/test_utils/recipes/unit-tests.yaml | yq -o json '[.products[].test_case[] | { "bucket": .}] | sort_by(.model, .test_case)' | jq -c > unit-tests.json echo "unit-tests=$(cat unit-tests.json)" | tee -a $GITHUB_OUTPUT cicd-unit-tests-latest: @@ -366,6 +367,14 @@ jobs: - cicd-wait-in-queue - cicd-container-build - cicd-unit-tests-latest + if: | + ( + success() + || needs.pre-flight.outputs.is_ci_workload == 'true' + || needs.pre-flight.outputs.force_run_all == 'true' + ) + && needs.pre-flight.outputs.is_merge_group == 'false' + && !cancelled() outputs: integration-tests: ${{ steps.main.outputs.integration-tests }} steps: