From 3d5dfcb7b2118d9eb4837e31752c2dc2646fb22f Mon Sep 17 00:00:00 2001 From: Chandan Pinjani Date: Thu, 10 Oct 2024 13:51:52 +0530 Subject: [PATCH] Modified scheduled jobs (#181) Signed-off-by: Chandan Pinjani --- .github/workflows/aks.yaml | 5 +++-- .github/workflows/eks.yaml | 5 +++-- .github/workflows/gke.yaml | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/aks.yaml b/.github/workflows/aks.yaml index b3ef910..eaff777 100644 --- a/.github/workflows/aks.yaml +++ b/.github/workflows/aks.yaml @@ -4,7 +4,8 @@ run-name: AKS ${{ inputs.downstream_k8s_minor_version }} on Rancher v${{ inputs. on: schedule: - - cron: "0 4 * * *" # Run every day + - cron: "0 4 * * 1-6" # From Monday to Saturday + - cron: "0 4 * * 0" # On Sunday workflow_dispatch: # Allow running manually on demand inputs: rancher_version: @@ -59,7 +60,7 @@ jobs: rancher_version: ${{ inputs.rancher_version || '2.9-head' }} k3s_version: ${{ inputs.k3s_version || 'v1.28.9+k3s1' }} operator_nightly_chart: ${{ inputs.operator_nightly_chart == true || (github.event_name == 'schedule' && true) }} - tests_to_run: ${{ inputs.tests_to_run || 'p0_provisioning/p0_import' }} + tests_to_run: ${{ inputs.tests_to_run || (github.event.schedule == '0 4 * * 1-6' && 'p0_provisioning/p0_import') || (github.event.schedule == '0 4 * * 0' && 'p1_provisioning/p1_import/sync_provisioning/sync_import') }} destroy_runner: ${{ inputs.destroy_runner == true || (github.event_name == 'schedule' && true) }} runner_template: ${{ inputs.runner_template || 'hosted-prov-e2e-ci-runner-spot-n2-highmem-16-gl-template-v3' }} downstream_k8s_minor_version: ${{ inputs.downstream_k8s_minor_version }} diff --git a/.github/workflows/eks.yaml b/.github/workflows/eks.yaml index e8a7146..6c1b54d 100644 --- a/.github/workflows/eks.yaml +++ b/.github/workflows/eks.yaml @@ -4,7 +4,8 @@ run-name: EKS ${{ inputs.downstream_k8s_minor_version }} on Rancher v${{ inputs. on: schedule: - - cron: "0 4 * * *" # Run every day + - cron: "0 4 * * 1-6" # From Monday to Saturday + - cron: "0 4 * * 0" # On Sunday workflow_dispatch: # Allow running manually on demand inputs: rancher_version: @@ -59,7 +60,7 @@ jobs: rancher_version: ${{ inputs.rancher_version || '2.9-head' }} k3s_version: ${{ inputs.k3s_version || 'v1.28.9+k3s1' }} operator_nightly_chart: ${{ inputs.operator_nightly_chart == true || (github.event_name == 'schedule' && true) }} - tests_to_run: ${{ inputs.tests_to_run || 'p0_provisioning/p0_import' }} + tests_to_run: ${{ inputs.tests_to_run || (github.event.schedule == '0 4 * * 1-6' && 'p0_provisioning/p0_import') || (github.event.schedule == '0 4 * * 0' && 'p1_provisioning/p1_import/sync_provisioning/sync_import') }} destroy_runner: ${{ inputs.destroy_runner ==true || (github.event_name == 'schedule' && true) }} runner_template: ${{ inputs.runner_template || 'hosted-prov-e2e-ci-runner-spot-n2-highmem-16-gl-template-v3' }} downstream_k8s_minor_version: ${{ inputs.downstream_k8s_minor_version }} diff --git a/.github/workflows/gke.yaml b/.github/workflows/gke.yaml index 91a2ab1..3e45046 100644 --- a/.github/workflows/gke.yaml +++ b/.github/workflows/gke.yaml @@ -4,7 +4,8 @@ run-name: GKE ${{ inputs.downstream_k8s_minor_version }} on Rancher v${{ inputs. on: schedule: - - cron: "0 4 * * *" # Run every day + - cron: "0 4 * * 1-6" # From Monday to Saturday + - cron: "0 4 * * 0" # On Sunday workflow_dispatch: # Allow running manually on demand inputs: rancher_version: @@ -59,7 +60,7 @@ jobs: rancher_version: ${{ inputs.rancher_version || '2.9-head' }} k3s_version: ${{ inputs.k3s_version || 'v1.28.9+k3s1' }} operator_nightly_chart: ${{ inputs.operator_nightly_chart == true || (github.event_name == 'schedule' && true) }} - tests_to_run: ${{ inputs.tests_to_run || 'p0_provisioning/p0_import' }} + tests_to_run: ${{ inputs.tests_to_run || (github.event.schedule == '0 4 * * 1-6' && 'p0_provisioning/p0_import') || (github.event.schedule == '0 4 * * 0' && 'p1_provisioning/p1_import/sync_provisioning/sync_import') }} destroy_runner: ${{ inputs.destroy_runner ==true || (github.event_name == 'schedule' && true) }} runner_template: ${{ inputs.runner_template || 'hosted-prov-e2e-ci-runner-spot-n2-highmem-16-gl-template-v3' }} downstream_k8s_minor_version: ${{ inputs.downstream_k8s_minor_version }}