Skip to content

Close CI selection and release tooling coverage gaps - #2073

Merged
leehack merged 1 commit into
mainfrom
chore/p3-sweep-ci-tooling
Nov 19, 2026
Merged

leehack merged 1 commit into
mainfrom
chore/p3-sweep-ci-tooling

Conversation

@leehack

@leehack leehack commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Run root Linux VM tests for Genkit and Model Store changes, and run the site build script test in the Markdown lane.
  • Reject stray Unreleased headings during release-prep PR checks. Check Unreleased changelog parity, current runtime pin claims, and the LiteRT-LM owner commits against the archived owner manifest.
  • Exercise the latest published Apple setup snapshot and qualification dispatch tags. Require published companion manifests in Linux VM CI, and resolve validation consumer dependencies only in the chat app.
  • Correct the macOS SDK input in the CI selection docs and describe how the readiness evaluator admits Studio test evidence.

Refs #2048.

Production-readiness scope

  • User-facing scope: CI selection, maintainer docs, and release checks. Public runtime and platform behavior are outside this change.
  • Supported platforms/paths: GitHub Actions Linux VM and metadata checks, current install docs, and the latest versioned Apple setup page. The AOT preflight test exercises the Windows and macOS branches with simulated hosts.
  • Unsupported or intentionally unavailable paths: N/A. This changes no public API or runtime capability.
  • Out of scope / follow-ups: See the tracker table below.
#2048 item Status
1. #2061 CI selection wording Covered. macos-15 qualifies .flutter-version.
2. Remaining selectors Covered. Genkit and Model Store select root Linux VM tests. The site script suite runs in the Markdown lane.
3. #1970 baseline and release-prep heading Covered. The frozen top-section fixture kills audit mutant N4, and both changelogs are checked for stray headings in release-prep PRs.
4. #2003 release docs Covered. The README LiteRT-LM row and four current owner/upstream claims are verified, and both Unreleased sections must agree. Parity detects one-sided edits.
5. #2015 Apple fixture and validation dependencies Covered. The newest versioned Apple page runs the build-phase fixture tests. The validation integration lane removes the redundant root dependency resolution.
6. #2056 M15, M22, M24 Covered. The actual inline guard runs against every dispatch choice on simulated macOS and Windows. Both current docs sites are checked against the hook pin.
7. #2057 M5 Covered. Linux VM checkout fetches full history, and the suite fails if CI cannot read the published tag.
8. #2060 headers digest Skipped. The probe and assertion are the only checked-in copies. Sharing the literal would remove the assertion's independent comparison.
9. Studio evidence Covered. The runbook describes cross-package evidence admission and the reviewer's callsite check.
10. Studio classifier Deferred by coordinator. The explorer controller also handles inference history, tool definitions, and streamed tool calls. A path exemption would weaken coverage for those changes.

The #2061 Android SDK-build decision and hosts-json observation, and the #2056 release-prep changelog link are outside this sweep. The separate runner, speech, pubignore, qualification, Studio implementation, and parser lanes retain their assigned work.

Completeness checklist

  • Declared scope is implemented or explicitly deferred above.
  • Unsupported platform/option diagnostics are N/A for CI and release-tooling changes.
  • Maintainer docs updated where relevant. Public API, examples, and user changelog entries are N/A.
  • Regression coverage exercises affected guards and causal negative controls.
  • Validation registry updates are N/A because no public capability changed.
  • Security/privacy review completed for new inputs and diagnostics. No credentials or signed URLs added.
  • Follow-up work remains tracked in 0.20.x audit follow-ups #2048.

PR type guidance

  • Bugfix PR: The selection floor omitted package readers and site script coverage. Existing release checks missed specific docs sites, headings and shallow-checkout behavior. Failing-first and mutation controls are below.
  • Docs-only / feature PR: N/A. The diff includes CI and release-tooling fixes without a public feature.

Test Plan

  • dart run tool/prepare_workspace.dart on the committed candidate; clean tracked tree after preparation.
  • python3 tool/ci/check_format.py, dart analyze, dart run tool/testing/check_platform_boundaries.dart.
  • Full root VM suite — CI runs it in Linux shards. The complete root tooling suite ran locally as detailed below.
  • Root Chrome and coverage-lib — N/A for this tooling and docs change.
  • actionlint .github/workflows/ci.yml; selector and actual workflow tests.
  • Isolated-temp root tooling suite, published tag test, and CI/release mutation controls.

