Skip to content

fix(ci): make curl benchmark deterministic - #2596

Closed
YOMXXX wants to merge 1 commit into
rtk-ai:developfrom
YOMXXX:fix/benchmark-curl-local-fixtures
Closed

YOMXXX wants to merge 1 commit into
rtk-ai:developfrom
YOMXXX:fix/benchmark-curl-local-fixtures

Conversation

@YOMXXX

@YOMXXX YOMXXX commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replace the benchmark curl/httpbin text and JSON calls with local file:// fixtures.
  • Avoids comparing two independent external network responses in the benchmark job.
  • Keeps the benchmark exercising the rtk curl path while removing the flaky curl text negative-token failure seen across open PRs.

Verification

  • bash -n scripts/benchmark.sh
  • git diff --check
  • cargo +1.93.0 build --release
  • Manual curl -s file://... vs target/release/rtk curl file://... check for both JSON and text fixtures

Note: a full local CI=1 scripts/benchmark.sh run still fails in this worktree because local warm-cache commands like cargo build produce tiny raw output and become existing unrelated negative cases. The curl rows specifically now report equal token counts instead of a negative result.

@YOMXXX
YOMXXX force-pushed the fix/benchmark-curl-local-fixtures branch from e8fe6a5 to 7baeb65 Compare July 19, 2026 12:14
@YOMXXX

YOMXXX commented Jul 19, 2026

Copy link
Copy Markdown
Contributor Author

Ready for review/merge. Rebased onto current develop and the fresh CI run is green, including benchmark. This removes the flaky external curl benchmark fixture by using local file:// fixtures, which should unblock the related benchmark-red PRs.

@KuSh

KuSh commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

Hi, thanks for your PR, closing as ba7a9ce already landed that fixes the problem

@KuSh KuSh closed this Aug 17, 2026
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