镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

refactor(evals): reuse parsing and Git helpers - #1222

Merged
mldangelo-oai merged 1 commit into
mainfrom
mdangelo/codex/simplify-10-evals
Oct 4, 2026
Merged

mldangelo-oai merged 1 commit into
mainfrom
mdangelo/codex/simplify-10-evals

Conversation

@mldangelo-oai

Copy link
Copy Markdown
Collaborator

Summary

Triage evals duplicate JSON extraction and Git subprocess helpers. Reuse the existing implementations while retaining each caller's diagnostics and execution behavior.

Changes

  • Share the triage-result extractor with a caller-specific failure message, covered by exact-message assertions.
  • Reuse the hydrator's Git helpers from the installer.
  • Remove a redundant directory creation during recursive skill staging.

Testing

Passed on commit 50709aa315a3:

  • In evals/triage-finding: node --run test:deterministic — all 11 deterministic test scripts passed.
  • node --check <file> for each of the seven changed JavaScript files — passed.
  • Two independent Codex reviews and separate verification completed without findings.

An additional prettier --check experiment failed on all seven files at both the main base and this commit. Eval JavaScript has no configured Prettier gate; this change retains its existing style.

Risk and rollout

The extractor keeps its existing default error, and the triage assertion supplies its original distinct error. Git output capture and module import behavior remain unchanged. Eval commands and runtime staging boundaries are preserved.

Public disclosure review

  • No customer, partner, prospect, or user identities, data, or identifying details are included.
  • No credentials, personal data, private source, scan findings, or nonpublic links or tickets are included.
  • I reviewed the branch name, title, description, commits, changes, comments, logs, screenshots, attachments, and links for public disclosure.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 4, 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-10-04T18:08:29.497442Z 50709aa Manual request
🔒 Security Review ✅ Completed 2026-10-04T18:08:27.242702Z 50709aa PR opened
ℹ️ 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.

@mldangelo-oai

Copy link
Copy Markdown
Collaborator Author

@codex review the current head SHA.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 50709aa315

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The refactoring preserves existing behavior and diagnostics with targeted deterministic coverage.

Review effort: Balanced
Findings: None

What changed in this PR

Refactors triage evaluation utilities to reuse existing JSON parsing and Git subprocess helpers while preserving diagnostics and behavior.

Changes:

  • Shares triage-result extraction with caller-specific errors.
  • Reuses Git helpers between SastBench scripts.
  • Removes redundant directory creation during recursive staging.
File Description
evals/​triage-finding/​scripts/​test-triage-io.js Verifies the preserved parser error message.
evals/​triage-finding/​sastbench/​scripts/​test-sastbench-result.js Strengthens the default error assertion.
evals/​triage-finding/​sastbench/​scripts/​sastbench-result.js Supports caller-specific extraction errors.
evals/​triage-finding/​sastbench/​scripts/​run-sastbench-promptfoo.js Removes redundant directory creation.
evals/​triage-finding/​sastbench/​scripts/​install-sastbench.js Imports shared Git helpers.
evals/​triage-finding/​sastbench/​scripts/​hydrate-sastbench-repos.js Exports the shared Git output helper.
evals/​triage-finding/​assertions/​triage-io.js Reuses the shared result extractor.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@alandelong-oai alandelong-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed the actual PR contribution at 50709aa315a3faf0c841d42199f3c7c03c71d69f against 1fb0e5fbf8684c926cac2a36d08389b212d28d5a with three independent full-diff review passes and root synthesis, including every changed test and fixture. No actionable introduced issue was identified.

Read the full contribution and touched parser/copy helper context. Shared argument parser preserves error behavior; redundant mkdir removal relies on the touched copy helper creating its target. No supported introduced behavior change identified.

Static source review only; tests and builds were not run locally. This approval does not establish whole-stack integration or deployment.

@mldangelo-oai
mldangelo-oai merged commit dcf3ed5 into main Oct 4, 2026
103 of 106 checks passed
@mldangelo-oai
mldangelo-oai deleted the mdangelo/codex/simplify-10-evals branch October 4, 2026 22:09
@github-actions github-actions Bot mentioned this pull request Oct 4, 2026
3 tasks done
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.

3 participants