Matrix Evidence

Matrix row Scope covered Platform / model / backend Result Evidence / notes
static-format-analyze Format, analysis, platform boundaries macOS / Flutter 3.47.1 PASS Workspace preparation left tracked files clean.
root-vm Root tooling and published native pin contract macOS / VM PASS 2,063 tooling tests passed, 11 skipped, with standard timeouts (-j 4). All 22 native pin tests passed with the published tag required.
ci-selection Selector and workflow contracts macOS / Python, Dart PASS 245 Python CI cases, 34 skipped. The Dart workflow suite passed with the tooling suite, and actionlint passed.
release-doc-version-consistency Checkout pins, owner manifest claims and changelog consistency macOS / Dart PASS Unedited checkout passes and all five mutated document claims or bullets fail the CLI.
docs-site Docs build and link validation macOS / Jaspr PASS ./tool/docs/validate_links.sh built the site and validated internal links.
high-risk-exact-head-independent-qa Independent review Draft stage Pending Required before marking ready.

Review Notes

  • Independent review status is pending on the draft head.
  • CI status for 1982f2c2fcb17e7e1c039025b959e504a35a9357 is pending at draft creation.

High-risk regression review

  • Classification: high-risk (regressionPolicy, releaseAutomation)
  • Implementation task: 0.20.x audit follow-ups #2048 CI and release-tooling sweep
  • Independent blocking QA task: CLEAR at 1982f2c2 (independent Opus deep audit; evidence pr-2073/audit-1982f2c2/, evaluator exit 2). The 0.20.1 release prep replayed clean, and the selector diff over 157 past PRs drops no suite. Four P3s, non-blocking.
  • Exact head / current base: 1982f2c2fcb17e7e1c039025b959e504a35a9357 / ade506892635244718d8887275e1ba6cc6a44b0d
  • Production-branch deletion, bypass, or miswire proof: 18 controls failed at their intended assertions or CLI diagnostics. Controls revert the macOS docs qualifier, remove each package selection and the site suite, bypass release-prep heading validation, admit a frozen top section (N4), change the README pin and owner commit, drop one Unreleased bullet, change the Apple snapshot script, restore root pub get, drop the inline tag (M15), stale the matrix row and installation ABI note (M22/M24), remove checkout history or mandatory tag admission, change the checksum and fixture together (M5), or reintroduce the Studio pairing claim.
  • Affected-family real-model/artifact evidence: The published companion tag's Package.swift independently confirms the expected admitted checksum. No runtime or model path needs requalification for these changes. Published Package.swift
  • Explicit unavailable-family or other N/A evidence: Device and model runs are N/A. The AOT test replaces network access with a download marker and performs no model execution.
  • Known PR-caused P1 regressions: 0 known in implementation testing
  • Unresolved review threads: 0.

@leehack
leehack marked this pull request as ready for review November 19, 2026 11:22
@leehack
leehack merged commit 7e1bc2a into main Nov 19, 2026
45 checks passed
@leehack
leehack deleted the chore/p3-sweep-ci-tooling branch November 19, 2026 11:22
@github-actions

Copy link
Copy Markdown
Contributor

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

