Skip to content

rebase: improve CI baseline reconciliation - #128

Merged
tzhouam merged 1 commit into
mainfrom
agent/ci-baseline-reconciliation
Sep 5, 2026
Merged

tzhouam merged 1 commit into
mainfrom
agent/ci-baseline-reconciliation

Conversation

@tzhouam

@tzhouam tzhouam commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • reconcile baseline failures across a recent trusted build window
  • match pytest ERROR subsets using cause evidence without relying on provider exit codes
  • persist per-job classification reasons and baseline coordinates in run state

Tests

  • PYTHONPATH=$PWD/src /data/zhoutaichang/copilot/InferMatrixCopilot/.venv/bin/python -m pytest -q
  • git diff --check

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 5, 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-05T19:30:34.923811Z 85af377 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 85af377f70

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

Comment on lines +378 to +381
cur_errors = extract_exception_lines(log_text, spec.extra_exception_names)
main_errors = extract_exception_lines(main_log,
spec.extra_exception_names)
if cur_errors & main_errors:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Correlate exception evidence to the matched test nodes

When a multi-test job contains a shared exception line elsewhere in both logs, this global set intersection succeeds even if the current and baseline causes for the matched pytest node differ. For example, a common auxiliary ValueError plus RuntimeError: new regression for the current node is classified as ignored_baseline when the baseline node failed with an AssertionError, allowing a real regression to contribute to clean_pass; correlate the exception evidence with the corresponding node or failure summary instead.

Useful? React with 👍 / 👎.

Comment on lines +761 to +763
for entries in failures.values():
if entries[0][0] == 0 or len(entries) >= 2:
out.extend(failure for _, failure in entries)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Count recurrence across distinct builds

When one older build contains multiple failed attempts of the same retried job and the newest build is green, list_jobs() includes both the original retried=True job and its failed retry, so len(entries) >= 2 treats a failure seen in only one build as recurring. That resurrects stale baseline evidence and can cause a later matching regression to be ignored; filter retried predecessors or require at least two distinct build indices.

Useful? React with 👍 / 👎.

Signed-off-by: tzhouam <tzhouam@connect.ust.hk>
@tzhouam
tzhouam force-pushed the agent/ci-baseline-reconciliation branch from 85af377 to 4877a30 Compare September 5, 2026 19:30
@tzhouam
tzhouam merged commit ca7cf7e into main Sep 5, 2026
2 checks passed
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