Skip to content

test: align local-only tests with current main - #269

Merged
lanyue-llk merged 1 commit into
mainfrom
fix/local-test-failures
Nov 11, 2026
Merged

lanyue-llk merged 1 commit into
mainfrom
fix/local-test-failures

Conversation

@lanyue-llk

Copy link
Copy Markdown
Contributor

Local test fixes

Nine tests fail on main on a developer machine that has the historical reference inputs installed or an old Docker. CI never runs them, because it skips them when those inputs are absent, so they drifted from main.

  • 430-case native guard (tests/test_fixed_native_policy.py): four historical dynamic tasks carry per-case retrieval_hints contracts. Real native runs first normalize every dataset with native_fetch_dataset, which certification also does. The test now does the same before calling check_native_call, and all 430 tasks pass.
  • Popular sites (tests/test_popular_sites_current.py): the test read evaluation/popular-sites/current-report.json, which refactor(reporting)!: decouple instances from shared pipelines #56 removed. It now checks only the dataset and its review binding.
  • Zillow risk-diverse-134 (tests/test_risk_control_dataset.py): the frozen contract declares bathrooms an integer field, and the scorer rejects decimal values for integer fields on purpose. The test now expects 2.5 baths to fail. No measured evidence under ~/.browser-eval contains a half-bath value, so no score changes.
  • Web Extract deployment recipe (6 tests): skips when docker compose version fails, instead of failing with unknown flag: --env-file.

Tests only. No scorer, dataset or score changes.

Checks:

  • The four touched files pass locally with historical inputs installed: 95 passed, 6 skipped.
  • Full suite on a fresh worktree: the only remaining failures need local tools a fresh worktree lacks: node_modules, @actions/expressions and Playwright. CI installs all three.

The 430-case native guard now normalizes datasets with native_fetch_dataset
as real native runs do; the popular-sites test stops reading the profile
retired in #56; the Zillow control follows the frozen integer bathrooms
contract; the deployment recipe test skips without the Compose plugin.

@lexmount-ocr lexmount-ocr 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.

ℹ️ Review skipped · 0869954

No reviewable content was selected for this run.

@lanyue-llk
lanyue-llk merged commit 24f2bbf into main Nov 11, 2026
8 checks passed
@lanyue-llk
lanyue-llk deleted the fix/local-test-failures branch November 11, 2026 06:29
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