Skip to content

Commit 1815d40

Browse files
ci: update testagent version and use vcr ci mode (#14651)
## Description Updates the testagent version to 1.34.0, which added a CI mode for the VCR proxy feature, which throws if a cassette is missing for a given proxied request. ## Testing I will include a commit that removes a cassette for one of our (LLM Observability) tests, and will attach the output from CI here. Then, the commit will be reverted. ``` File "/go/src/github.com/DataDog/apm-reliability/dd-trace-py/.riot/venv_py31018_14825e2ec901e2cc/lib/python3.10/site-packages/openai/_base_client.py", line 1020, in _request raise self._make_status_error_from_response(err.response) from None openai.InternalServerError: Cassette openai_completions_post_076bb2cf.yaml not found while running in CI mode. Please generate the cassette locally and commit it. ``` Additionally, I verified that running the container locally did just end up re-generating the cassette. ## Risks None --------- Co-authored-by: Brett Langdon <[email protected]>
1 parent f8096cb commit 1815d40

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitlab/services.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@
1212
DD_REMOTE_CONFIGURATION_REFRESH_INTERVAL: 5s
1313
DD_DOGSTATSD_NON_LOCAL_TRAFFIC: true
1414
testagent:
15-
name: registry.ddbuild.io/images/mirror/dd-apm-test-agent/ddapm-test-agent:v1.29.1
15+
name: registry.ddbuild.io/images/mirror/dd-apm-test-agent/ddapm-test-agent:v1.34.0
1616
alias: testagent
1717
variables:
1818
LOG_LEVEL: ERROR
1919
SNAPSHOT_DIR: ${CI_PROJECT_DIR}/tests/snapshots
2020
SNAPSHOT_CI: 1
21+
VCR_CI_MODE: true
22+
OTLP_GRPC_PORT: 4136
2123
VCR_CASSETTES_DIRECTORY: ${CI_PROJECT_DIR}/tests/llmobs/llmobs_cassettes
2224
PORT: 9126
2325
DD_POOL_TRACE_CHECK_FAILURES: true

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ services:
121121
volumes:
122122
- ddagent:/tmp/ddagent:rw
123123
testagent:
124-
image: ghcr.io/datadog/dd-apm-test-agent/ddapm-test-agent:v1.29.1
124+
image: ghcr.io/datadog/dd-apm-test-agent/ddapm-test-agent:v1.34.0
125125
ports:
126126
- "127.0.0.1:9126:8126"
127127
volumes:

0 commit comments

Comments
 (0)