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 tests timeouts #1789

Merged
merged 138 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
138 commits
Select commit Hold shift + click to select a range
c25c631
Merge pull request #1 from odigos-io/main
BenElferink Oct 20, 2024
12046ba
Refactor old ui to new product design (#1605)
alonkeyval Oct 21, 2024
6037f4c
Merge remote-tracking branch 'odigos/new-ui' into gen-1511-new-ui
BenElferink Oct 21, 2024
62934de
[GEN-1539] Refactor action api to gql (#1606)
alonkeyval Oct 22, 2024
d456363
[GEN-1540] Add update action mutation (#1607)
alonkeyval Oct 22, 2024
02682f9
Merge branch 'new-ui' of https://github.com/odigos-io/odigos into gen…
BenElferink Oct 22, 2024
522e782
feat(frontend): added actions form, and fixed bugs: empty inputs, sea…
BenElferink Oct 22, 2024
f435deb
[GEN-1541] Add delete action mutation (#1609)
alonkeyval Oct 22, 2024
9dbdc21
Lint rules (#1610)
alonkeyval Oct 22, 2024
a55f35b
fix: KeyValueInputsList would not always call onChange
BenElferink Oct 22, 2024
619bb6d
feat: custom fields with state management
BenElferink Oct 22, 2024
389fc46
fix: semicolon
BenElferink Oct 22, 2024
2487549
fix: docs link
BenElferink Oct 22, 2024
9e5224b
fix: frament & imports
BenElferink Oct 22, 2024
e4a8350
fix: MONITORING_OPTIONS from global consts
BenElferink Oct 22, 2024
a908130
fix: use const, not string
BenElferink Oct 22, 2024
38e862f
Merge pull request #2 from BenElferink/gen-1515-dynamic-action-form
BenElferink Oct 22, 2024
31f1db3
fix: dynamic signals for actions
BenElferink Oct 22, 2024
bc3bad3
fix: drawer & modal widths
BenElferink Oct 22, 2024
f1ac07b
[GEN-1546] Add delete attr new api (#1612)
alonkeyval Oct 22, 2024
254427a
[GEN-1546] Add pii masking new api (#1613)
alonkeyval Oct 22, 2024
c769731
[GEN-1513]: actions modal form (#1608)
BenElferink Oct 22, 2024
89a6594
fix: stringify for graphql
BenElferink Oct 22, 2024
9d260f4
Merge remote-tracking branch 'odigos/new-ui' into gen-1515-fix-string…
BenElferink Oct 22, 2024
19eb1fe
[GEN-1515]: fix stringify for graphql (#1615)
BenElferink Oct 27, 2024
446c37a
Merge branch 'main' into new-ui
BenElferink Oct 27, 2024
f97a5a1
Merge pull request #4 from odigos-io/new-ui
BenElferink Oct 27, 2024
944480f
[GEN-1547] Add error sampler api (#1629)
alonkeyval Oct 27, 2024
2637c1e
[GEN-1555] Add new latency sampler api (#1630)
alonkeyval Oct 27, 2024
4cedea9
[GEN-1557] Add prod sampler new api (#1631)
alonkeyval Oct 27, 2024
40f2215
[GEN-1559] Add new gql api for rename attr action (#1634)
alonkeyval Oct 27, 2024
2d4b1bb
[GEN-1517]: actions add via gql (#1635)
BenElferink Oct 27, 2024
afa1268
Merge branch 'new-ui' of https://github.com/odigos-io/odigos
BenElferink Oct 27, 2024
eff6d90
[GEN-1529]: latency sampler (#1644)
BenElferink Oct 28, 2024
536f32f
Merge branch 'new-ui' of https://github.com/odigos-io/odigos
BenElferink Oct 28, 2024
1ea39de
[GEN-1521]: update action - AddClusterInfo (#1646)
BenElferink Oct 28, 2024
fa352be
Merge branch 'new-ui' of https://github.com/odigos-io/odigos
BenElferink Oct 28, 2024
f3c1a26
[GEN-1579]: button outline (#1647)
BenElferink Oct 28, 2024
3bb2338
[GEN-1580]: useKeyDown hook fixed (#1648)
BenElferink Oct 28, 2024
a4f03d8
Merge branch 'new-ui' of https://github.com/odigos-io/odigos
BenElferink Oct 28, 2024
2a83b84
[GEN-1591]: make "add action" in overview functional (#1650)
BenElferink Oct 29, 2024
b3fa682
Merge branch 'new-ui' of https://github.com/odigos-io/odigos
BenElferink Oct 29, 2024
9ac0d13
[GEN-1583]: fix validations for "add actions" custom fields (#1651)
BenElferink Oct 29, 2024
f0a397f
Merge branch 'new-ui' of https://github.com/odigos-io/odigos
BenElferink Oct 29, 2024
33cb867
[GEN-1521]: update actions (#1652)
BenElferink Oct 29, 2024
2c13a75
Merge branch 'new-ui' of https://github.com/odigos-io/odigos
BenElferink Oct 29, 2024
d42c32b
[GEN-1593]: upgraded "status" component (#1655)
BenElferink Oct 29, 2024
3ab5c0c
Merge branch 'new-ui' of https://github.com/odigos-io/odigos
BenElferink Oct 29, 2024
c15a6ba
[GEN-1574]: delete actions (#1657)
BenElferink Oct 30, 2024
977c57b
Merge branch 'new-ui' of https://github.com/odigos-io/odigos
BenElferink Oct 30, 2024
fa609c3
[GEN-1592] Add instrumentation rules to gql (#1659)
alonkeyval Oct 30, 2024
78eda6e
[GEN-1582]: UI tweaks (#1658)
BenElferink Oct 30, 2024
6a91aba
[GEN-1603]: add rules column to overview (#1661)
BenElferink Oct 30, 2024
d95b6fe
Merge branch 'new-ui' of https://github.com/odigos-io/odigos
BenElferink Oct 30, 2024
fa5c457
fix: autocompleted notification type (#1664)
BenElferink Oct 31, 2024
cde9bdd
Merge branch 'new-ui' of https://github.com/odigos-io/odigos
BenElferink Oct 31, 2024
93bbe30
[GEN-1604]: create & get rules (#1665)
BenElferink Oct 31, 2024
7ca44f7
Merge branch 'new-ui' of https://github.com/odigos-io/odigos
BenElferink Oct 31, 2024
c270e78
[GEN-1616] Add delete destination to gql (#1669)
alonkeyval Nov 3, 2024
9358337
[GEN-1601]: refetch after create/update destination (#1668)
BenElferink Nov 3, 2024
29d2e0d
Merge branch 'new-ui' of https://github.com/odigos-io/odigos
BenElferink Nov 3, 2024
08eacfe
[GEN-1581]: lists auto-focus & disable delete (#1670)
BenElferink Nov 3, 2024
240730f
[GEN-1613]: delete destination (#1672)
BenElferink Nov 3, 2024
5647431
Merge branch 'new-ui' of https://github.com/odigos-io/odigos
BenElferink Nov 3, 2024
9748362
[GEN-1620] Add metrics to gql (#1675)
alonkeyval Nov 3, 2024
8d22beb
Merge branch 'new-ui' of https://github.com/odigos-io/odigos
BenElferink Nov 3, 2024
a4a5d34
[GEN-1584]: fix close modal & animations (#1676)
BenElferink Nov 3, 2024
d933798
[GEN-1536]: scramble secret values (#1677)
BenElferink Nov 3, 2024
e53746d
Merge branch 'new-ui' of https://github.com/odigos-io/odigos
BenElferink Nov 3, 2024
2c9c79b
[GEN-1621]: add cancel modal & breakdown overview-drawer files (#1682)
BenElferink Nov 4, 2024
0dab5bd
[GEN-1626]: add mockup for overview filters (#1683)
BenElferink Nov 4, 2024
6fa1955
Merge branch 'new-ui' of https://github.com/odigos-io/odigos
BenElferink Nov 4, 2024
702e71a
[GEN-1641]: added UI for metrics (#1688)
BenElferink Nov 5, 2024
a6b6ec2
Merge branch 'new-ui' of https://github.com/odigos-io/odigos
BenElferink Nov 5, 2024
577ef58
[GEN-1646] Add destination condition and type (#1692)
alonkeyval Nov 5, 2024
746f560
Merge branch 'new-ui' of https://github.com/odigos-io/odigos
BenElferink Nov 5, 2024
0c39a29
[GEN-1642]: get metrics from API (with mockup for dev mode) (#1693)
BenElferink Nov 5, 2024
5c55719
Merge branch 'new-ui' of https://github.com/odigos-io/odigos
BenElferink Nov 5, 2024
a816fda
[GEN-1624]: refactor existing components in preparation for notificat…
BenElferink Nov 6, 2024
c790156
[GEN-1670]: kill redux, use new toasts (#1699)
BenElferink Nov 6, 2024
d9292ff
[GEN-1671]: toast animations + enriched messages (#1701)
BenElferink Nov 6, 2024
834e5ed
Merge branch 'new-ui' of https://github.com/odigos-io/odigos
BenElferink Nov 6, 2024
e15ea9a
[GEN-1672]: add logic for "go to details" button of toast notificatio…
BenElferink Nov 7, 2024
8f1cd3e
Merge branch 'new-ui' of https://github.com/odigos-io/odigos
BenElferink Nov 7, 2024
9f25eb4
[GEN-1668]: add handling for "dirty forms" (#1704)
BenElferink Nov 7, 2024
f4435c0
Merge branch 'new-ui' of https://github.com/odigos-io/odigos
BenElferink Nov 7, 2024
f596073
[GEN-1665]: formatting with prettier instead of eslint (#1705)
BenElferink Nov 10, 2024
b3b5007
[GEN-1629]: boolean store (isPolling) (#1706)
BenElferink Nov 10, 2024
1cd0a4b
Merge branch 'new-ui' of https://github.com/odigos-io/odigos
BenElferink Nov 10, 2024
0bbd34b
[GEN-1679]: added useSourceCRUD hook (#1720)
BenElferink Nov 10, 2024
eec5074
Merge branch 'new-ui' of https://github.com/odigos-io/odigos
BenElferink Nov 10, 2024
d9e8582
[GEN-1669] delete unused files (#1721)
alonkeyval Nov 10, 2024
c94d982
Merge branch 'new-ui' of https://github.com/odigos-io/odigos
BenElferink Nov 10, 2024
f32923b
[GEN-1680]: added new "toggle buttons" component (#1723)
BenElferink Nov 10, 2024
8771192
[GEN-1691] load styled on server (#1725)
alonkeyval Nov 10, 2024
5e3bb02
[GEN-1694]: search overview entities (#1731)
BenElferink Nov 11, 2024
fed3d84
Merge branch 'new-ui' of https://github.com/odigos-io/odigos
BenElferink Nov 11, 2024
b24e7c1
feat: UI tweaks in prep for overview filters
BenElferink Nov 11, 2024
5e078a4
feat: add filter action buttons
BenElferink Nov 11, 2024
5cf7fdd
feat: filter overview by namespace
BenElferink Nov 11, 2024
5cdb31e
feat: filter overview by "kind"
BenElferink Nov 11, 2024
3a371f7
feat: filter over by metrics
BenElferink Nov 11, 2024
d0748e9
feat: add logic for dropdown mutli-select
BenElferink Nov 11, 2024
d7ec9fb
fix: temporary labels for multi select
BenElferink Nov 11, 2024
b42215d
fix: dropdown smaller components
BenElferink Nov 11, 2024
80bb335
feat: multi-labels with remove buttons
BenElferink Nov 11, 2024
d10a8fd
fix: minor edits
BenElferink Nov 11, 2024
ad8323c
fix: filters is now a container
BenElferink Nov 11, 2024
29a9b27
perf: re-use styled components
BenElferink Nov 11, 2024
704e86d
fix: button alignment
BenElferink Nov 11, 2024
51bf1d3
fix: smaller components
BenElferink Nov 11, 2024
5130970
fix: continued cleanup
BenElferink Nov 11, 2024
9e3b772
feat: prepare component for error messages dropdown
BenElferink Nov 11, 2024
c868eab
feat: filter overview by error messages
BenElferink Nov 11, 2024
5f88f86
fix: toggle & dropdown
BenElferink Nov 12, 2024
52a7065
Merge branch 'odigos-ui-beta' of https://github.com/odigos-io/odigos …
BenElferink Nov 12, 2024
d1674a5
Merge branch 'odigos-ui-beta' of https://github.com/odigos-io/odigos …
BenElferink Nov 12, 2024
2abe0e4
fix: duplicates
BenElferink Nov 12, 2024
4e19e69
fix: dropdown
BenElferink Nov 12, 2024
6d2af50
Merge branch 'odigos-ui-beta' of https://github.com/odigos-io/odigos …
BenElferink Nov 12, 2024
89ab764
Merge pull request #5 from BenElferink/gen-1695
BenElferink Nov 12, 2024
05f0b0d
Merge branch 'odigos-ui-beta' of https://github.com/odigos-io/odigos
BenElferink Nov 14, 2024
e24f361
Merge branch 'odigos-ui-beta' of https://github.com/odigos-io/odigos
BenElferink Nov 17, 2024
9b886ba
Merge branch 'odigos-ui-beta' of https://github.com/odigos-io/odigos
BenElferink Nov 17, 2024
7776a8f
Merge branch 'odigos-ui-beta' of https://github.com/odigos-io/odigos
BenElferink Nov 17, 2024
b6be431
Merge branch 'odigos-ui-beta' of https://github.com/odigos-io/odigos
BenElferink Nov 17, 2024
47da6bc
Merge branch 'odigos-ui-beta' of https://github.com/odigos-io/odigos
BenElferink Nov 19, 2024
7ab5c25
Merge branch 'odigos-ui-beta' of https://github.com/odigos-io/odigos
BenElferink Nov 19, 2024
0fc748b
Merge branch 'odigos-ui-beta' of https://github.com/odigos-io/odigos
BenElferink Nov 19, 2024
0a5b64d
fix: YAML parse error
BenElferink Nov 19, 2024
d3d6fce
Merge branch 'odigos-ui-beta' into fix-YAML-parse-error
BenElferink Nov 19, 2024
fc001d2
fix: helm chart timeout
BenElferink Nov 19, 2024
dec8f16
Merge branch 'odigos-ui-beta' of https://github.com/odigos-io/odigos …
BenElferink Nov 19, 2024
1246221
Merge branch 'fix-YAML-parse-error' of https://github.com/BenElferink…
BenElferink Nov 19, 2024
3f00467
fix: bump to 200s
BenElferink Nov 19, 2024
d30d41a
fix: catch pods logs the correct ns + expand timeout for context prop…
tamirdavid1 Nov 19, 2024
75f0a4d
Merge branch 'main' of https://github.com/odigos-io/odigos into fix-Y…
BenElferink Nov 19, 2024
93bca91
Merge branch 'odigos-ui-beta' into fix-YAML-parse-error
BenElferink Nov 19, 2024
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: 1 addition & 1 deletion tests/common/traceql_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function process_yaml_file() {
echo "Test FAILED: expected $expected_count got $num_of_traces"
exit 1
else
echo "Test PASSED"
echo "Test PASSED: expected $expected_count got $num_of_traces"
exit 0
fi
}
Expand Down
32 changes: 20 additions & 12 deletions tests/e2e/cli-upgrade/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,26 +112,34 @@ spec:
- name: Generate Traffic
try:
- script:
timeout: 60s
timeout: 300s
content: |
# Make sure that odigos components are ready
sleep 20

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

# Wait for the job to complete
job_name=$(kubectl get -f 05-generate-traffic.yaml -o=jsonpath='{.metadata.name}')
kubectl wait --for=condition=complete job/$job_name

# Delete the job
kubectl delete -f 05-generate-traffic.yaml

while true; do
# Apply the job
kubectl apply -f 05-generate-traffic.yaml

# Wait for the job to complete
job_name=$(kubectl get -f 05-generate-traffic.yaml -o=jsonpath='{.metadata.name}')
kubectl wait --for=condition=complete job/$job_name

# Delete the job
kubectl delete -f 05-generate-traffic.yaml

# wait for traces to be available
sleep 8

# Run the wait-for-trace script
echo "Running TraceQL test at $(date)"
../../common/traceql_runner.sh tracesql/wait-for-trace.yaml

if [ $? -eq 0 ]; then
break
else
sleep 3
../../common/flush_traces.sh
sleep 5
fi
done
- name: Verify Trace - Context Propagation
Expand Down
223 changes: 183 additions & 40 deletions tests/e2e/helm-chart/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,47 +6,190 @@ spec:
description: This e2e test install Odigos via helm chart on custom namespace
skipDelete: true
steps:
- name: Prepare destination
try:
- script:
timeout: 60s
content: |
helm repo add grafana https://grafana.github.io/helm-charts
helm repo update
helm install e2e-tests grafana/tempo -n traces --create-namespace --set tempo.storage.trace.block.version=vParquet4 \
--set tempo.ingester.trace_idle_period=5s \
--set tempo.ingester.max_block_duration=20s \
--version 1.10.1
- assert:
file: assert-tempo-running.yaml
- name: Wait for destination to be ready
try:
- script:
timeout: 60s
content: ../../common/wait_for_dest.sh
- name: Install Odigos
try:
- script:
content: |
# The pwd is the directory of this file, so we have to walk up to the project root to find the helm chart
P="../../.."
# "build" complete helm chart by copying CRDs into the template folder
cp -r $P/api/config/crd/bases/* $P/helm/odigos/templates/crds/
if [ "$MODE" = "cross-cloud-tests" ]; then
helm upgrade --install odigos $P/helm/odigos --create-namespace --namespace odigos-test-ns --set image.tag="$COMMIT_HASH" --set imagePrefix=public.ecr.aws/y2v0v6s7
- name: Prepare destination
try:
- script:
timeout: 60s
content: |
helm repo add grafana https://grafana.github.io/helm-charts
helm repo update
helm install e2e-tests grafana/tempo -n traces --create-namespace --set tempo.storage.trace.block.version=vParquet4 \
--set tempo.ingester.trace_idle_period=5s \
--set tempo.ingester.max_block_duration=20s \
--version 1.10.1
- assert:
file: assert-tempo-running.yaml
- name: Wait for destination to be ready
try:
- script:
timeout: 60s
content: ../../common/wait_for_dest.sh
- name: Install Odigos
try:
- script:
content: |
# The pwd is the directory of this file, so we have to walk up to the project root to find the helm chart
P="../../.."
# "build" complete helm chart by copying CRDs into the template folder
cp -r $P/api/config/crd/bases/* $P/helm/odigos/templates/crds/
if [ "$MODE" = "cross-cloud-tests" ]; then
helm upgrade --install odigos $P/helm/odigos --create-namespace --namespace odigos-test-ns --set image.tag="$COMMIT_HASH" --set imagePrefix=public.ecr.aws/y2v0v6s7
else
helm upgrade --install odigos $P/helm/odigos --create-namespace --namespace odigos-test-ns --set image.tag=e2e-test
fi
kubectl label namespace odigos-test-ns odigos.io/system-object="true"
timeout: 60s
- name: Verify Odigos Installation
try:
- script:
timeout: 200s
content: |
echo "Starting Odigos version check..."
export ACTUAL_VERSION=$(../../../cli/odigos version --cluster)
echo "Actual Version: $ACTUAL_VERSION"

if [ "$MODE" = "cross-cloud-tests" ]; then
if [ "$ACTUAL_VERSION" != "$COMMIT_HASH" ]; then
echo "Odigos version is not the expected commit hash, got $ACTUAL_VERSION"
exit 1
fi

kubectl wait --for=condition=ready pods --all -n odigos-test-ns --timeout=40s

else
if [ "$ACTUAL_VERSION" != "e2e-test" ]; then
echo "Odigos version is not e2e-test, got $ACTUAL_VERSION"
exit 1
fi
fi
- assert:
file: assert-odigos-installed.yaml
- name: Install Demo App
try:
- script:
timeout: 100s
content: |
if [ "$MODE" != "cross-cloud-tests" ]; then
docker pull keyval/odigos-demo-inventory:v0.1
docker pull keyval/odigos-demo-membership:v0.1
docker pull keyval/odigos-demo-coupon:v0.1
docker pull keyval/odigos-demo-frontend:v0.2
kind load docker-image keyval/odigos-demo-inventory:v0.1
kind load docker-image keyval/odigos-demo-membership:v0.1
kind load docker-image keyval/odigos-demo-coupon:v0.1
kind load docker-image keyval/odigos-demo-frontend:v0.2
else
echo "Skipping docker pull and kind load for cross-cloud-tests mode"
fi
- apply:
file: 02-install-simple-demo.yaml
- script:
timeout: 70s
content: |
# Wait for the pods to be ready
kubectl wait --for=condition=ready pod -l app=frontend --timeout=60s
kubectl wait --for=condition=ready pod -l app=coupon --timeout=60s
kubectl wait --for=condition=ready pod -l app=inventory --timeout=60s
kubectl wait --for=condition=ready pod -l app=pricing --timeout=60s
kubectl wait --for=condition=ready pod -l app=membership --timeout=60s
- assert:
file: assert-apps-installed.yaml

- name: Instrument Namespace
try:
- apply:
file: 03-instrument-ns.yaml

- name: Assert Runtime Detected
try:
- assert:
timeout: 2m
file: assert-runtime-detected.yaml

- name: Add Destination
try:
- apply:
file: 04-add-destination.yaml

- name: Assert Instrumented and Pipeline
try:
- assert:
file: assert-instrumented-and-pipeline.yaml

- name: Verify InstrumentationConfig Generation Status
try:
- script:
timeout: 65s
content: |
kubectl wait --for=jsonpath='{.status.observedWorkloadGeneration}'=2 -n default instrumentationconfig/deployment-frontend --timeout=60s
kubectl wait --for=jsonpath='{.status.observedWorkloadGeneration}'=2 -n default instrumentationconfig/deployment-coupon --timeout=60s
kubectl wait --for=jsonpath='{.status.observedWorkloadGeneration}'=2 -n default instrumentationconfig/deployment-inventory --timeout=60s
kubectl wait --for=jsonpath='{.status.observedWorkloadGeneration}'=2 -n default instrumentationconfig/deployment-pricing --timeout=60s
kubectl wait --for=jsonpath='{.status.observedWorkloadGeneration}'=2 -n default instrumentationconfig/deployment-membership --timeout=60s

- name: Assert Post Destination Runtime Details
try:
- assert:
file: assert-post-dest-runtime-details.yaml

- name: Generate Traffic
try:
- script:
timeout: 300s
content: |
# Apply the job
kubectl apply -f 05-generate-traffic.yaml

# Wait for the job to complete
job_name=$(kubectl get -f 05-generate-traffic.yaml -o=jsonpath='{.metadata.name}')
kubectl wait --for=condition=complete job/$job_name

# Delete the job
kubectl delete -f 05-generate-traffic.yaml

while true; do
# wait for traces to be available
sleep 8

# Run the wait-for-trace script
echo "Running TraceQL test at $(date)"
../../common/traceql_runner.sh tracesql/wait-for-trace.yaml

if [ $? -eq 0 ]; then
break
else
helm upgrade --install odigos $P/helm/odigos --create-namespace --namespace odigos-test-ns --set image.tag=e2e-test
../../common/flush_traces.sh
sleep 5
fi
kubectl label namespace odigos-test-ns odigos.io/system-object="true"
timeout: 60s
- name: Verify Odigos Installation
try:
- script:
timeout: 200s
content: |
echo "Starting Odigos version check..."
export ACTUAL_VERSION=$(../../../cli/odigos version --cluster)
echo "Actual Version: $ACTUAL_VERSION"
done
- name: Verify Trace - Context Propagation
try:
- script:
timeout: 30s
content: |
../../common/traceql_runner.sh tracesql/context-propagation.yaml
catch:
- podLogs:
name: odiglet
namespace: odigos-test-ns
- name: Verify Trace - Resource Attributes
try:
- script:
content: |
../../common/traceql_runner.sh tracesql/resource-attributes.yaml
catch:
- podLogs:
name: odiglet
namespace: odigos-test-ns
- name: Verify Trace - Span Attributes
try:
- script:
content: |
../../common/traceql_runner.sh tracesql/span-attributes.yaml
catch:
- podLogs:
name: odiglet
namespace: odigos-test-ns

if [ "$MODE" = "cross-cloud-tests" ]; then
if [ "$ACTUAL_VERSION" != "$COMMIT_HASH" ]; then
Expand Down Expand Up @@ -135,7 +278,7 @@ spec:
- name: Generate Traffic
try:
- script:
timeout: 90s
timeout: 200s
content: |
while true; do
# Apply the job
Expand Down
73 changes: 56 additions & 17 deletions tests/e2e/multi-apps/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,26 +90,65 @@ spec:
- assert:
file: assert-instrumented-and-pipeline.yaml

- name: Assert Post Destination Runtime Details
try:
- assert:
file: assert-post-dest-runtime-details.yaml
- name: Generate Traffic
try:
- script:
timeout: 300s
content: |
# Apply the job
kubectl apply -f 05-generate-traffic.yaml

- name: Generate Traffic
try:
- script:
timeout: 60s
content: |
while true; do
# Apply the job
kubectl apply -f 05-generate-traffic.yaml
# Wait for the job to complete
job_name=$(kubectl get -f 05-generate-traffic.yaml -o=jsonpath='{.metadata.name}')
kubectl wait --for=condition=complete job/$job_name

# Delete the job
kubectl delete -f 05-generate-traffic.yaml

# Wait for the job to complete
job_name=$(kubectl get -f 05-generate-traffic.yaml -o=jsonpath='{.metadata.name}')
kubectl wait --for=condition=complete job/$job_name
while true; do
# wait for traces to be available
sleep 8

# Delete the job
kubectl delete -f 05-generate-traffic.yaml
# Run the wait-for-trace script
echo "Running TraceQL test at $(date)"
../../common/traceql_runner.sh tracesql/wait-for-trace.yaml

if [ $? -eq 0 ]; then
break
else
../../common/flush_traces.sh
sleep 5
fi
done
- name: Verify Trace - Context Propagation
try:
- script:
timeout: 30s
content: |
../../common/traceql_runner.sh tracesql/context-propagation.yaml
catch:
- podLogs:
name: odiglet
namespace: odigos-system
- name: Verify Trace - Resource Attributes
try:
- script:
content: |
../../common/traceql_runner.sh tracesql/resource-attributes.yaml
catch:
- podLogs:
name: odiglet
namespace: odigos-system
- name: Verify Trace - Span Attributes
try:
- script:
timeout: 60s
content: |
../../common/traceql_runner.sh tracesql/span-attributes.yaml
catch:
- podLogs:
name: odiglet
namespace: odigos-system

# Run the wait-for-trace script
../../common/traceql_runner.sh tracesql/wait-for-trace.yaml
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/workload-lifecycle/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
- name: Build and Load Test App Images
try:
- script:
timeout: 350s
timeout: 450s
content: |
docker build -t nodejs-unsupported-version:v0.0.1 -f services/nodejs-http-server/unsupported-version.Dockerfile services/nodejs-http-server
kind load docker-image nodejs-unsupported-version:v0.0.1
Expand Down
Loading