From f14a4d35c38547e7902bec7e7ab6d45a694b6763 Mon Sep 17 00:00:00 2001 From: Misha Sakhnov Date: Mon, 28 Oct 2024 13:50:36 +0100 Subject: [PATCH] ci, WIP: temporary disable all workflows to speed up the feedback loop Signed-off-by: Misha Sakhnov --- .github/workflows/approved-for-ci-run.yml | 28 +++--- .github/workflows/build-images.yaml | 92 ++++++++++---------- .github/workflows/build-test-vm.yaml | 52 +++++------ .github/workflows/check-ca-builds.yaml | 30 +++---- .github/workflows/e2e-test.yaml | 56 ++++++------ .github/workflows/lint.yml | 10 +-- .github/workflows/pr-format-verification.yml | 20 ++--- .github/workflows/report-workflow-stats.yml | 30 +++---- .github/workflows/test.yaml | 10 +-- .github/workflows/vm-example.yaml | 8 +- .github/workflows/vm-kernel.yaml | 64 +++++++------- 11 files changed, 200 insertions(+), 200 deletions(-) diff --git a/.github/workflows/approved-for-ci-run.yml b/.github/workflows/approved-for-ci-run.yml index d02f62f6a..b54c35a76 100644 --- a/.github/workflows/approved-for-ci-run.yml +++ b/.github/workflows/approved-for-ci-run.yml @@ -1,20 +1,20 @@ name: Handle `approved-for-ci-run` label # This workflow helps to run CI pipeline for PRs made by external contributors (from forks). -on: - pull_request_target: - branches: - - main - types: - # Default types that triggers a workflow ([1]): - # - [1] https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request - - opened - - synchronize - - reopened - # Types that we wand to handle in addition to keep labels tidy: - - closed - # Actual magic happens here: - - labeled +on: {} +# pull_request_target: +# branches: +# - main +# types: +# # Default types that triggers a workflow ([1]): +# # - [1] https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request +# - opened +# - synchronize +# - reopened +# # Types that we wand to handle in addition to keep labels tidy: +# - closed +# # Actual magic happens here: +# - labeled concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number }} diff --git a/.github/workflows/build-images.yaml b/.github/workflows/build-images.yaml index 3784c651e..6028da5a0 100644 --- a/.github/workflows/build-images.yaml +++ b/.github/workflows/build-images.yaml @@ -1,51 +1,51 @@ name: build-images -on: - workflow_call: - inputs: - # 'skip' is kind of silly. it exists because we can't actually *skip* this job from e2e-test, - # otherwise the follow-up job that needs it wouldn't be able to run. So instead we pretend the - # job completed successfully, but actually do nothing... - skip: - description: 'Changes this action to perform a no-op' - type: boolean - required: false - tag: - description: 'Tag to use for the Docker images' - type: string - required: true - kernel-image: - description: 'Kernel image for the VMs embedded in neonvm-runner. If not specified, a kernel will be built from source' - type: string - required: false - build-cluster-autoscaler: - description: 'Build the custom cluster-autoscaler image' - type: boolean - required: false - controller-preserve-runner-pods: - description: 'ONLY USE FOR E2E TESTS: Set neonvm-controller to never delete VM runner pods' - type: boolean - required: false - upload-to-ecr: - description: 'Should images be uploaded to neon ECR' - type: boolean - required: false - outputs: - controller: - description: 'neonvm-controller image' - value: ${{ jobs.tags.outputs.controller }} - vxlan-controller: - description: 'neonvm-vxlan-controller image' - value: ${{ jobs.tags.outputs.vxlan-controller }} - runner: - description: 'neonvm-runner image' - value: ${{ jobs.tags.outputs.runner }} - scheduler: - description: 'autoscale-scheduler image' - value: ${{ jobs.tags.outputs.scheduler }} - autoscaler-agent: - description: 'autoscaler-agent image' - value: ${{ jobs.tags.outputs.autoscaler-agent }} +on: {} + # workflow_call: + # inputs: + # # 'skip' is kind of silly. it exists because we can't actually *skip* this job from e2e-test, + # # otherwise the follow-up job that needs it wouldn't be able to run. So instead we pretend the + # # job completed successfully, but actually do nothing... + # skip: + # description: 'Changes this action to perform a no-op' + # type: boolean + # required: false + # tag: + # description: 'Tag to use for the Docker images' + # type: string + # required: true + # kernel-image: + # description: 'Kernel image for the VMs embedded in neonvm-runner. If not specified, a kernel will be built from source' + # type: string + # required: false + # build-cluster-autoscaler: + # description: 'Build the custom cluster-autoscaler image' + # type: boolean + # required: false + # controller-preserve-runner-pods: + # description: 'ONLY USE FOR E2E TESTS: Set neonvm-controller to never delete VM runner pods' + # type: boolean + # required: false + # upload-to-ecr: + # description: 'Should images be uploaded to neon ECR' + # type: boolean + # required: false + # outputs: + # controller: + # description: 'neonvm-controller image' + # value: ${{ jobs.tags.outputs.controller }} + # vxlan-controller: + # description: 'neonvm-vxlan-controller image' + # value: ${{ jobs.tags.outputs.vxlan-controller }} + # runner: + # description: 'neonvm-runner image' + # value: ${{ jobs.tags.outputs.runner }} + # scheduler: + # description: 'autoscale-scheduler image' + # value: ${{ jobs.tags.outputs.scheduler }} + # autoscaler-agent: + # description: 'autoscaler-agent image' + # value: ${{ jobs.tags.outputs.autoscaler-agent }} env: IMG_CONTROLLER: "neondatabase/neonvm-controller" diff --git a/.github/workflows/build-test-vm.yaml b/.github/workflows/build-test-vm.yaml index 265b807bc..c49bccabd 100644 --- a/.github/workflows/build-test-vm.yaml +++ b/.github/workflows/build-test-vm.yaml @@ -1,31 +1,31 @@ name: build-test-vm -on: - workflow_dispatch: # adds ability to run this manually - inputs: - tag: - description: 'Tag to use for the Docker images' - type: string - required: true - workflow_call: - inputs: - skip: - description: 'Changes this action to perform a no-op' - type: boolean - required: false - tag: - description: 'Tag to use for the Docker images' - type: string - required: true - upload-vm-builder: - description: 'If true, upload vm-builder in an artifact' - type: boolean - required: false - default: false - outputs: - vm-postgres-16-bullseye: - description: 'image name for postgres:16-bullseye, VM-ified' - value: ${{ jobs.tags.outputs.vm-postgres-16-bullseye }} +on: {} + # workflow_dispatch: # adds ability to run this manually + # inputs: + # tag: + # description: 'Tag to use for the Docker images' + # type: string + # required: true + # workflow_call: + # inputs: + # skip: + # description: 'Changes this action to perform a no-op' + # type: boolean + # required: false + # tag: + # description: 'Tag to use for the Docker images' + # type: string + # required: true + # upload-vm-builder: + # description: 'If true, upload vm-builder in an artifact' + # type: boolean + # required: false + # default: false + # outputs: + # vm-postgres-16-bullseye: + # description: 'image name for postgres:16-bullseye, VM-ified' + # value: ${{ jobs.tags.outputs.vm-postgres-16-bullseye }} env: IMG_POSTGRES_16_BULLSEYE: "neondatabase/vm-postgres-16-bullseye" diff --git a/.github/workflows/check-ca-builds.yaml b/.github/workflows/check-ca-builds.yaml index 895db56db..17dfc9bfd 100644 --- a/.github/workflows/check-ca-builds.yaml +++ b/.github/workflows/check-ca-builds.yaml @@ -1,19 +1,19 @@ name: check-cluster-autoscaler-builds -on: - pull_request: - paths: - - "cluster-autoscaler/ca.tag" - - "cluster-autoscaler/ca.patch" - - "cluster-autoscaler/Dockerfile" - - ".github/workflows/check-ca-builds.yaml" - push: - branches: - - main - paths: - - "cluster-autoscaler/ca.tag" - - "cluster-autoscaler/ca.patch" - - "cluster-autoscaler/Dockerfile" - - ".github/workflows/check-ca-builds.yaml" +on: {} + # pull_request: + # paths: + # - "cluster-autoscaler/ca.tag" + # - "cluster-autoscaler/ca.patch" + # - "cluster-autoscaler/Dockerfile" + # - ".github/workflows/check-ca-builds.yaml" + # push: + # branches: + # - main + # paths: + # - "cluster-autoscaler/ca.tag" + # - "cluster-autoscaler/ca.patch" + # - "cluster-autoscaler/Dockerfile" + # - ".github/workflows/check-ca-builds.yaml" jobs: build-ca: diff --git a/.github/workflows/e2e-test.yaml b/.github/workflows/e2e-test.yaml index 2d2aaf390..9d9fb4180 100644 --- a/.github/workflows/e2e-test.yaml +++ b/.github/workflows/e2e-test.yaml @@ -1,32 +1,32 @@ name: e2e-test -on: - pull_request: - push: - branches: - - main - workflow_dispatch: - inputs: - kernel-image: - type: string - description: 'The kernel image to use for the VMs. If not specified, a kernel will be built from source' - required: false - cluster: - type: choice - description: 'The cluster to run the tests on' - options: - - k3d - - kind - default: k3d - workflow_call: - inputs: - tag: - type: string - description: 'Tag to use for images, skipping building' - required: false - push-yamls: - type: boolean - description: 'If true, pushes a tarball containing the rendered yaml manifests as an artifact' - required: false +on: {} + # pull_request: + # push: + # branches: + # - main + # workflow_dispatch: + # inputs: + # kernel-image: + # type: string + # description: 'The kernel image to use for the VMs. If not specified, a kernel will be built from source' + # required: false + # cluster: + # type: choice + # description: 'The cluster to run the tests on' + # options: + # - k3d + # - kind + # default: k3d + # workflow_call: + # inputs: + # tag: + # type: string + # description: 'Tag to use for images, skipping building' + # required: false + # push-yamls: + # type: boolean + # description: 'If true, pushes a tarball containing the rendered yaml manifests as an artifact' + # required: false env: IMG_E2E_TEST: vm-postgres:15-bullseye diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4aa70dbff..ee85d1d65 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,9 +1,9 @@ name: lints -on: - pull_request: - push: - branches: - - main +on: {} + # pull_request: + # push: + # branches: + # - main defaults: run: diff --git a/.github/workflows/pr-format-verification.yml b/.github/workflows/pr-format-verification.yml index 1a49a390f..485ce060c 100644 --- a/.github/workflows/pr-format-verification.yml +++ b/.github/workflows/pr-format-verification.yml @@ -1,15 +1,15 @@ name: PR format verification -on: - pull_request: - branches: - - main - types: - # By default, a workflow only runs when a pull_request event's activity type is opened, synchronize, or reopened. - - opened - - synchronize - - edited - - reopened +on: {} + # pull_request: + # branches: + # - main + # types: + # # By default, a workflow only runs when a pull_request event's activity type is opened, synchronize, or reopened. + # - opened + # - synchronize + # - edited + # - reopened defaults: run: diff --git a/.github/workflows/report-workflow-stats.yml b/.github/workflows/report-workflow-stats.yml index 7cac84764..cf01edc3e 100644 --- a/.github/workflows/report-workflow-stats.yml +++ b/.github/workflows/report-workflow-stats.yml @@ -1,20 +1,20 @@ name: Report Workflow Stats -on: - workflow_run: - workflows: - - Handle `approved-for-ci-run` label - - PR format verification - - build-images - - build-test-vm - - check-cluster-autoscaler-builds - - e2e-test - - lints - - release - - test - - vm-example - - vm-kernel - types: [completed] +on: {} + # workflow_run: + # workflows: + # - Handle `approved-for-ci-run` label + # - PR format verification + # - build-images + # - build-test-vm + # - check-cluster-autoscaler-builds + # - e2e-test + # - lints + # - release + # - test + # - vm-example + # - vm-kernel + # types: [completed] jobs: gh-workflow-stats: diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 98667f033..699a0ef42 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,9 +1,9 @@ name: test -on: - pull_request: - push: - branches: - - main +on: {} + # pull_request: + # push: + # branches: + # - main env: BUCKET: neon-github-public-dev diff --git a/.github/workflows/vm-example.yaml b/.github/workflows/vm-example.yaml index 15ee7599c..98c22315d 100644 --- a/.github/workflows/vm-example.yaml +++ b/.github/workflows/vm-example.yaml @@ -1,9 +1,9 @@ name: vm-example -on: - schedule: - - cron: '42 4 * * 2' # run once a week - workflow_dispatch: # adds ability to run this manually +on: {} + # schedule: + # - cron: '42 4 * * 2' # run once a week + # workflow_dispatch: # adds ability to run this manually env: TARGET_ARCH: amd64 diff --git a/.github/workflows/vm-kernel.yaml b/.github/workflows/vm-kernel.yaml index 67d780fdb..022363d32 100644 --- a/.github/workflows/vm-kernel.yaml +++ b/.github/workflows/vm-kernel.yaml @@ -1,37 +1,37 @@ name: vm-kernel -on: - workflow_dispatch: # adds ability to run this manually - inputs: - tag: - description: 'Tag to use for Docker image' - type: string - required: false - force-rebuild: - description: 'Rebuild the kernel image even if it already exists' - type: boolean - required: false - default: false - workflow_call: - inputs: - tag: - description: 'Tag to use for Docker image' - type: string - required: false - return-image-for-tag: - description: 'Make workflow to return image for the passed tag without building or tagging anything' - type: string - required: false - default: '' - force-rebuild: - description: 'Rebuild the kernel image even if it already exists. No-op if `return-image-for-tag` is set' - type: boolean - required: false - default: false - outputs: - image: - description: 'vm-kernel Docker image' - value: ${{ jobs.setup-build-vm-kernel-image.outputs.image || jobs.build-vm-kernel-image.outputs.image }} +on: {} + # workflow_dispatch: # adds ability to run this manually + # inputs: + # tag: + # description: 'Tag to use for Docker image' + # type: string + # required: false + # force-rebuild: + # description: 'Rebuild the kernel image even if it already exists' + # type: boolean + # required: false + # default: false + # workflow_call: + # inputs: + # tag: + # description: 'Tag to use for Docker image' + # type: string + # required: false + # return-image-for-tag: + # description: 'Make workflow to return image for the passed tag without building or tagging anything' + # type: string + # required: false + # default: '' + # force-rebuild: + # description: 'Rebuild the kernel image even if it already exists. No-op if `return-image-for-tag` is set' + # type: boolean + # required: false + # default: false + # outputs: + # image: + # description: 'vm-kernel Docker image' + # value: ${{ jobs.setup-build-vm-kernel-image.outputs.image || jobs.build-vm-kernel-image.outputs.image }} env: VM_KERNEL_IMAGE: "neondatabase/vm-kernel"