Skip to content

Make Tizen workload gate fail closed - #14

Merged
Redth merged 2 commits into
mainfrom
redth-fix-workload-ci-gate
Aug 27, 2026
Merged

Redth merged 2 commits into
mainfrom
redth-fix-workload-ci-gate

Conversation

@Redth

@Redth Redth commented Aug 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • replace the continue-on-error transition placeholder with one unconditional, fail-closed gate
  • keep definitive manifest absence informational, but install Samsung's supported workload and run real Tizen restore/build/pack as soon as either baseline-derived manifest appears
  • add offline regressions for unavailable, available, installer/detection failures, and restore/build/pack propagation

Validation

  • actionlint
  • bash -n and shellcheck for the changed shell scripts
  • ./eng/build-workload-free.sh

Redth and others added 2 commits August 27, 2026 09:36
Replace the continue-on-error transition placeholder with a baseline-derived manifest probe that installs Samsung's supported workload and runs the real Tizen restore/build/pack lane when available. Add offline regressions for unavailable, available, and failure propagation paths.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Run Samsung's pinned installer without externally forcing errexit, while still failing on a nonzero installer status and requiring exact post-install manifest detection plus the real Tizen lane. Add a fixture that reproduces the installer's successful helper returning status 1.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 4f1f992e-ce21-4cad-8b17-f29db5da14ae
@Redth
Redth merged commit 8f8d5e4 into main Aug 27, 2026
3 checks passed
Redth added a commit that referenced this pull request Aug 27, 2026
Merges PR #14's fail-closed workload gate. Clean merge, and the gate is
preserved intact - no continue-on-error reintroduced.

PR #14's transition regression test failed on the merged tree, and it was
right to. It discovers Tizen projects dynamically and requires each to be
listed in the real lane; eng/build-tizen.sh names six while this branch
now has seven. The sample became a real Tizen project when it started
importing TizenPackage.props and compiling its own sources, and
build-tizen.sh's own comment says the test "rejects a newly added Tizen
project that is not added here, including a future sample".

So the sample is added rather than the assertion relaxed. It is the only
project exercising the SingleProject/manifest path end to end, and an app
head that stops building is exactly what this lane exists to catch. It
sets IsPackable=false, so the pack phase no-ops for it rather than
failing. All 51 gate tests pass.

G11 corrected. My write-up said "IImageSourcePaint ... is INTERNAL,
verified by reflection". That conflated two types: I probed the concrete
ImageSourcePaint and wrote it up as though I had probed the interface.
Re-verified against the pinned package:

    IImageSourcePaint present : NO - absent from this package
    ImageSourcePaint present  : yes, public=False

The concrete class is intentionally internal and is expected to stay so.
What is missing is the public consumption-only IImageSourcePaint contract
from upstream PR #37864. That changes what we are waiting on - a new
contract, not a type being opened up - so the docs and the inline comment
now say that, and my closing note claiming this contradicted earlier
guidance is deleted, since that framing was mine and it was wrong.

No behaviour change from the correction: the mapper still clears on an
unrenderable paint and the adoption guard stays.

Validation: 364 host tests, Debug and Release; all three ref-pack lanes
build against real TizenFX with the PublicAPI analyzer clean; full
workload-free gate zero failures; PR #14's gate suite 51/51. Nothing has
run on a device.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e23a54a9-6a68-4e30-8920-e2a17fd2ad6a
Redth added a commit that referenced this pull request Aug 27, 2026
Preserve the fail-closed Tizen workload CI transition from PR #14 alongside the imported PublicAPI provenance invariant.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 601c018b-7f8d-4007-a9b0-3bf1839562c1
Redth added a commit that referenced this pull request Aug 27, 2026
All six verified against source before fixing. Two were bugs I introduced
in earlier "fixes"; two are upstream behaviour this backend was
inheriting.

1. Reentrant content invalidation. Both view groups suppress
   RequestLayout while a layout pass is running, so a measure invalidated
   DURING that pass scheduled nothing - and arranging children invalidates
   them constantly. The invalidation was simply dropped: the dirty flag
   stayed set with nothing to consume it. The outermost pass now replays
   it on the way out. The predicate is in TizenPropertyResolvers so it
   executes on the host; the groups derive from NUI types and can only be
   compile-checked, and the predicate is the part that was wrong.

2. Animated pop played the fade on an EMPTY wrapper. My previous fix
   detached content before Pop(true) to avoid a double dispose, which
   fixed the disposal and broke the animation - the page vanished
   instantly, then a blank rectangle animated out. The content now stays
   attached for the whole animation and is rescued afterwards, before the
   wrapper is disposed. One owner throughout: the handler owns the
   content, the wrapper owns itself.

3. TizenControlsMappings.Register had NO production caller. The bridge
   compiled, shipped and did nothing, while the unit tests that call it
   directly passed. ConfigureTizenControls now registers an
   IMauiInitializeService, and Register forces Controls' own lazy
   RemapForControls FIRST - registering before that runs is not merely
   useless, Controls' remap can replace the entries just installed, and
   the failure is silent and order-dependent.

   The bridge sources are now compiled into the host lane too, so the
   startup path is EXECUTED rather than only type-checked. That absence
   of execution is exactly why the missing caller went unnoticed.

4. Accessibility semantics. AccessibilityHidden removes an element AND
   its subtree; AccessibilityHighlightable governs only the element.
   IsInAccessibleTree is a statement about one element, so mapping it onto
   Hidden silently removed every descendant - a container marked
   not-in-tree took children with it that carry no annotation and are
   individually accessible on every other platform. Hidden is now reserved
   for ExcludedWithChildren. Unset annotations resolve to null and are not
   written at all, so an unannotated element keeps whatever the control or
   platform configured rather than being stamped with false.

5. Head and Middle truncation rendered as Tail. UIExtensions collapses all
   three modes into `MultiLine = false; Ellipsis = true;` and never sets
   EllipsisPosition, which defaults to End - so asking for a leading
   ellipsis produced a trailing one. Now set explicitly, with the native
   enum values read from API15 metadata rather than assumed.

6. Maui.Tizen.Controls had no PublicAPI analyzer and no baseline, so a
   shipping assembly's public surface could change silently. Both product
   and lane now reference the analyzer against a generated baseline.

   Its lane also referenced Microsoft.Maui.Controls - the XAML-inclusive
   package - while the product references Microsoft.Maui.Controls.Core. A
   lane with broader references than the product can compile code the
   product cannot, which is the one failure mode a verification lane must
   not have. Now matched, and a test pins it in both directions.

Mutation-tested: dropping the reschedule, rescheduling regardless of
depth, hiding the subtree from IsInAccessibleTree, stamping defaults over
unset annotations, collapsing truncation to End, removing the startup
registration, and restoring the XAML-inclusive reference all fail.

MaxLines and FormattedText remain explicitly assigned to Wave A.

Validation: 385 host tests, Debug and Release; all three ref-pack lanes
build against real TizenFX with the PublicAPI analyzer clean; full
workload-free gate zero failures; PR #14's gate suite 51/51.

Not verified: nothing has run on a device. The animated-pop ordering in
particular is compile-checked only - it is control flow around an await
on a native animation, which no host test can observe.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e23a54a9-6a68-4e30-8920-e2a17fd2ad6a
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