Skip to content

Commit

Permalink
ci, WIP: temporary disable all workflows to speed up the feedback loop
Browse files Browse the repository at this point in the history
Signed-off-by: Misha Sakhnov <[email protected]>
  • Loading branch information
mikhail-sakhnov committed Oct 28, 2024
1 parent d0e92c9 commit f14a4d3
Show file tree
Hide file tree
Showing 11 changed files with 200 additions and 200 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/approved-for-ci-run.yml
Original file line number Diff line number Diff line change
@@ -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 }}
Expand Down
92 changes: 46 additions & 46 deletions .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
52 changes: 26 additions & 26 deletions .github/workflows/build-test-vm.yaml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/check-ca-builds.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
56 changes: 28 additions & 28 deletions .github/workflows/e2e-test.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: lints
on:
pull_request:
push:
branches:
- main
on: {}
# pull_request:
# push:
# branches:
# - main

defaults:
run:
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/pr-format-verification.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/report-workflow-stats.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: test
on:
pull_request:
push:
branches:
- main
on: {}
# pull_request:
# push:
# branches:
# - main

env:
BUCKET: neon-github-public-dev
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/vm-example.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading

0 comments on commit f14a4d3

Please sign in to comment.