Skip to content

fix: remove wall-clock defect from performance_agent_integration tests - #6694

Merged
bug-ops merged 1 commit into
mainfrom
fix/6690-perf-test-cleanup
Jul 28, 2026
Merged

fix: remove wall-clock defect from performance_agent_integration tests#6694
bug-ops merged 1 commit into
mainfrom
fix/6690-perf-test-cleanup

Conversation

@bug-ops

@bug-ops bug-ops commented Jul 28, 2026

Copy link
Copy Markdown
Owner

Summary

Closes #6690
Closes #6689

Test plan

  • cargo +nightly fmt --check
  • cargo clippy --profile ci --workspace --all-targets --features "desktop,ide,server,chat,pdf,scheduler,testing" -- -D warnings
  • cargo nextest run --config-file .github/nextest.toml --workspace --features "desktop,ide,server,chat,pdf,scheduler" --lib --bins (15155 passed, 0 failed)
  • RUSTFLAGS="-D warnings" RUSTDOCFLAGS="--deny rustdoc::broken_intra_doc_links" cargo doc --no-deps --workspace --features "desktop,ide,server,chat,pdf,scheduler"
  • cargo nextest run --test performance_agent_integration (13/13 pass)
  • gitleaks protect --staged

@github-actions github-actions Bot added documentation Improvements or additions to documentation tests Test-related changes bug Something isn't working size/M Medium PR (51-200 lines) labels Jul 28, 2026
agent_throughput_multiple_responses asserted elapsed < 10s around a
fully-mocked Agent::run() call, the same anti-pattern already fixed for
its two sibling tests in this file (#6687/PR #6688). Drop the timing
assertion, keep the structural outputs.len() >= 5 check.

tool_executor_overhead_is_minimal timed Instant::now()/.elapsed() around
two adjacent statements with no work between them, so its < 10ms
assertion passed unconditionally, and its if-let guard meant the
assertion was silently skipped whenever the tool call never fired. Real
dispatch-overhead coverage already exists in
tool_executor_pattern_matching_overhead (drives the production
ShellExecutor). Replace the vacuous timing check with
assert_eq!(executor.get_call_count(), 1), matching the unconditional
load-bearing-dispatch pattern already used by
agent_integration_with_safe_bash_blocks in this file, and remove the now
dead execution_time/get_execution_time() machinery.
@bug-ops
bug-ops force-pushed the fix/6690-perf-test-cleanup branch from aa2a88e to ef96524 Compare July 28, 2026 13:35
@bug-ops
bug-ops enabled auto-merge (squash) July 28, 2026 13:35
@bug-ops
bug-ops merged commit 4c4cc44 into main Jul 28, 2026
23 checks passed
@bug-ops
bug-ops deleted the fix/6690-perf-test-cleanup branch July 28, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation size/M Medium PR (51-200 lines) tests Test-related changes

Projects

None yet

1 participant