Skip to content

fix(loadtest): tag every sample with the pod size - #1377

Open
TheMeinerLP wants to merge 1 commit into
mainfrom
fix/loadtest-pod-size-tag
Open

TheMeinerLP wants to merge 1 commit into
mainfrom
fix/loadtest-pod-size-tag

Conversation

@TheMeinerLP

Copy link
Copy Markdown

Description

When I compare capacity runs, I want to read one table: which topology holds which rate at which pod size. The dashboard already offers a Pod size filter for that table, but for most of the samples it found nothing. Only the deploy requests carried a size, and that size was the artifact size (1KB to 200MB) under the same name. A resolve run on the M size therefore showed up without its pod size, and the table could not be grouped by it.

Now every sample of a run carries the pod size the run was started with. A run on the chart default resources has no size, and no size tag is written for it, so it cannot be mistaken for a sized run. The deploy requests keep their artifact size under its own name, so the pod size is not overwritten on those samples.

The load test guide describes the tag next to the --size option. Closes no issue; it is part of the add-load-tests change.

Type of change

  • fix - bug fix
  • feat - new feature
  • refactor - internal change without behaviour change
  • perf - performance improvement
  • docs - documentation only
  • test - tests only
  • build / ci / chore - tooling, dependencies, pipelines
  • Breaking change (configuration, API or behaviour that existing deployments rely on)

How was this tested?

Tests written first and seen to fail, then made green. They cover the size tag of a sized run, its absence on a run without a size, the refusal of a size that is not a tag value, the size tag in the TestRun arguments, and the artifact size of a deploy request under its own key.

cd loadtest && npx tsc --noEmit        # exit 0
cd loadtest && npx tsx --test "lib/**/*.test.ts" "runner/**/*.test.ts" "scenarios/**/*.test.ts" "profiles/**/*.test.ts" "topologies/**/*.test.ts" "k8s/**/*.test.ts" "grafana/**/*.test.ts"
# tests 338, pass 338, fail 0

The dashboard JSON is unchanged: its queries already filter on size, and the tag now provides the label they match. No cluster run was started. The Gradle build is not involved.

Checklist

  • Commit messages follow the Conventional Commits convention documented in CLAUDE.md (English, imperative, one of feat, fix, docs, refactor, test, build, ci, chore, perf)
  • Tests cover the change, or the change is not testable and I explained why above
  • ./gradlew build passes locally (not applicable: loadtest/ does not use Gradle; the TypeScript checks are listed above)
  • Documentation and configuration samples are updated if the change is user-facing
  • Existing copyright headers are preserved; new files carry the appropriate header
  • No credentials, tokens or personal data are included in the diff

The Grafana dashboard groups the maximum table by pod size, but only
the deploy requests carried a size, and that size was the artifact
size (1KB to 200MB) under the same key. Every other sample of a sized
run had no pod size, so the table could not be filtered by it.

The runner now tags every sample of a run with its --size. A run on
the chart default resources carries no size tag. The deploy requests
keep their artifact size under artifact_size, so the pod size tag is
not replaced on those samples.
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.

1 participant