mirror of
https://github.com/azaion/satellite-provider.git
synced 2026-06-21 12:01:15 +00:00
[AZ-492] Cycle 3 batch 4: perf harness PT-07 + PT-08 + JWT-attach
Drains all three deferred perf-harness items in one batch: - PT-01..PT-06 now carry Authorization: Bearer minted via the canonical SatelliteProvider.TestSupport.JwtTokenFactory (AZ-491) — no third copy of JWT logic in the shell. - PT-07 implemented as cold + warm dual-pass distribution (N=20 each), reports p50/p95 for both passes and fails if warm p95 >= cold p95. - PT-08 implemented as 20-batch upload distribution with batch p95 gated at the AZ-488 2000 ms target; per-item gate cost reported as derived proxy (batch_p95 / batch_size). New SatelliteProvider.IntegrationTests/PerfBootstrap.cs adds two CLI short-circuit subcommands (--mint-only and --gen-uav-fixture <path>) invoked by the shell so the perf script never inlines the JWT or JPEG-fixture logic. The dispatch sits at the top of Program.cs Main and runs before any HTTP / DB / readiness setup. performance-tests.md PT-07 + PT-08 flip from Deferred to Implemented. traceability-matrix.md PT-07 + PT-08 rows move from recorded to covered (PT-08 partial due to per-item proxy — flagged Low in batch-4 review). _docs/_process_leftovers/2026-05-11_perf-pt07-harness.md deleted; the leftovers directory is now empty. Closes cycle-2 retro Action 2; LESSONS.md [process] rule about Deferred NFRs remains in force as a guardrail. Also includes the previously-uncommitted cumulative review report for cycle-3 batches 01-03 (generated at the end of batch 3 but not staged). Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -6,6 +6,21 @@ class Program
|
||||
{
|
||||
static async Task<int> Main(string[] args)
|
||||
{
|
||||
// AZ-492: perf-harness bootstrap subcommands short-circuit before any
|
||||
// HTTP / DB setup so they can be invoked from scripts/run-performance-tests.sh
|
||||
// on a host that only has the .NET SDK installed.
|
||||
if (args.Length > 0)
|
||||
{
|
||||
if (args[0].Equals("--mint-only", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return PerfBootstrap.MintToken();
|
||||
}
|
||||
if (args[0].Equals("--gen-uav-fixture", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return PerfBootstrap.GenerateUavFixture(args);
|
||||
}
|
||||
}
|
||||
|
||||
var apiUrl = Environment.GetEnvironmentVariable("API_URL") ?? "http://api:8080";
|
||||
var modeEnv = Environment.GetEnvironmentVariable("INTEGRATION_TESTS_MODE")?.Trim().ToLowerInvariant();
|
||||
var modeArg = args.FirstOrDefault(a => a.Equals("--smoke", StringComparison.OrdinalIgnoreCase) || a.Equals("--full", StringComparison.OrdinalIgnoreCase));
|
||||
|
||||
Reference in New Issue
Block a user