@leehack leehack mentioned this pull request Nov 19, 2026
10 of 13 tasks
leehack added a commit that referenced this pull request Nov 19, 2026
## Summary
- Add a CLI-level test verifying
`tool/testing/verify_release_docs_versions.dart` invokes
`checkLiteRtLmDocs`, plus upstream-commit rejection tests for the four
LiteRT-LM source-claim docs (#2073 audit P3).
- Add the five missing loose-JSON release-rule cases (empty `{}`
arguments, raw control character in string, bad escape `\q`, junk after
array element, missing colon) to `partial JSON releases at the first
impossible token` in
`test/unit/core/engine/gemma4_loose_stream_test.dart` (#2078 audit P3).
- Ticks the `#2073 audit P3` and `#2078 audit P3` items on
#2048.

## Production-readiness scope
- **User-facing scope:** N/A (test-only; no production code or
user-facing behavior changed).
- **Supported platforms/paths:** Dart VM unit tests.
- **Unsupported or intentionally unavailable paths:** N/A (test-only).
- **Out of scope / follow-ups:** None.

## Completeness checklist
- [x] Declared scope is fully implemented, or explicitly reduced above.
- [x] Unsupported platform/option combinations fail loudly with
actionable diagnostics or are clearly documented as unavailable. (N/A —
test-only)
- [x] Public API docs, README/website docs, examples, support matrices,
and changelog entries are updated where relevant. (Changelog N/A —
test-only)
- [x] Regression coverage covers the original issue plus key
negative/version-skew paths where relevant.
- [x] 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 — test-only)
- [x] Security/privacy review completed: no secrets, bearer tokens,
signed URLs, or raw secret-bearing paths leak through logs, cache keys,
metadata, errors, or snapshots.
- [x] 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
- **Test-only PR:** closes `#2073 audit P3` and `#2078 audit P3` from
#2048 with no production code changes. Changelog: N/A (test-only).

## Mutation check
| Mutant | Source | Mutation | Result | Failing test |
| --- | --- | --- | --- | --- |
| `A01` | `tool/testing/verify_release_docs_versions.dart` | Delete
`checkLiteRtLmDocs(Directory.current, errors);` in `main` | KILLED
(`rc=1`, `+36 -1`) | `release docs CLI runs checkLiteRtLmDocs` |
| `A02` | `tool/testing/verify_release_docs_versions.dart` | Compare
only `match[1] != expected.$1` (ignore upstream commit) | KILLED
(`rc=1`, `+32 -5`) | `README.md` / `support-matrix.md` /
`native-and-web-sync.md` / `SKILL.md` upstream tests + CLI test |
| `N2` | `lib/src/core/template/tool_call_fallback_parser.dart` | Remove
`if (value < 0x20) return false;` | KILLED (`rc=1`, `+28 -1`) | `partial
JSON releases at the first impossible token` |
| `N5` | `lib/src/core/template/tool_call_fallback_parser.dart` | Change
`if (escape != 'u') return false;` to `continue;` | KILLED (`rc=1`, `+28
-1`) | `partial JSON releases at the first impossible token` |
| `N12` | `lib/src/core/template/tool_call_fallback_parser.dart` |
Change `if (!_take(',')) return false;` in `arrayEnd` to `return true;`
| KILLED (`rc=1`, `+28 -1`) | `partial JSON releases at the first
impossible token` |
| `N14` | `lib/src/core/template/tool_call_fallback_parser.dart` |
Change `if (!_take(':')) return false;` to `return true;` | KILLED
(`rc=1`, `+28 -1`) | `partial JSON releases at the first impossible
token` |
| `N17` | `lib/src/core/template/tool_call_fallback_parser.dart` |
Remove `if (!_take('}'))` guard in `objectStart` | KILLED (`rc=1`, `+28
-1`) | `partial JSON releases at the first impossible token` |

## Test Plan
- [ ] `dart run tool/prepare_workspace.dart` (N/A — ran targeted `dart
analyze lib test tool` and VM tests without modifying tracked workspace
files)
- [x] `python3 tool/ci/check_format.py` (`Formatted 1912 files (0
changed)`)
- [x] `dart analyze lib test tool` (`No issues found!`)
- [x] `TMPDIR="$(mktemp -d)" dart test -p vm
test/unit/tooling/verify_release_docs_companion_pins_test.dart
test/unit/core/engine/gemma4_loose_stream_test.dart` (`+66: All tests
passed!`)
- [ ] `dart test -p chrome --exclude-tags local-only` (N/A —
`verify_release_docs_companion_pins_test.dart` is `@TestOn('vm')`;
`gemma4_loose_stream_test.dart` parser logic is platform-independent)
- [ ] `coverage-lib` matrix row (N/A — test-only, no `lib/` changes)

## Matrix Evidence
| Matrix row | Scope covered | Platform / model / backend | Result |
Evidence / notes |
| --- | --- | --- | --- | --- |
| `static-format-analyze` | format, analyzer | macOS / Dart 3.x | PASS |
`check_format.py` (0 changed), `dart analyze lib test tool` (No issues
found!) |
| `root-vm` | touched VM unit suites | macOS / Dart VM | PASS |
`verify_release_docs_companion_pins_test.dart` +
`gemma4_loose_stream_test.dart` (`+66: All tests passed!`) |
| `release-doc-version-consistency` | LiteRT-LM CLI and upstream commit
checks | macOS / Dart VM | PASS | Covered by
`verify_release_docs_companion_pins_test.dart` (`A01`, `A02` killed) |

## Review Notes
- Independent review status: N/A (standard-risk test-only PR)
- CI status / head SHA: pending

## High-risk regression review
- **Classification:** standard (`classify_high_risk_changes.dart`)
- **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
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