diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index 2b6e94f3acb..5bcc79c828d 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -230,11 +230,24 @@ jobs: secrets: BUILDKITE_TOKEN: ${{ secrets.BUILDKITE_TOKEN }} + smoke-tests-shared-gke-api-server: + needs: [gate-tests, nightly-build-pypi] + if: ${{ needs.gate-tests.outputs.run_tests == 'true' }} + uses: ./.github/workflows/buildkite-trigger-wait.yml + with: + commit: ${{ github.sha }} + branch: ${{ github.ref_name }} + message: "nightly-build-pypi shared-gke-api-server with postgres tests" + pipeline: "nightly-build-shared-gke-api-server" + timeout_minutes: 120 + secrets: + BUILDKITE_TOKEN: ${{ secrets.BUILDKITE_TOKEN }} + publish-and-validate-both: - needs: [gate-tests, nightly-build-pypi, smoke-tests-aws, smoke-tests-kubernetes-resource-heavy, smoke-tests-kubernetes-no-resource-heavy, smoke-tests-kubernetes-no-resource-heavy-limit-deps, smoke-tests-remote-server-kubernetes, backward-compat-test-nightly, backward-compat-test-stable] + needs: [gate-tests, nightly-build-pypi, smoke-tests-aws, smoke-tests-kubernetes-resource-heavy, smoke-tests-kubernetes-no-resource-heavy, smoke-tests-kubernetes-no-resource-heavy-limit-deps, smoke-tests-remote-server-kubernetes, smoke-tests-shared-gke-api-server, backward-compat-test-nightly, backward-compat-test-stable] # Allow publish/validate for manual dispatch or the original nightly cron; skip for the 5PM PT preflight # Use always() so this job evaluates even if some test jobs were skipped when skip_buildkite is selected - if: ${{ always() && (github.event_name == 'workflow_dispatch' || (github.event_name == 'schedule' && github.event.schedule == '35 8 * * *')) && needs.nightly-build-pypi.result == 'success' && (needs.gate-tests.outputs.publish_without_tests == 'true' || (needs.gate-tests.outputs.run_tests == 'true' && needs.smoke-tests-aws.result == 'success' && needs.smoke-tests-kubernetes-resource-heavy.result == 'success' && needs.smoke-tests-kubernetes-no-resource-heavy.result == 'success' && needs.smoke-tests-kubernetes-no-resource-heavy-limit-deps.result == 'success' && needs.smoke-tests-remote-server-kubernetes.result == 'success' && needs.backward-compat-test-nightly.result == 'success' && needs.backward-compat-test-stable.result == 'success')) }} + if: ${{ always() && (github.event_name == 'workflow_dispatch' || (github.event_name == 'schedule' && github.event.schedule == '35 8 * * *')) && needs.nightly-build-pypi.result == 'success' && (needs.gate-tests.outputs.publish_without_tests == 'true' || (needs.gate-tests.outputs.run_tests == 'true' && needs.smoke-tests-aws.result == 'success' && needs.smoke-tests-kubernetes-resource-heavy.result == 'success' && needs.smoke-tests-kubernetes-no-resource-heavy.result == 'success' && needs.smoke-tests-kubernetes-no-resource-heavy-limit-deps.result == 'success' && needs.smoke-tests-remote-server-kubernetes.result == 'success' && needs.smoke-tests-shared-gke-api-server.result == 'success' && needs.backward-compat-test-nightly.result == 'success' && needs.backward-compat-test-stable.result == 'success')) }} uses: ./.github/workflows/publish-and-validate-both.yml with: package_name: skypilot-nightly @@ -253,7 +266,7 @@ jobs: notify-slack-failure: runs-on: ubuntu-latest - needs: [check-date, nightly-build-pypi, smoke-tests-aws, smoke-tests-kubernetes-resource-heavy, smoke-tests-kubernetes-no-resource-heavy, smoke-tests-kubernetes-no-resource-heavy-limit-deps, smoke-tests-remote-server-kubernetes, backward-compat-test-nightly, backward-compat-test-stable, publish-and-validate-both, trigger-helm-release] + needs: [check-date, nightly-build-pypi, smoke-tests-aws, smoke-tests-kubernetes-resource-heavy, smoke-tests-kubernetes-no-resource-heavy, smoke-tests-kubernetes-no-resource-heavy-limit-deps, smoke-tests-remote-server-kubernetes, smoke-tests-shared-gke-api-server, backward-compat-test-nightly, backward-compat-test-stable, publish-and-validate-both, trigger-helm-release] # Only run this job if any of the previous jobs failed if: failure() steps: @@ -265,7 +278,7 @@ jobs: COMMIT_URL="${{ github.server_url }}/${{ github.repository }}/commit/${COMMIT_SHA}" SHORT_SHA=$(echo "$COMMIT_SHA" | cut -c1-7) BUILDKITE_MSG="" - if [[ "${{ needs.smoke-tests-aws.result }}" == "failure" || "${{ needs.smoke-tests-kubernetes-resource-heavy.result }}" == "failure" || "${{ needs.smoke-tests-kubernetes-no-resource-heavy.result }}" == "failure" || "${{ needs.smoke-tests-kubernetes-no-resource-heavy-limit-deps.result }}" == "failure" || "${{ needs.smoke-tests-remote-server-kubernetes.result }}" == "failure" || "${{ needs.backward-compat-test-nightly.result }}" == "failure" || "${{ needs.backward-compat-test-stable.result }}" == "failure" ]]; then + if [[ "${{ needs.smoke-tests-aws.result }}" == "failure" || "${{ needs.smoke-tests-kubernetes-resource-heavy.result }}" == "failure" || "${{ needs.smoke-tests-kubernetes-no-resource-heavy.result }}" == "failure" || "${{ needs.smoke-tests-kubernetes-no-resource-heavy-limit-deps.result }}" == "failure" || "${{ needs.smoke-tests-remote-server-kubernetes.result }}" == "failure" || "${{ needs.smoke-tests-shared-gke-api-server.result }}" == "failure" || "${{ needs.backward-compat-test-nightly.result }}" == "failure" || "${{ needs.backward-compat-test-stable.result }}" == "failure" ]]; then if [[ "${{ needs.smoke-tests-aws.result }}" == "failure" ]]; then BUILDKITE_MSG="" fi @@ -293,6 +306,12 @@ jobs: fi BUILDKITE_MSG="${BUILDKITE_MSG} " fi + if [[ "${{ needs.smoke-tests-shared-gke-api-server.result }}" == "failure" ]]; then + if [[ ! -z "$BUILDKITE_MSG" ]]; then + BUILDKITE_MSG="${BUILDKITE_MSG} and" + fi + BUILDKITE_MSG="${BUILDKITE_MSG} " + fi if [[ "${{ needs.backward-compat-test-nightly.result }}" == "failure" ]]; then if [[ ! -z "$BUILDKITE_MSG" ]]; then BUILDKITE_MSG="${BUILDKITE_MSG} and"