-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into odiglet_base_bookworm
- Loading branch information
Showing
110 changed files
with
4,587 additions
and
1,074 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,27 @@ on: | |
branches: | ||
- main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
kubernetes-test: | ||
runs-on: large-runner | ||
runs-on: warp-ubuntu-latest-x64-8x-spot | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
kube-version: | ||
- "1.23" | ||
- "1.30" | ||
test-scenario: | ||
- "multi-apps" | ||
- "helm-chart" | ||
include: | ||
- kube-version: "1.23" | ||
kind-image: "kindest/node:v1.23.17@sha256:14d0a9a892b943866d7e6be119a06871291c517d279aedb816a4b4bc0ec0a5b3" | ||
- kube-version: "1.30" | ||
kind-image: "kindest/node:v1.30.0@sha256:047357ac0cfea04663786a612ba1eaba9702bef25227a794b52890dd8bcd692e" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
@@ -18,81 +36,32 @@ jobs: | |
with: | ||
go-version: "~1.22" | ||
check-latest: true | ||
cache: true | ||
cache-dependency-path: | | ||
**/go.sum | ||
- name: Set up Helm | ||
uses: azure/setup-helm@v4 | ||
with: | ||
version: v3.9.0 | ||
- name: Setup BATS | ||
uses: mig4/setup-bats@v1 | ||
- name: Install chainsaw | ||
uses: kyverno/[email protected] | ||
- name: Create Kind Cluster | ||
uses: helm/[email protected] | ||
with: | ||
node_image: ${{ matrix.kind-image }} | ||
version: "v0.23.0" | ||
cluster_name: kind | ||
- name: Install FE | ||
run: | | ||
cd frontend/webapp | ||
yarn install | ||
- name: Build CLI | ||
run: | | ||
cd cli | ||
go build -tags=embed_manifests -o odigos | ||
- name: Build and Load Odigos Images | ||
run: | | ||
TAG=e2e-test make build-images load-to-kind | ||
- name: Install Odigos | ||
run: | | ||
cli/odigos install --version e2e-test | ||
- name: Install Collector - Add Dependencies | ||
shell: bash | ||
run: | | ||
helm repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: 'open-telemetry/opentelemetry-helm-charts' | ||
path: opentelemetry-helm-charts | ||
- name: Install Collector - Helm install | ||
run: helm install test -f .github/workflows/e2e/collector-helm-values.yaml opentelemetry-helm-charts/charts/opentelemetry-collector --namespace traces --create-namespace | ||
- name: Wait for Collector to be ready | ||
run: | | ||
kubectl wait --for=condition=Ready --timeout=60s -n traces pod/test-opentelemetry-collector-0 | ||
- name: Install KV Shop | ||
run: | | ||
kubectl create ns kvshop | ||
kubectl apply -f .github/workflows/e2e/kv-shop.yaml -n kvshop | ||
- name: Wait for KV Shop to be ready | ||
run: | | ||
kubectl wait --for=condition=Ready --timeout=100s -n kvshop pods --all | ||
- name: Select kvshop namespace for instrumentation | ||
run: | | ||
kubectl label namespace kvshop odigos-instrumentation=enabled | ||
- name: Connect to Jaeger destination | ||
run: | | ||
kubectl create -f .github/workflows/e2e/jaeger-dest.yaml | ||
- name: Wait for Odigos to bring up collectors | ||
run: | | ||
while [[ $(kubectl get daemonset odigos-data-collection -n odigos-system -o jsonpath='{.status.numberReady}') != 1 ]]; | ||
do | ||
echo "Waiting for odigos-data-collection daemonset to be created" && sleep 3; | ||
done | ||
while [[ $(kubectl get deployment odigos-gateway -n odigos-system -o jsonpath='{.status.readyReplicas}') != 1 ]]; | ||
do | ||
echo "Waiting for odigos-data-collection deployment to be created" && sleep 3; | ||
done | ||
while [[ $(kubectl get pods --output=jsonpath='{range .items[*]}{.status.phase}{"\n"}{end}' -n kvshop | grep -v Running | wc -l) != 0 ]]; | ||
do | ||
echo "Waiting for kvshop pods to be running" && sleep 3; | ||
done | ||
sleep 10 | ||
kubectl get pods -A | ||
kubectl get svc -A | ||
- name: Start bot job | ||
run: | | ||
kubectl create -f .github/workflows/e2e/buybot-job.yaml -n kvshop | ||
- name: Wait for bot job to complete | ||
run: | | ||
kubectl wait --for=condition=Complete --timeout=60s job/buybot-job -n kvshop | ||
- name: Copy trace output | ||
run: | | ||
echo "Sleeping for 10 seconds to allow traces to be collected" | ||
sleep 10 | ||
kubectl cp -c filecp traces/test-opentelemetry-collector-0:tmp/trace.json ./.github/workflows/e2e/bats/traces-orig.json | ||
cat ./.github/workflows/e2e/bats/traces-orig.json | ||
- name: Verify output trace | ||
- name: Run E2E Tests | ||
run: | | ||
bats .github/workflows/e2e/bats/verify.bats | ||
chainsaw test tests/e2e/${{ matrix.test-scenario }} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.