Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flaky cli-upgrade test #1843

Merged
merged 3 commits into from
Nov 25, 2024
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
2 changes: 2 additions & 0 deletions tests/e2e/cli-upgrade/assert-instrumented-and-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ status:
(value != null): true
- key: k8s.pod.name
(value != null): true
---
apiVersion: odigos.io/v1alpha1
kind: InstrumentationInstance
metadata:
Expand All @@ -336,6 +337,7 @@ status:
(value != null): true
- key: k8s.pod.name
(value != null): true
---
apiVersion: odigos.io/v1alpha1
kind: InstrumentationInstance
metadata:
Expand Down
29 changes: 29 additions & 0 deletions tests/e2e/cli-upgrade/assert-odigos-upgraded.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,35 @@ status:
---
apiVersion: v1
kind: Pod
metadata:
labels:
odigos.io/collector-role: NODE_COLLECTOR
namespace: odigos-test-cli-upgrade
ownerReferences:
- apiVersion: apps/v1
blockOwnerDeletion: true
controller: true
kind: DaemonSet
name: odigos-data-collection
spec:
containers:
- name: data-collection
image: keyval/odigos-collector:e2e-test
hostNetwork: true
nodeSelector:
kubernetes.io/os: linux
serviceAccount: odigos-data-collection
serviceAccountName: odigos-data-collection
status:
containerStatuses:
- name: data-collection
ready: true
restartCount: 0
started: true
phase: Running
---
apiVersion: v1
kind: Pod
metadata:
labels:
odigos.io/collector-role: CLUSTER_GATEWAY
Expand Down
7 changes: 4 additions & 3 deletions tests/e2e/cli-upgrade/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,15 @@ spec:
timeout: 60s
- assert:
file: assert-odigos-upgraded.yaml
- name: Instrumented and pipeline ready after upgrade
try:
- assert:
file: assert-instrumented-and-pipeline.yaml
- name: Generate Traffic
try:
- script:
timeout: 300s
content: |
# Make sure that odigos components are ready
sleep 20

# Apply the job
kubectl apply -f 05-generate-traffic.yaml

Expand Down
Loading