Repository navigation
Conversation
Native Python, Node and Go tracers send traffic through a pinned Datadog Agent, which dual-ships the same payloads to fakeintake and to Vector's datadog_agent -> datadog_traces relay. The test checks the input covers the trace shapes the typed trace model RFC maps, and that every span reaches the output exactly once and unchanged.
The client could start before the Node and Go services listened, failing the run on slow starts. The frontend healthcheck now waits for both, the Agent drops healthcheck traces, every checkout must contain spans from all three tracers, and workload images rebuild on each start.
A producer that exited before finalization was missing from the running-only container list, so its exit code was never checked. List exited containers too, and stop only the running ones.
…real-traces-dd-agent
E2E tests can declare `lifecycle.before_validation` steps in test.yaml: wait for a service to succeed, sleep, stop container groups with exit and log checks, or run a one-shot service. vdev runs them after `compose up`, and `test` refuses to validate an environment whose lifecycle did not complete. The datadog-traces and opentelemetry-traces-multiservice tests move their Python finalizers into lifecycle steps, so neither mounts the Docker socket anymore.
tessneau
left a comment
There was a problem hiding this comment.
/ci-run-e2e-trace-model
CI installs vdev by version and only builds the checkout when that version has no prebuilt binary, so the new test.yaml field needs a new version.
tessneau
left a comment
There was a problem hiding this comment.
/ci-run-e2e-trace-model
…d-agent' into tess.neau/vdev-e2e-lifecycle
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
Failed container-log retrieval can silently bypass the shutdown-log guard and mark captures complete without verifying that Vector drained successfully.
🤖 Bits Code Review · Commit 5ab0090
There was a problem hiding this comment.
More details
The specialist reported no actionable defects in lifecycle execution, trace validation, or CI integration. Docker-based execution remains unverified because the assessment was static.
🤖 Bits Code Review · Commit 5ab0090
Command::output succeeds on a non-zero exit, so a failed docker logs call had its error text searched and reject_log_messages silently skipped. Containers are now looked up by label in one place.
There was a problem hiding this comment.
I would love to avoid introducing go code in this repo. Is https://github.com/DataDog/dd-trace-rs a viable alternative here?
There was a problem hiding this comment.
good call, yeah swapped here 3455b2b
the inventory service now uses dd-trace-rs (datadog-opentelemetry 0.6.0), which exports native v0.4 payloads with datadog propagation. Coverage is unchanged: all checkouts still span three tracers (python, nodejs, rust).
The inventory service now uses dd-trace-rs (datadog-opentelemetry), so the repository no longer carries Go code. It exports native v0.4 payloads, which also removes the dd-trace-go protocol pin.
tessneau
left a comment
There was a problem hiding this comment.
/ci-run-e2e-trace-model
…lifecycle # Conflicts: # Cargo.lock # tests/e2e/datadog-traces/README.md # tests/e2e/datadog-traces/config/compose.yaml # tests/e2e/datadog-traces/config/test.yaml # tests/e2e/datadog-traces/workload/python/frontend.py # tests/e2e/datadog/traces/mod.rs # vdev/Cargo.toml
tessneau
left a comment
There was a problem hiding this comment.
/ci-run-e2e-trace-model
The published 0.3.45 binary does not include lifecycle steps. Use 0.3.46 so CI falls back to building the checkout until this version is published.
tessneau
left a comment
There was a problem hiding this comment.
/ci-run-e2e-trace-model
…lifecycle-version-bump # Conflicts: # Cargo.lock # vdev/Cargo.toml
tessneau
left a comment
There was a problem hiding this comment.
/ci-run-e2e-trace-model
OPA-6890
Summary
Moves e2e capture finalization from per-suite Python containers into vdev, as suggested in #26921 (review).
A test can now declare
lifecycle.before_validationsteps in itstest.yaml. vdev runs them once instart, right aftercompose up:wait_for_success: wait for a one-shot service to exit 0.sleep_secs: pause, for consumers with no completion signal.stop: stop a group of containers by service or label, then fail on a non-zero exit, an OOM kill or a rejected log message.run: run a profile-only compose service to a successful exit.When every step succeeds, vdev writes a completion marker, and
vdev e2e testrefuses to validate a running environment without it.datadog-tracesandopentelemetry-traces-multiservicenow use these steps. Both drop their Docker-socket finalizers; the OTel test keeps only a small drain check that waits for the output Collector to write every input span.The
datadog-tracesinventory service uses Rust with dd-trace-rs (datadog-opentelemetry0.6.0), which sends native v0.4 payloads, so it needs no tracer protocol pin.vdev is bumped to 0.3.46, because CI installs vdev by version and only builds the checkout when that version has no prebuilt binary. The published 0.3.45 binary does not include these lifecycle steps.
Failures now name the step and the cause instead of
service "finalize-captures" didn't complete successfully:References
Follows #26921.
Vector configuration
N/A
How did you test this PR?
Current CI on
36e11ea9b9: trace-model E2E passed. The Datadog traces job builtvdev 0.3.46from the checkout, ran all four lifecycle steps, and passed all 6 tests on the first attempt. Multiservice OTel validation passed all 5 tests for each transport, with all seven lifecycle steps in the logs.Previous CI on
00c53e622d:/ci-run-e2e-trace-modelpassed fordatadog-traces(with the Rust service) and both OTel transports, with every lifecycle step in the logs. Locally,vdev e2e testalso reruns against a finished environment.The steps fail when they should: a producer exiting with code 3, a rejected Vector log line, unreadable Vector logs (
logging: {driver: none}), andvdev e2e testagainst an environment whose lifecycle failed.Does this PR include user facing changes?
no-changeloglabel to this PR.Contributor Guidelines
@vectordotdev/vectorto reach out to us regarding this PR.git merge origin masterandgit push.