Skip to content

Modularize MTP benchmark orchestration and report validation - #901

Closed
Gajesh2007 wants to merge 1 commit into
masterfrom
refactor/mtp-benchmark-operations
Closed

Gajesh2007 wants to merge 1 commit into
masterfrom
refactor/mtp-benchmark-operations

Conversation

@Gajesh2007

@Gajesh2007 Gajesh2007 commented Sep 11, 2026 •

Copy link
Copy Markdown
Member

The MTP benchmark launcher mixed cache discovery, artifact fingerprints, output safety, report validation, process supervision and CLI handling in 1,622 lines. Split those responsibilities into focused scripts/mtp_benchmark modules, retain the original launcher and helper imports, and consolidate repeated fixed/adaptive MTP evidence checks without changing refusal order or messages.

The entry point is now 429 lines. Total production Python grows by 76 lines for module imports and compatibility exports; the reduction is in duplicate validation/control flow and the size of the entry point. Artifact identities, no-download policy, process-group deadlines, output-directory protections, worker flags, schema, printed receipts and return codes are preserved.

Before

flowchart TD
  A[Existing CLI invocation] --> B[run-mtp-benchmark.py: parse and supervise]
  B --> C[Same file: private run directory and worker launch]
  C --> D[Same file: cache discovery and artifact fingerprints]
  D --> E[Supervised offline Swift test]
  E --> F[Same file: drift plus nested report and duplicated fixed/adaptive checks]
  F --> G[Accepted report or original failure receipt and exit code]
  B --> H[Same-file CPU self-test flags]
Loading

After

flowchart TD
  A[Same CLI flags and helper imports] --> B[run-mtp-benchmark.py: same supervisor and worker]
  B --> C[run_directory.py: same descriptor and inode protections]
  B --> D[artifacts.py: same offline discovery and fingerprints]
  C --> E[Same supervised offline Swift test]
  D --> E
  E --> F[report.py: launch provenance and opaque matrix evidence]
  F --> G[metrics.py: shared inactive/verifier policy and mode-specific work checks]
  G --> H[Same accepted report or failure receipt and exit code]
  B --> I[self_tests.py: same CPU self-test flags]
  J[Release Integrity CI and make benchmark-wrapper-test] --> K[Characterization tests with synthetic reports and mocked launches]
Loading

Validation: 73 wrapper tests pass (65 existing, 8 new); the new 8 pass against both original and refactored code; 1,000 extra report mutations agree exactly. Both CLI self-tests pass; docs lint passes 278 files. No model/GPU process was run. Based on master; the follow-up malformed-evidence fixes are isolated in #956.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@vercel

vercel Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference Ready Ready Preview Sep 11, 2026 11:33pm UTC
d-inference-console-ui-dev Ready Ready Preview Sep 11, 2026 11:33pm UTC
d-inference-landing Ready Ready Preview Sep 11, 2026 11:33pm UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-11T23:35:18.847367Z d9f7ad0 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Gajesh2007

Copy link
Copy Markdown
Member Author

Final validation for 121b70804831d6a0c50c95b6542d917f68ed3d54:

Individual validation details and limitations are in each PR description, including the dedicated-M5 provider/live GPT-OSS checks and the unchanged baseline TypeScript diagnostics in #899. No merge or deployment was performed.

Base automatically changed from feat/gpt-oss-20b-prefix-cache to master September 11, 2026 22:46
Comment thread scripts/run-mtp-benchmark.py Resolved
Comment thread scripts/run-mtp-benchmark.py Resolved
Comment thread scripts/run-mtp-benchmark.py Resolved
Comment thread scripts/run-mtp-benchmark.py Resolved
Comment thread scripts/run-mtp-benchmark.py Resolved
@Gajesh2007

Copy link
Copy Markdown
Member Author

Consolidated into #1096, the combined tooling, benchmark and E2E refactor PR. Your latest head d9f7ad0b95358bace724aefb29d7da49e24fcca9 is preserved in aggregate 9d2160bb370e8a0dbf3810e61a5e48fe66345651, along with the relevant review fixes. Continue review and merge at #1096 (after provider #1094 and web #1095). Closing this duplicate merge path; the source branch and review history are retained.

@Gajesh2007 Gajesh2007 closed this Sep 16, 2026

This branch had an error being deployed

1 failed and 3 active deployments
Preview – d-inference-console-ui-dev — d9f7ad0b Deployed Sep 11, 2026 by vercel[bot]
Preview – d-inference — d9f7ad0b Deployed Sep 11, 2026 by vercel[bot]
Preview – d-inference-landing — d9f7ad0b Deployed Sep 11, 2026 by vercel[bot]
benchmarks — d9f7ad0b Deployed Sep 11, 2026 by Gajesh2007 via E2E Benchmarks #968
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.

1 participant