Skip to content

refactor(agentx): stop aggregating server metrics in e2e - #3889

Closed
cquil11 wants to merge 2 commits into
mainfrom
refactor/e2e-raw-server-metrics
Closed

cquil11 wants to merge 2 commits into
mainfrom
refactor/e2e-raw-server-metrics

Conversation

@cquil11

@cquil11 cquil11 commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

inferencex-e2e no longer aggregates server metrics or parses server logs for AgentX results. Raw collection is unchanged: the AIPerf scrape exports (server_metrics_export.*) and server logs are still collected and uploaded. The aggregate no longer carries server_metrics, kv_cache_pool_tokens, or the parser warnings.

  • Removed infx/results/agentic/server_metrics.py, the per-engine backends/ log parsers, the scrape/log loaders in artifacts.py, and dead helpers in common.py, with their tests.
  • build_result and process_agentic_result no longer load scrapes or logs.
  • Docs (architecture.md, results-and-ingestion.md) describe the app as the owner of these metrics.

The app now derives these metrics from the raw artifacts, correctly per framework and disaggregated role, and ignores producer values in old artifacts: SemiAnalysisAI/InferenceX-app#1320.

Land together: merge InferenceX-app#1320 first and recompute prod, then this PR. Results produced after this PR get their server metrics at app ingest.

Validation

All 2,897 stored AgentX rows recomputed by the app derivation on a Neon fork of prod; all 238 KV-pool values the prod audit flagged wrong are now corrected or NULL. Details in InferenceX-app#1320.

Remove the AgentX server-metric backends, server_metrics normalization, and server-log parsing from the e2e result processor. The AgentX aggregate now carries request metrics only and no longer emits server_metrics, kv_cache_pool_tokens, or server-metric warnings. Raw server_metrics_export.* files, server logs, and profile exports are still collected and uploaded unchanged; InferenceX-app derives cache hit rates, KV usage, token totals, and KV pool size from them.
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

inferencex-e2e/infx diff: +36 -2270

Generally most InferenceX submissions don't need to add changes to the infx package. On the off chance they do, generally the diff is small. Please prompt your agent to clean your PR to keep your diff to only necessary & minimal changes too. We have an increased code quality bar for changes to the infx package.

中文

大多数 InferenceX 提交通常不需要修改 infx 包。即使确实需要,改动通常也很小。请让你的 agent 清理 PR,使改动只包含必要且最小的内容。infx 包的改动有更高的代码质量要求。

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beyond the inline findings list, I also checked that no remaining code in inferencex-e2e references the removed modules (server_metrics.py, backends/, the artifacts.py loaders, or the common.py helpers) — grep across infx/ shows all references are confined to the deleted files and their tests, so this is a clean removal with no dangling imports.

Extended reasoning...

The diff is a large mechanical deletion (~2285 lines removed) of AgentX server-metrics aggregation code, backend log parsers, and their tests from inferencex-e2e, with matching doc updates; it touches no auth/crypto/permission surface. The behavior change (aggregate no longer carries server_metrics/kv_cache_pool_tokens/warnings) is intentional per the PR description and is coordinated with a companion app-side PR that must land first, which is a cross-repo sequencing decision worth a human's explicit sign-off rather than pure code correctness.

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

This pull request has had no activity (commits, comments, reviews or other updates) for more than 30 days, so it is being closed automatically. Reopen it if it is still needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant