Skip to content

Commit f82a7d1

Browse files
Speed up OATS acceptance tests (#198)
* Reduce OTLP export period Emit OTLP signals more frequently to speed-up OATS acceptance tests. * Bump OATS in scripts Update OATS to v0.4.0 in the local development scripts.
1 parent 0927039 commit f82a7d1

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

docker/docker-compose-aspnetcore/docker-compose.oats.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ services:
1111
- AWS_SECRET_ACCESS_KEY=localstack
1212
- AWS_REGION=us-east-1
1313
- AWS_ENDPOINT_URL_S3=http://localstack:4566
14+
- OTEL_BLRP_SCHEDULE_DELAY=5000
15+
- OTEL_BSP_SCHEDULE_DELAY=5000
1416
- OTEL_EXPORTER_OTLP_ENDPOINT=http://lgtm:4317
17+
- OTEL_METRIC_EXPORT_INTERVAL=5000
1518
ports:
1619
- "5000:8080"
1720
- "8080:8080" # for OATs

docker/docker-compose-aspnetcore/docker-compose.self-contained.oats.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ services:
1212
- AWS_SECRET_ACCESS_KEY=localstack
1313
- AWS_REGION=us-east-1
1414
- AWS_ENDPOINT_URL_S3=http://localstack:4566
15+
- OTEL_BLRP_SCHEDULE_DELAY=5000
16+
- OTEL_BSP_SCHEDULE_DELAY=5000
1517
- OTEL_EXPORTER_OTLP_ENDPOINT=http://lgtm:4317
18+
- OTEL_METRIC_EXPORT_INTERVAL=5000
1619
ports:
1720
- "5000:8080"
1821
- "8080:8080" # for OATs

docker/docker-compose-aspnetcore/docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ services:
1616
- AWS_SECRET_ACCESS_KEY=localstack
1717
- AWS_REGION=us-east-1
1818
- AWS_ENDPOINT_URL_S3=http://localstack:4566
19+
- OTEL_BLRP_SCHEDULE_DELAY=5000
20+
- OTEL_BSP_SCHEDULE_DELAY=5000
21+
- OTEL_METRIC_EXPORT_INTERVAL=5000
1922
redis:
2023
image: redis:8.0@sha256:1c9b59dca4e846f9d5ca53b72523de0905bd65ae9d917f601ed9fe8c081ae3ef
2124
ports:

scripts/run-oats-tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ $InformationPreference = "Continue"
55
$ProgressPreference = "SilentlyContinue"
66

77
# renovate: datasource=github-releases depName=oats packageName=grafana/oats
8-
${env:OATS_VERSION}="v0.3.2"
8+
${env:OATS_VERSION}="v0.4.0"
99

1010
go install "github.com/grafana/oats@${env:OATS_VERSION}"
1111
& "${env:GOPATH}/bin/oats" --timeout=5m ./docker/docker-compose-aspnetcore

scripts/run-oats-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -euo pipefail
44

55
# renovate: datasource=github-releases depName=oats packageName=grafana/oats
6-
export OATS_VERSION=v0.3.2
6+
export OATS_VERSION=v0.4.0
77

88
go install "github.com/grafana/oats@${OATS_VERSION}"
99
${GOPATH}/bin/oats --timeout=5m ./docker/docker-compose-aspnetcore

0 commit comments

Comments
 (0)