Skip to content

Commit

Permalink
[chore] cleanup and refactor testing workflows (#373)
Browse files Browse the repository at this point in the history
Signed-off-by: odubajDT <[email protected]>
  • Loading branch information
odubajDT authored Nov 18, 2024
1 parent aecd9dd commit 9506b55
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 292 deletions.
12 changes: 0 additions & 12 deletions .chainsaw.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions .chainsaw_local.yaml

This file was deleted.

40 changes: 35 additions & 5 deletions .github/actions/create-cluster/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,52 @@ inputs:
required: false
description: "Kubernetes version that should be used"
# renovate: datasource=github-releases depName=kubernetes/kubernetes
default: "v1.27.3"
runtime_tag:
description: "Tag for the runner image"
required: true
default: "v1.27.11"
cluster-name:
required: false
description: "Name of the kind cluster"
default: "test-cluster"
default: "kind"
runs:
using: "composite"
steps:

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "~1.22.6"
check-latest: true
cache: false

- name: Cache tools
id: cache-tools
uses: actions/cache@v4
with:
path: .tools
key: e2e-tools-${{ runner.os }}-${{ hashFiles('internal/tools/go.sum') }}

- name: Install tools
if: steps.cache-tools.outputs.cache-hit != 'true'
shell: bash
run: |
mkdir -p .tools
touch .tools/*
make install-tools
- name: "Create single kind Cluster"
uses: helm/[email protected]
with:
cluster_name: ${{ inputs.cluster-name }}
version: ${{ inputs.kind-version }}
node_image: "kindest/node:${{ inputs.k8s-version }}"
kubectl_version: ${{ inputs.k8s-version }}

- name: Download artifact
uses: actions/download-artifact@v4
with:
name: dynatrace-otel-collector-image
path: /tmp

- name: Load Image into Kind
shell: bash
run: |
kind load image-archive /tmp/dynatrace-otel-collector.tar -n ${{ inputs.cluster-name }}
10 changes: 0 additions & 10 deletions .github/actions/deploy-prometheus/action.yaml

This file was deleted.

88 changes: 4 additions & 84 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,48 +104,8 @@ jobs:
- name: Check out code
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "~1.22.6"
check-latest: true
cache: false

- name: Cache tools
id: cache-tools
uses: actions/cache@v4
with:
path: .tools
key: e2e-tools-${{ runner.os }}-${{ hashFiles('internal/tools/go.sum') }}

- name: Install tools
if: steps.cache-tools.outputs.cache-hit != 'true'
run: |
mkdir -p .tools
touch .tools/*
make install-tools
- name: Create kind cluster
uses: helm/[email protected]
with:
node_image: "kindest/node:v1.27.11"
kubectl_version: "v1.27.11"
cluster_name: kind

- name: Download artifact
uses: actions/download-artifact@v4
with:
name: dynatrace-otel-collector-image
path: /tmp

- name: Load Docker image
run: |
docker load --input /tmp/dynatrace-otel-collector.tar
- name: Load Image into Kind
shell: bash
run: |
kind load docker-image dynatrace-otel-collector:e2e-test --name kind
- name: Setup cluster
uses: ./.github/actions/create-cluster

- name: Run e2e tests
run: |
Expand All @@ -160,48 +120,8 @@ jobs:
- name: Check out code
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "~1.22.6"
check-latest: true
cache: false

- name: Cache tools
id: cache-tools
uses: actions/cache@v4
with:
path: .tools
key: e2e-tools-${{ runner.os }}-${{ hashFiles('internal/tools/go.sum') }}

- name: Install tools
if: steps.cache-tools.outputs.cache-hit != 'true'
run: |
mkdir -p .tools
touch .tools/*
make install-tools
- name: Create kind cluster
uses: helm/[email protected]
with:
node_image: "kindest/node:v1.27.11"
kubectl_version: "v1.27.11"
cluster_name: kind

- name: Download artifact
uses: actions/download-artifact@v4
with:
name: dynatrace-otel-collector-image
path: /tmp

- name: Load Docker image
run: |
docker load --input /tmp/dynatrace-otel-collector.tar
- name: Load Image into Kind
shell: bash
run: |
kind load docker-image dynatrace-otel-collector:e2e-test --name kind
- name: Setup cluster
uses: ./.github/actions/create-cluster

- name: Run e2e tests
run: |
Expand Down
12 changes: 0 additions & 12 deletions internal/testbed/chainsaw/prometheus-node-exporter/00-assert.yaml

This file was deleted.

This file was deleted.

12 changes: 0 additions & 12 deletions internal/testbed/chainsaw/syslog-receiver/00-assert.yaml

This file was deleted.

28 changes: 0 additions & 28 deletions internal/testbed/chainsaw/syslog-receiver/chainsaw-test.yaml

This file was deleted.

41 changes: 0 additions & 41 deletions internal/testbed/scripts/get_dt_logs.sh

This file was deleted.

44 changes: 0 additions & 44 deletions internal/testbed/scripts/get_dt_metrics.sh

This file was deleted.

9 changes: 0 additions & 9 deletions internal/testbed/scripts/install_prometheus_node_exporter.sh

This file was deleted.

0 comments on commit 9506b55

Please sign in to comment.