Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

[8.9](backport #3596) Migrate k8s autodiscovery pipeline #3603

Merged
merged 1 commit into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 0 additions & 53 deletions .ci/e2eTestingK8SAutodiscoveryDaily.groovy

This file was deleted.

47 changes: 0 additions & 47 deletions .ci/jobs/e2e-testing-k8s-autodiscovery-daily-mbp.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/k8s-autodiscovery-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: k8s-autodiscovery-test

on:
workflow_dispatch:
schedule:
- cron: '0 18 * * *'

permissions:
contents: read

jobs:
elastic-stack-snapshot-branches:
runs-on: ubuntu-latest
timeout-minutes: 1
outputs:
matrix: ${{ steps.generator.outputs.matrix }}
steps:
- id: generator
uses: elastic/apm-pipeline-library/.github/actions/elastic-stack-snapshot-branches@current

k8s-autodiscovery-test:
needs: elastic-stack-snapshot-branches
strategy:
matrix: ${{ fromJson(needs.elastic-stack-snapshot-branches.outputs.matrix) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ matrix.branch }}
- id: get-go-version
name: Get Go version
run: echo "version=$(cat .go-version)" >> "$GITHUB_OUTPUT"
- uses: actions/setup-go@v4
with:
go-version: ${{ steps.get-go-version.outputs.version }}
- name: Create k8s Kind Cluster
uses: helm/kind-action@dda0770415bac9fc20092cacbc54aa298604d140 # v1.8.0
- name: Run k8s autodiscovery test
working-directory: e2e/_suites/kubernetes-autodiscover
env:
OP_LOG_LEVEL: DEBUG
run: go test -timeout 90m -v
1 change: 1 addition & 0 deletions .github/workflows/opentelemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
workflows:
- bump-elastic-stack-snapshot
- golangci-lint
- k8s-autodiscovery-test
- pre-commit
- pull-request
- Test Report
Expand Down
4 changes: 2 additions & 2 deletions e2e/_suites/kubernetes-autodiscover/autodiscover_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ import (

var beatVersions = map[string]string{}

var defaultEventsWaitTimeout = 60 * time.Second
var defaultDeployWaitTimeout = 60 * time.Second
var defaultEventsWaitTimeout = 300 * time.Second
var defaultDeployWaitTimeout = 300 * time.Second

var tx *apm.Transaction
var stepSpan *apm.Span
Expand Down
Loading