Skip to content

fix(validation): decode JSON payload from flutter --version --machine - #2053

Merged
leehack merged 1 commit into
mainfrom
fix/validation-flutter-version-probe
Nov 18, 2026
Merged

leehack merged 1 commit into
mainfrom
fix/validation-flutter-version-probe

Conversation

@leehack

@leehack leehack commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Summary

Production-readiness scope

  • User-facing scope: Maintainer/CI validation bundle builder only (tool/testing/validation/bundle.dart). No published library or consumer API changes.
  • Supported platforms/paths: Validation bundle builder (buildValidationBundle) on Windows, macOS, and Linux.
  • Unsupported or intentionally unavailable paths: Nonzero flutter --version --machine exits, missing/malformed/trailing-junk JSON, and mismatched Flutter/Dart SDK pins continue to throw StateError / FormatException before running harness dart pub get.
  • Out of scope / follow-ups: None (related to 0.20.1 release plan: Windows CUDA VRAM fit, live ASR, fixes #2049).

Completeness checklist

  • Declared scope is fully implemented, or explicitly reduced above.
  • Unsupported platform/option combinations fail loudly with actionable diagnostics or are clearly documented as unavailable.
  • Public API docs, README/website docs, examples, support matrices, and changelog entries are updated where relevant. (N/A: repo tooling only; no consumer-facing API or behavior change.)
  • Regression coverage covers the original issue plus key negative/version-skew paths where relevant.
  • Public capability changes update the validation coverage registry with a pack or a reasoned, issue-linked exemption; inventory checks pass (or N/A with scope). (N/A: repo tooling only.)
  • Security/privacy review completed: no secrets, bearer tokens, signed URLs, or raw secret-bearing paths leak through logs, cache keys, metadata, errors, or snapshots.
  • Follow-up work that is useful but not required for this PR is tracked in GitHub Issues, or explicitly marked "None" above.

PR type guidance

  • Bugfix PR: Root cause: on a cold Windows Flutter SDK tools snapshot rebuild, flutter.bat runs dart pub upgrade --suppress-analytics with stdout inherited before flutter_tools prints the --version --machine JSON object, causing jsonObject (jsonDecode on full stdout) to fail with FormatException at character 1. Targeted regression and control tests added in test/unit/tooling/validation_remote_test.dart (flutter --version --machine probe group).

Test Plan

  • dart run tool/prepare_workspace.dart
  • dart format --output=none --set-exit-if-changed .
  • dart analyze
  • dart run tool/testing/check_platform_boundaries.dart
  • dart test -p vm -j 1 --exclude-tags local-only (Deferred to CI; ran full test/unit/tooling/ suite locally.)
  • dart test -p chrome --exclude-tags local-only (N/A: tool/testing/validation/ is VM-only.)
  • coverage-lib matrix row when lib/ behavior changes (N/A: no lib/ changes.)
  • Other targeted/local-only validation: TMPDIR="$(mktemp -d)" dart test -p vm test/unit/tooling/validation_remote_test.dart (+88 ~1), TMPDIR="$(mktemp -d)" dart test -p vm test/unit/tooling/ (+1886 ~11), and dart run tool/testing/run_local_e2e.dart --scenario validation-harness --dry-run.

Matrix Evidence

Matrix row Scope covered Platform / model / backend Result Evidence / notes
validation-harness private runner, planned model/backend coverage, result integrity, provider lifecycle, artifact and NPU input checks macOS arm64 / model-free PASS (targeted tooling tests) TMPDIR="$(mktemp -d)" dart test -p vm test/unit/tooling/validation_remote_test.dart (+88 ~1); TMPDIR="$(mktemp -d)" dart test -p vm test/unit/tooling/ (+1886 ~11); --dry-run inspected. Hosted Validation bundles / Desktop windows-2022 runs on PR CI.

Review Notes

  • Independent review status: Pending PR CI & review
  • CI status / head SHA: 6744fcf1d3d0c7e4bea75300a06a9393f6ff2586 (CI pending)

High-risk regression review

  • Classification: standard
  • Implementation task: N/A
  • Independent blocking QA task: N/A
  • Exact head / current base: N/A
  • Production-branch deletion, bypass, or miswire proof: N/A
  • Affected-family real-model/artifact evidence: N/A
  • Explicit unavailable-family or other N/A evidence: N/A
  • Known PR-caused P1 regressions: 0
  • Unresolved review threads: 0

@leehack

leehack commented Nov 18, 2026

Copy link
Copy Markdown
Owner Author

Merged with Companion Packages (macOS) and Test Native (macos, 1/3) not run: GitHub cancelled them five times with "The job was not acquired by Runner of type hosted" (macOS arm64 capacity). The PR changes only tool/testing/validation/bundle.dart and its tooling test, which neither job exercises; every other check passed at 6744fcf1. Maintainer approved merging on that basis.

@leehack
leehack merged commit e6b36f8 into main Nov 18, 2026
131 of 143 checks passed
@leehack
leehack deleted the fix/validation-flutter-version-probe branch November 18, 2026 18:33
@github-actions

Copy link
Copy Markdown
Contributor

Chat app preview removed for leehack/llamadart-chat-pr-2053.

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