Skip to content

Guard CI cache checks and bound preview sweeps - #2223

Merged
leehack merged 1 commit into
mainfrom
p3sweep-ci-preview
Nov 24, 2026
Merged

leehack merged 1 commit into
mainfrom
p3sweep-ci-preview

Conversation

@leehack

@leehack leehack commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • Check the LiteRT-LM cache canary in all three VM jobs only after successful seeding, including when a later test fails.
  • Limit each orphaned chat preview sweep to the 256 lowest closed PR numbers so larger backlogs can drain.
  • Cover signed URL redaction when the deploy CLI catches a custom BaseException.

Tracks the P3 items in #2098 from #2206, #2168, and #2170.

Changelog

N/A: Changes repository CI, preview maintenance, and offline regression tests.

Production-readiness scope

  • User-facing scope: None. This changes maintainer CI and orphaned preview cleanup.
  • Supported platforms/paths: GitHub Actions Markdown Tests, Linux VM, macOS and Windows native VM jobs, and the scheduled or manually dispatched preview sweep on trusted main.
  • Unsupported or intentionally unavailable paths: The sweep continues to reject untrusted invocations. Cancelled VM jobs and jobs that never seeded the canary skip the check.
  • Out of scope / follow-ups: None for these three tracker items.

Completeness checklist

  • Declared scope is implemented.
  • Unsupported paths retain their existing rejection or skip behavior.
  • PR Changelog disposition supplied. Public docs, examples and support matrices are N/A for maintainer tooling.
  • Regression coverage exercises all three tracker items.
  • Public capability coverage is N/A for maintainer tooling.
  • Offline CLI tests verify that synthetic signed URLs stay out of the traceback and stdout. The production deploy wrapper is unchanged.
  • Follow-ups are recorded above.

PR type guidance

  • Bugfix PR: A setup failure could be reported as canary deletion in the Markdown and Linux VM jobs. All VM jobs now check the seed outcome directly. A sweep with over 256 closed previews could exceed the matrix job limit. Discovery now applies the limit after filtering and sorting numerically.
  • Feature / docs-only PR: N/A. This is a CI and maintainer tooling fix.

Test Plan

  • dart run tool/prepare_workspace.dart on the clean base.
  • python3 tool/ci/check_format.py.
  • dart analyze.
  • dart run tool/testing/check_platform_boundaries.dart.
  • python3 -m unittest discover -s test/ci -p 'test_*.py'. 302 discovered, 267 passed, 35 skipped (Linux-only supervisor suite and optional SDK wheel). Provider calls in the relevant tests were faked.
  • dart test -p vm -j 1 test/unit/tooling/ci_workflow_selection_test.dart with an isolated temp directory. 57 passed.
  • Failing-first canary and sweep tests. Six mutation checks rejected all three guard removals, cap removal, lexicographic ordering, and narrowing the deploy handler to Exception.
  • Full VM and Chrome suites delegated to hosted CI. Local validation is scoped to the affected tooling.
  • coverage-lib N/A because no library code changed.

Matrix Evidence

Matrix row Scope covered Platform / model / backend Result Evidence / notes
high-risk-exact-head-independent-qa Independent blocking review of exact head and base GitHub Actions and Python CI tooling Pending Draft until independent review and live CI are complete.
release-metadata-verification Core-patch release metadata N/A N/A No release metadata changed.
structured-output-adversarial, LiteRT-LM v1 and JSON Schema rows Runtime generation and native model contracts N/A N/A No model or runtime code changed.

Review Notes

  • Independent review status: Pending coordinator assignment.
  • CI status / head SHA: Hosted checks pending at cfa88fa572061f11ab42f7cb6171a048b2ea4a76.

High-risk regression review

  • Classification: High-risk (regressionPolicy).
  • Implementation task: P3 in 0.20.x audit follow-ups (P3) #2098.
  • Independent blocking QA task: Pending.
  • Exact head / current base: cfa88fa572061f11ab42f7cb6171a048b2ea4a76 / 3abb5524a1d2324b28f27d9279caa5a0d4fa4c5b.
  • Production-branch deletion, bypass, or miswire proof: Each removed canary guard failed the workflow contract test. Removing the sweep cap or numeric ordering failed the 260-preview case. Narrowing the deploy handler failed the subprocess redaction assertion.
  • Affected-family real-model/artifact evidence: N/A. This changes CI control flow and preview discovery.
  • Explicit unavailable-family or other N/A evidence: N/A. Discovery and deploy coverage use fakes.
  • Known PR-caused P1 regressions: None observed in implementation validation. Independent audit pending.
  • Unresolved review threads: Pending live verification.

@leehack
leehack marked this pull request as ready for review November 24, 2026 16:48
@leehack
leehack merged commit d434855 into main Nov 24, 2026
82 of 84 checks passed
@leehack
leehack deleted the p3sweep-ci-preview branch November 24, 2026 16:48
@github-actions

Copy link
Copy Markdown
Contributor

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

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