From 2ae753be504e8874efed4f6c51e2e6182de22772 Mon Sep 17 00:00:00 2001 From: arkptz Date: Sat, 1 Aug 2026 21:19:01 +0300 Subject: [PATCH 1/2] fix(ci): swagger-ui v5 Forbidden + bump mitmproxy2swagger to 0.15.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - phase3.spec.ts: mount spec directly into nginx html root and use URL env var instead of SWAGGER_JSON (broken symlink mechanism in v5+) - bench.yml: mitmproxy2swagger 0.14.0 → 0.15.0, drop manual mitmproxy and ruamel.yaml pins (0.15.0 declares its own deps) --- .github/workflows/bench.yml | 2 +- ci/demo/phase3.spec.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 9786853..bf8eea7 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -48,7 +48,7 @@ jobs: - name: Install Python mitmproxy2swagger run: | - pip install --user "mitmproxy<12" "ruamel.yaml<0.19" "mitmproxy2swagger==0.14.0" + pip install --user "mitmproxy2swagger==0.15.0" echo "$HOME/.local/bin" >> $GITHUB_PATH python -m pip show mitmproxy2swagger | head -3 diff --git a/ci/demo/phase3.spec.ts b/ci/demo/phase3.spec.ts index 1834c6f..2c7d526 100644 --- a/ci/demo/phase3.spec.ts +++ b/ci/demo/phase3.spec.ts @@ -25,8 +25,8 @@ test.beforeAll(() => { execSync("docker rm -f swagger-ui 2>/dev/null || true"); execSync( "docker run -d --name swagger-ui -p 8088:8080 " + - "-e SWAGGER_JSON=/spec/openapi.yaml " + - "-v ${PWD}/out:/spec " + + "-e URL=./openapi.yaml " + + "-v ${PWD}/out/openapi.yaml:/usr/share/nginx/html/openapi.yaml:ro " + "swaggerapi/swagger-ui", { stdio: "inherit" }, ); From 0d0b8df3edf99de1f2f23749ce50ff2cbc1130c4 Mon Sep 17 00:00:00 2001 From: arkptz Date: Sat, 1 Aug 2026 18:28:14 +0000 Subject: [PATCH 2/2] docs(bench): refresh benchmark results --- docs/benchmarks.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/benchmarks.md b/docs/benchmarks.md index f5d27df..e6c52f0 100644 --- a/docs/benchmarks.md +++ b/docs/benchmarks.md @@ -4,7 +4,7 @@ Generated by the [benchmark workflow](.github/workflows/bench.yml). # Benchmark results -_Run: 2026-07-27 10:37 UTC, commit `eca8b476`, runner: Linux 6.17.0-1020-azure_ +_Run: 2026-08-01 18:28 UTC, commit `2ae753be`, runner: Linux 6.17.0-1020-azure_ Fixture: 89 MB, 40k requests across 8 endpoint shapes (`bench-fixtures-v1`). @@ -12,11 +12,11 @@ Fixture: 89 MB, 40k requests across 8 endpoint shapes (`bench-fixtures-v1`). | Command | Mean [s] | Min [s] | Max [s] | Relative | |:---|---:|---:|---:|---:| -| `Python mitmproxy2swagger` | 44.958 ± 0.131 | 44.821 | 45.161 | 16.84 ± 0.12 | -| `Rust mitm2openapi` | 2.670 ± 0.017 | 2.650 | 2.686 | 1.00 | +| `Python mitmproxy2swagger` | 44.838 ± 0.254 | 44.604 | 45.256 | 16.78 ± 0.13 | +| `Rust mitm2openapi` | 2.672 ± 0.013 | 2.661 | 2.694 | 1.00 | ## Peak RSS | Tool | RSS | |------|----:| -| Python mitmproxy2swagger | 45792 KB | -| Rust mitm2openapi | 7252 KB | +| Python mitmproxy2swagger | 47088 KB | +| Rust mitm2openapi | 7076 KB |