Command Palette

Search for a command to run...

Назад к скиллам
скилл № 43049

performance-stability-validation

Validate clean-container performance, long-running pub/sub stability, packet integrity, and memory leaks. Use when a change needs performance or runtime…

БесплатноБез исполняемых скриптов
wheelosот wheelos★ 55 звёзд на GitHub

Установить performance-stability-validation в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Performance and stability validation

When

Use this skill when a change must be validated in a clean container for both performance and long-running runtime stability. It is the acceptance procedure for source builds, pub/sub stress, packet/data integrity, and memory-leak checks.

Acceptance contract

The result has two independent gates:

  1. Performance gate: the source tree builds in a fresh Ubuntu 22.04 x86_64 container, the repository performance baseline completes, every reported case has success=true, and the report's loss counters/rates satisfy the release threshold agreed for the hardware. Do not invent an absolute latency or throughput threshold after the run; record the hardware and use a checked-in baseline or an explicitly approved threshold.
  2. Stability gate: the long-run pub/sub case completes for 7200 seconds, receives the expected packets without payload mismatch or loss, and the bounded startup workload produces no Valgrind definite/possible leaks. A timeout, crash, OOM, packet mismatch, or leak is a failure.

Performance and stability results are reported separately. A passing build, short benchmark, or smoke test alone is not a full pass.

Clean container

Build the validation image from the repository root. Do not mount host bazel-bin, bazel-out, or a host Bazel repository cache when claiming a clean build:

docker build --target build \
  --build-arg TEST_UID="$(id -u)" \
  --build-arg TEST_GID="$(id -g)" \
  -t wheelos-core-validation:x86_64 \
  -f docker/test.dockerfile .

Run as the invoking non-root UID/GID. Use unlimited memlock for shared-memory, io_uring, or RTPS tests. Use --privileged only when the selected transport requires additional IPC/kernel permissions.

mkdir -p artifacts/validation
docker run --rm --user "$(id -u):$(id -g)" \
  -e HOME=/home/tester \
  -v "$PWD:/workspace" -w /workspace \
  --ipc private --shm-size=1g \
  --ulimit memlock=-1:-1 --security-opt seccomp=unconfined \
  wheelos-core-validation:x86_64 \
  bash -lc 'set -euo pipefail; command -v bazel; bazel --version'

The validation image includes valgrind for the leak gate. Rebuild the image if it predates this skill; never silently skip the leak gate. Docker's 64 MB default /dev/shm cannot hold the iceoryx segment (about 284 MB). A 512 MB limit has not been qualified for concurrent tests; keep the 1 GB setting for the runtime matrix. seccomp=unconfined is scoped to the validation container so non-root io_uring calls are not silently denied. For long builds and runtime matrices, use the isolated stage runner in docs/guides/release-and-verification.md and retain its reports. If the leak check is explicitly waived for a diagnostic run, record its gate as not evaluated, not passed.

Performance gate

Inside the clean container, build from source and run the repository baseline:

set -euo pipefail
bash scripts/release/check_bzlmod_lockfile.sh --check
bazel build --config=ci --distdir=/tmp/cache //cyber //:core_deb
bash scripts/release/run_performance_baseline.sh \
  --outdir=artifacts/validation/performance --quick

For a release candidate, rerun without --quick and retain baseline.json, summary.md, benchmark.log, and metadata.txt. Inspect baseline.json rather than only the process exit code:

python3 - artifacts/validation/performance/baseline.json <<'PY'
import json
import sys

results = json.load(open(sys.argv[1], encoding="utf-8"))["results"]
assert results, "performance report contains no cases"
assert all(item["success"] for item in results), "performance case failed"
assert all(item["reliability"]["total_loss"] == 0 for item in results), \
    "performance run lost packets"
PY

Record uname -a, CPU, memory, transport configuration, container image digest, Git SHA, Bazel version, and whether the run used host networking or privileged IPC. Compare throughput and p99 latency only with measurements from the same environment.

Two-hour pub/sub stress gate

The benchmark monitor has a discovery-gated long-run case. Run it for exactly two hours and write results to a separate directory:

mkdir -p artifacts/validation/stability
bazel build --config=ci //:core
source "$(bazel cquery --config=ci //:core --output=files)/bin/setup.bash"
bazel build --config=ci //tests/perf_test:benchmark_monitor
timeout --foreground --kill-after=30s 2h \
  bazel-bin/tests/perf_test/benchmark_monitor \
  --output_json="$PWD/artifacts/validation/stability/long-run.json" \
  --enable_long_run=true \
  --long_run_seconds=7200 \
  --long_run_frequency_hz=200 \
  --long_run_payload_bytes=1024 \
  2>&1 | tee artifacts/validation/stability/long-run.log

The command must exit successfully, and the JSON must contain a successful long_run result with zero reliability.total_loss. The benchmark's receive path validates packet payloads before setting success; a discovery or environment failure is

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл performance-stability-validation?

Validate clean-container performance, long-running pub/sub stability, packet integrity, and memory leaks. Use when a change needs performance or runtime stability acceptance.

Как установить скилл performance-stability-validation?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл performance-stability-validation запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить performance-stability-validation с