Skip to content

farm: reject smoke success without complete test evidence - #469

Open
pablogonz12 wants to merge 1 commit into
mainfrom
fix/smoke-result-evidence
Open

pablogonz12 wants to merge 1 commit into
mainfrom
fix/smoke-result-evidence

Conversation

@pablogonz12

Copy link
Copy Markdown
Owner

Problem

Smoke runs can be reported as passing after a missing, empty or incomplete log. Repeated shell-route invocations of the same binary also reused one local filename, allowing a failed pull to retain the previous invocation's evidence. This defect remains on main and was identified while reviewing #358.

Changes

  • Use a separate local log path for each invocation and require a successful transfer plus a readable file.
  • Parse complete terminal JSON pass records, rejecting missing or false results.
  • Require successful runner status and positive integer pass counts in farmd.
  • Require draw, compute and meta records for full-suite runs; explicitly selected subsets still need completed binary evidence.
  • Preserve legitimate feature skips that end normally, existing return-code handling, owner/lock/health gates and the stopped farm state.

Only four tools/farm files change. There are no driver changes and this PR does not start the farm or access phones. It is independent of #358's MRT implementation and selected-case routing changes.

Validation

  • Ten new tests against the unpatched baseline produced 15 failing subcases and 2 errors.
  • All 185 host farm tests passed, split into the 96-test T class and 89 remaining tests under separate 120-second limits. A monolithic attempt hit the time limit and is not counted as a pass.
  • The 35 ShellRoute and SmokeRoute tests passed independently twice, including missing/empty/truncated logs, stale repeated pulls, missing suite members and completed feature skips.
  • private-lint, skill-lint, progress check and git diff --check passed.
  • Published tree 9bc206859aa271f77de18cb5dc45b195bc731c12 exactly matches the tested local tree.

The current CI workflow does not run test_farm.py, so the host results above are explicit additional evidence. Full driver/cross-build and hardware gates were not run. Current-head CI and automated review remain required before merge.

Reject missing or stale log transfers, incomplete terminal results, zero pass counts and missing full-suite binary records. Preserve explicit feature skips and existing device safety gates.

Ten new regression tests reproduce the baseline failures. All 185 host farm tests pass, including 35 targeted smoke-route tests. No phone was accessed.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-04T20:11:30.376301Z 6d8e60d 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.

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