Skip to content

[chore] add standalone TA e2e test#4924

Open
odubajDT wants to merge 5 commits intoopen-telemetry:mainfrom
odubajDT:ta-standalone-e2e-tests
Open

[chore] add standalone TA e2e test#4924
odubajDT wants to merge 5 commits intoopen-telemetry:mainfrom
odubajDT:ta-standalone-e2e-tests

Conversation

@odubajDT
Copy link
Copy Markdown
Contributor

@odubajDT odubajDT commented Apr 3, 2026

Part-of: #4918

Motivation

The Target Allocator (TA) can run as a standalone component without the OpenTelemetry Operator — users deploy it directly with raw Kubernetes manifests when they need Prometheus target sharding across collectors without adopting the full operator lifecycle. Today, no e2e tests validate the TA in this standalone mode. All existing TA tests go through the operator-managed flow, leaving a gap in coverage for:

  • Target distribution correctness across collectors
  • Target redistribution on collector scale-up/down
  • Standalone deployment viability

What this PR adds

A new Chainsaw e2e test suite (tests/e2e-ta-standalone/) that deploys the TA as a raw Deployment with real collector pods — no operator involved. The test validates the core TA functionality end-to-end.

Test flow

  1. Deploy — RBAC, TA config, TA deployment, 2 collector replicas
  2. Verify initial allocation — All 6 targets distributed across collector-0 and collector-1 via GET /jobs/test-targets/targets
  3. Scale up to 3kubectl scale statefulset/collector --replicas=3
  4. Verify redistributioncollector-2 receives targets, total remains 6
  5. Scale down to 2 — Remove collector-2
  6. Verify reassignmentcollector-2's targets move back to remaining collectors

Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 3, 2026

E2E Test Results

 34 files  249 suites   2h 11m 16s ⏱️
 96 tests  96 ✅ 0 💤 0 ❌
253 runs  253 ✅ 0 💤 0 ❌

Results for commit fc2a6e1.

♻️ This comment has been updated with latest results.

odubajDT added 3 commits April 3, 2026 10:21
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
@odubajDT odubajDT force-pushed the ta-standalone-e2e-tests branch from 1ad7b88 to 8ded2cc Compare April 7, 2026 05:30
@odubajDT odubajDT marked this pull request as ready for review April 7, 2026 09:06
@odubajDT odubajDT requested a review from a team as a code owner April 7, 2026 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants