Skip to content

Commit

Permalink
removed conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
hamza-m-masood committed Dec 12, 2023
1 parent a2b6de2 commit 7dd08c0
Show file tree
Hide file tree
Showing 3 changed files with 219 additions and 163 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/renovate-post-upgrade.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Mimic postUpgradeTasks which is only available for self-hosted Renovate instances.
# https://docs.renovatebot.com/configuration-options/#postupgradetasks
name: Renovate - Post Upgrade Tasks

on:
push:
branches:
- 'renovate/*'
paths:
- 'charts/camunda-platform/values.yaml'
- 'charts/camunda-platform/templates/**'
- 'charts/camunda-platform/charts/**'

jobs:
run:
name: Update golden files
runs-on: ubuntu-latest
steps:
- name: Generate GitHub token
uses: tibdex/github-app-token@v2
id: generate-github-token
with:
app_id: ${{ secrets.GH_APP_ID }}
private_key: ${{ secrets.GH_APP_PRIVATE_KEY }}
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
token: '${{ steps.generate-github-token.outputs.token }}'
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version-file: go.mod
cache: false
- uses: asdf-vm/actions/setup@v3
- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Update golden files
run: make go.update-golden-only
- uses: EndBug/[email protected]
with:
author_name: "renovate[bot]"
author_email: "29139614+renovate[bot]@users.noreply.github.com"
message: "chore(deps): post upgrade tasks - update golden files"
79 changes: 79 additions & 0 deletions .github/workflows/test-regression.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Basic test for older Camunda 8 Helm charts.
name: "Test - Regression"

on:
push:
paths:
- 'charts/camunda-platform/values/values-v8*.yaml'
pull_request:
paths:
- 'charts/camunda-platform/values/values-v8*.yaml'
workflow_dispatch: { }

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
CAMUNDA_DISTRO_TEST_DELETE_NAMESPACE: ${{ !secrets.ACTIONS_STEP_DEBUG }}
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number }}
GITHUB_PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
GITHUB_WORKFLOW_RUN_ID: ${{ github.run_id }}
KUBECONFIG: .github/config/kubeconfig

jobs:
test:
name: Previous chart v${{ matrix.camundaChart }}.x
if: ${{ contains(github.event.*.labels.*.name, 'test-regression') || github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: ubuntu-latest
permissions:
id-token: write
strategy:
fail-fast: false
matrix:
camundaChart:
- "8.2"
- "8.1"
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Login to GKE
uses: ./.github/actions/gke-login
with:
cluster-name: ${{ secrets.DISTRO_CI_GCP_GKE_CLUSTER_NAME }}
cluster-location: ${{ secrets.DISTRO_CI_GCP_GKE_CLUSTER_LOCATION }}
workload-identity-provider: ${{ secrets.DISTRO_CI_GCP_WORKLOAD_IDENTITY_PROVIDER }}
service-account: ${{ secrets.DISTRO_CI_GCP_SERVICE_ACCOUNT }}
- name: Set test vars
id: vars
run: |
TEST_NAMESPACE="camunda-platform-pr-$GITHUB_PR_NUMBER-regression-${{ matrix.camundaChart }}"
echo "TEST_NAMESPACE=${TEST_NAMESPACE//./-}" >> $GITHUB_ENV
- name: Install env dependencies
uses: asdf-vm/actions/install@v3
- name: Cleanup any old namespace
run: |
kubectl delete ns $TEST_NAMESPACE --ignore-not-found=true
- name: Add Camunda 8 Helm chart repo
run: |
helm repo add camunda https://helm.camunda.io
- name: Install Camunda 8 Helm chart v${{ matrix.camundaChart }}
timeout-minutes: 15
run: |
helm install camunda-platform camunda/camunda-platform \
--wait --timeout 15m0s \
--version ${{ matrix.camundaChart }} \
--namespace $TEST_NAMESPACE --create-namespace \
--values charts/camunda-platform/values/values-v${{ matrix.camundaChart }}.yaml
- name: Check setup
if: always()
run: |
echo "List Helm release ..."
helm list -n $TEST_NAMESPACE
echo "Get Pods ..."
kubectl get pod -n $TEST_NAMESPACE
echo "Describe Pods ..."
kubectl describe pod -n $TEST_NAMESPACE
- name: Cleanup test namespace
if: always() && env.CAMUNDA_DISTRO_TEST_DELETE_NAMESPACE != 'false'
run: |
kubectl delete ns $TEST_NAMESPACE --ignore-not-found=true
Loading

0 comments on commit 7dd08c0

Please sign in to comment.