Repository navigation
Add validation infrastructure: hosted lane, device lane, and DevFlow agent - #11
Merged
Merged
Conversation
Redth
added a commit
that referenced
this pull request
Aug 26, 2026
…policy Ten further review findings. All were real; several were things that looked correct while doing nothing. Blazor package graph (verified against the feed, not assumed) Microsoft.AspNetCore.Components.WebView was pinned to MAUI's version stamp 11.0.0-preview.7.26418.3. That version does not exist for that package - it is an ASP.NET Core package on its own version line - so NuGet silently substituted 11.0.0-rc.1.26378.118 (NU1603) and then failed with NU1109 downgrades across the graph. That substitution is where the "actual dependency is rc.1" report came from; it was NuGet's fallback, not a declared dependency. Microsoft.AspNetCore.Components.WebView.Maui 11.0.0-preview.7.26418.3 declares Microsoft.AspNetCore.Authorization, Microsoft.AspNetCore.Components.WebView and Microsoft.JSInterop at exactly 11.0.0-preview.7.26381.103 - which also matches the SDK build pinned in global.json, so the whole graph stays on one ASP.NET Core build. Pinned there. RC1 would have silently upgraded past what MAUI asked for. Package source mapping now lists the prerelease patterns under BOTH sources. NuGet restores only from sources declaring the longest matching pattern, so Microsoft.AspNetCore.* under dotnet11 alone would have made every ASP.NET Core package resolvable only from that feed (NU1100 for anything it lacks). Added eng/tests/PackageGraphProbe: a net11.0 project whose only purpose is to make restore prove these pins resolve. Necessary because the real consumers are Tizen projects, and they cannot restore at all - the workload gate fires before Restore - so a broken pin would otherwise stay invisible until Samsung ships. Verified it reproduces the original NU1603/NU1109 failure. CI workload probe could never succeed (#5) `dotnet workload install tizen --skip-manifest-update` cannot work on a clean runner: the Samsung manifest is third-party and side-loaded, so the workload ID is not discoverable through public workload search, and --skip-manifest-update guarantees failure because the manifest is exactly what is missing. A probe that can never succeed would keep reporting "blocked" for weeks after the gate lifts. Replaced with a feed probe for an 11.0.100-band manifest package, checking both ID spellings. Installation, when it happens, goes through Samsung's supported path. Dead configuration removed (#6, #10) - <Compile Update="**/*.Tizen.cs" /> had no metadata, so it changed nothing, and EnableDefaultCompileItems=false meant there were no items to update anyway. It read as meaningful configuration while being unreachable. - ValidateBaselineConsistency did substring matching on JSON inside MSBuild. Parsed validation already exists in the workload-free script and the invariant tests, which is where it belongs. Orphan imported projects (#7) GraphicsTester.Skia.Tizen.csproj was imported because its filename contains "Tizen", but it cannot load here: its TFM is $(_MauiDotNetTfm)-tizen (a dotnet/maui property that does not exist here, so the TFM evaluates to the malformed "-tizen") and both ProjectReferences point at projects never imported. Parked as .csproj.orphan - file and history intact, invisible to project discovery - with samples/README.md documenting every orphan asset directory and an invariant test asserting every .csproj is in the solution. Analyzers and warnings (#8, #14) - Added Microsoft.CodeAnalysis.PublicApiAnalyzers (PrivateAssets=all) so the PublicAPI baselines are enforced rather than inert text. - Removed the Microsoft.SourceLink.GitHub pin; the SDK has bundled it since .NET 8. - Suppressed CS1591 in TizenPackage.props: the inherited sources are not uniformly documented, so the first project to start compiling would otherwise fail on hundreds of missing-comment errors under warnings-as-errors. Documentation is its own workstream, not a blocker for the first handler. Licensing (#9) git-filter-repo is vendored and load-bearing, so unlike the referenced-only Samsung packages it IS redistributed. Added its upstream, version, MIT licence text and a verification command to THIRD-PARTY-NOTICES.md. CI hygiene (#11, #12) - `dotnet test --no-build` is skipped when a preceding build failed; running it against missing output buries the actual first failure in cascading noise. - Added a scheduled dependency-audit workflow. The strict policy stays (audit at `low`, warnings as errors - this ships to devices where patching is slow), but a newly published advisory now files an issue weekly instead of ambushing whoever opens the next unrelated PR. Suppression process documented, with a required justification and re-review date. Naming and provenance (#13) Replaced 'samsung.net.sdk.tizen.manifest-11.0.100' with the actual band contract Samsung.NET.Sdk.Tizen.Manifest-11.0.100-preview.7, recording both ID spellings (NuGet IDs are case-insensitive) and the probe results for each. Documented that tizen11.0/API15 comes from Samsung workload PR #310 - verified, not assumed. Also recorded that enabling Build.Tasks raises real SkiaSharp native-asset packaging questions, flagged as an open decision rather than papered over. Tests: 28 -> 33 invariants, plus the package graph probe wired into the required lane. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Redth
force-pushed
the
redth-tizen-validation-harness
branch
from
August 26, 2026 21:17
84fa1f3 to
60223cd
Compare
…agent
The primary target is net11.0-tizen11.0, which nobody can build today: the Samsung
workload manifest samsung.net.sdk.tizen.manifest-11.0.100 is unpublished, so every
Tizen TFM fails restore with NETSDK1139. Building validation around "run it on a
device" would mean no validation at all until an external dependency ships, and an
entirely unexercised harness on the day it finally mattered.
So the work is split by what blocks it rather than by what it tests. The hosted lane
runs everywhere on every PR; the device lane is separate, tolerated-missing for PRs,
and required for release through environments and a gate job.
Pulling work INTO the hosted lane was the main design goal:
* The DevFlow API contract. src/Diagnostics/Maui.Tizen.DevFlow.Agent cannot be
compiled by anyone, but DevFlow's own packages are plain net10.0 assemblies, so
the hosted lane loads them and pins every member the Tizen agent overrides. All
24 signatures were verified by compiling a probe subclass against the real
package, not inferred.
* Agent decision logic. Capability advertisement, privilege gating, platform
identity and the native-element registry live in a Tizen-free Shared assembly and
are fully unit-tested.
* Dependency policy. Tizen.UIExtensions cannot be restored on a host, but its
declared dependencies can be read from its nuspec. The MAUI Graphics 6.x rule is
a tripwire asserted in BOTH directions, so a stale exemption cannot outlive the
problem it described.
* Convention engines. Mapper parity, DI registration and implementation coverage
are exercised against in-assembly fakes including cases that must fail; a broken
engine would otherwise be indistinguishable from a passing one.
133 tests, 0 failures, 7 skips. Every skip names what is missing and which lane
covers it, and the runner prints them: a suite that quietly skips everything is the
failure mode this lane exists to prevent.
Two real defects found and fixed while building this:
* eng/build-workload-free.sh used `grep -qi tizen`, which matches the maui-tizen
workload. That workload carries no Tizen platform packs at all - in the MAUI
manifest it is only `"extends": ["maui-blazor"]` - so the gate reported "the
Tizen lane can now be made required" on a machine where every Tizen build fails.
Now anchored to a workload id of exactly `tizen`.
* Consumer tests were not hermetic: a package produced by one test resolved from
the shared global NuGet cache in another test even when absent from the feed
under test, turning a negative restore test into a false pass. Each workspace now
gets its own NUGET_PACKAGES.
Screenshot comparison implements PNG decode/encode directly rather than taking
SkiaSharp or ImageSharp: no native assets, so it behaves identically across runners,
and no risk of a library version change silently invalidating every checked-in
baseline.
Deliberately not done here: MAUI.Sherpa is documented as a separate consumer head
with a feed handoff contract, and is not modified. Wiring it into this build would
let it resolve project references instead of packages and stop testing the thing it
exists to test.
The Tizen-targeted agent code is not verified by a compiler. That is stated plainly
at the top of its project file and in docs/validation/blockers.md rather than left to
be discovered.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…emantics
The first CI run failed where the local run had passed. TreatWarningsAsErrors is
conditioned on ContinuousIntegrationBuild, so xUnit1051 - async calls should pass
TestContext.Current.CancellationToken - was a warning locally and an error in CI.
Both halves are fixed rather than just the symptom:
* Every DotNetCli call in a test now flows the test's cancellation token, so a hung
'dotnet restore' is cancelled with the test instead of running to the 10-minute
timeout.
* run-hosted-validation.sh exports ContinuousIntegrationBuild=true by default,
mirroring eng/build-workload-free.sh, so a local run applies the same rules CI
does. MAUI_TIZEN_LOCAL_SEMANTICS=1 opts out.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…tate
The first CI run could not restore DevFlow. Three distinct problems, all found by
reproducing CI with a cold NUGET_PACKAGES rather than by guessing:
* PackageSourceMapping sent Microsoft.Maui.* exclusively to the dotnet11 feed, but
DevFlow publishes to nuget.org. Its ids start with Microsoft.Maui. and so matched
that pattern. Added a longer, more specific Microsoft.Maui.DevFlow.* pattern under
nuget.org, which wins by longest prefix.
* DevFlow's preview packages were built against the RELEASED MAUI 10.0.x packages,
which exist only on nuget.org, so its transitive dependencies were unresolvable
too. Microsoft.Maui.* is now listed under both sources; NuGet considers both and
selects by version, and versions stay centrally pinned. Pinning DevFlow onto the
net11 preview instead was tried and rejected: it drags in Microsoft.Extensions.*
previews that no mapped feed publishes.
* A user-level config that disables nuget.org silently switched the source off, and
the resulting NU1100 lists nuget.org as considered - so it reads like a missing
package rather than a disabled feed. nuget.config now clears
disabledPackageSources, for the same reason it already cleared packageSources.
Verified with , which is what
made the difference: every earlier local run passed only because the packages were
already in the shared cache.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Two platform facts break code that compiles fine against older Tizen: Tizen.Maps was
removed, and Tizen.NUI.Window.Instance is deprecated in favour of Window.Default.
Both are verified rather than asserted. The Samsung reference pack is an ordinary NuGet
package, so the hosted lane downloads the version pinned in eng/baselines.json
(Samsung.Tizen.Ref.API15 15.0.0.19396) and checks that Tizen.Maps.dll really is absent
from its 105 assemblies, and that Window.Instance really carries [Obsolete("This has
been deprecated in API12, please use Default instead")] while Window.Default exists.
That also makes the rules self-retiring: if Samsung restores a removed assembly or drops
a deprecation, the reference-pack tests fail and say the rule should be deleted, instead
of the repository carrying a workaround for a problem that no longer exists. Verified by
flipping the contract values and confirming both tests fail.
SCOPE. The guard scans a file exactly when a project compiles it. src/Maui.Tizen.* was
imported verbatim from dotnet/maui and sets EnableDefaultCompileItems=false, so those
sources are <None> and are out of scope: scanning them would produce hundreds of failures
describing upstream history, and the only way to green would be to switch the guard off.
Projects enter scope automatically as each wave opts into compiling. Compile sets are
resolved by reading project XML, because the Tizen projects cannot be MSBuild-evaluated
at all without the Samsung workload.
It immediately found three real uses of Window.Instance in the DevFlow agent, now fixed.
Also fixed an adjacent latent bug there: ResolveWindow returned the default window for
every index, which would silently capture the wrong surface once multi-window exists.
MapService is banned but MapServiceToken is explicitly allowed, and both are recorded:
IGeocoding is unsupported on API15 (built on Tizen.Maps, no replacement API, must not be
DI-registered, throws PlatformNotSupportedException), while MapServiceToken stays
accepted and no-op so the Essentials DI bridge startup path keeps working. Matching whole
identifiers is what keeps the ban from flagging the shim it exists to preserve.
The scanner blanks comments and string literals before matching, preserving offsets so
line numbers stay exact. Not theoretical: this repository's own docs and the contract file
itself discuss both banned symbols at length.
Also removes duplicated foundation logic: the workload probe now uses the foundation's
ReportTizenWorkload target rather than my grep, and the inline baseline-consistency check
in build-workload-free.sh is dropped in favour of RepositoryContractTests, which asserts
the same invariants plus manifest api-version and SDK band membership.
Two foundation invariants needed narrow, justified exclusions: Microsoft.Maui.DevFlow.* is
not part of the MAUI baseline (separate maui-labs release train), and tests/fixtures/** are
inputs to tests rather than solution members - they ship empty Directory.Build.props so
they do not inherit repository conventions, which is the point of them.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…e Tizen agent
Eight required fixes from code review.
1. RELEASE GATE. The gate inspected only the matrix job's result, and a matrix whose device
steps were all conditioned out still reports success - so a device lane that validated
nothing passed a release. Each profile now writes a result file recording whether the lane
was available and whether it passed, and the gate requires one per required profile.
Artifacts rather than job outputs, because matrix outputs collapse to a single
last-writer-wins value and a passing profile would mask a skipped one. The decision moved
out of YAML into eng/validation/scripts/evaluate-release-gate.sh so it can be tested;
ReleaseGateTests covers it as a truth table including the exact case that slipped through.
2. PHANTOM PROJECT. The workflow built samples/Maui.Tizen.Catalog.csproj, which has never
existed; the step never ran, so it sat there looking plausible. The app under test is now a
repository variable, absence is reported, and a release is BLOCKED rather than passing
vacuously. WorkflowReferenceTests asserts no workflow references a missing path.
3. API15 AGENT CODE - and the compiler to prove it. eng/tests/Api15CompileProbe compiles
the agent against the real Samsung.Tizen.Ref.API15 assemblies, consumed as an ordinary
package, on a hosted runner with warnings-as-errors. It found ~15 real defects:
* Window.FeedTouch does not exist; input now uses Tizen.NUI.WindowSystem.InputGenerator
(verified ctor/GenerateTouch/GenerateKey signatures), and Buttons go through the managed
IButton.Clicked path rather than an unraisable NUI event.
* Capture.Instance and Capture.FinishedEventArgs do not exist; Capture is instantiated per
request and the event args type is top-level CaptureFinishedEventArgs.
* Window.GetDefaultLayer() returns Layer, not View; Capture.Start takes a Container.
* PrivacyPrivilegeManager is itself [Obsolete] in API15; privileges now come from
Package.Privileges, which is also more accurate for install-time privileges.
* GraphicsTypeManager.ScaleFactor does not exist; the property is Density.
* Our own Maui.Tizen.* namespace shadows Tizen.*, so Tizen.Log resolved to Maui.Tizen.Log.
* View/Window/Color/Path are ambiguous with Microsoft.Maui.* under UseMaui.
4. ON-DEVICE ASSERTIONS. The device job ran the hosted script on the controller, where no
Tizen backend is loaded, so mapper-parity and Essentials skipped exactly as on a hosted
runner. It now invokes a DevFlow extension endpoint inside the deployed app, and a run
reporting zero assertions is a failure.
5/6. RELEASE ENFORCEMENT. The workflow exports MAUI_TIZEN_RELEASE_VALIDATION=1 on release
runs, and ReleaseReadinessTests turns the skip-on-missing-artifact suites into failures:
every declared package packed and matching its contract, every required baseline present,
every gating profile reporting a hardware pass. A test asserts the flag stays wired, since
losing it would silently restore skipping.
7. CAPABILITY CACHING. The environment froze window-dependent capabilities at construction,
so an agent that started before the first window reported the tree, screenshot and
interaction endpoints as unsupported forever. They are live probes now.
8. LIFECYCLE. app_launcher -k terminates; relaunching is a cold start, which tests process
startup rather than suspend/resume - where Tizen apps actually lose state. Backgrounding now
goes through the home application, and resume asserts the process survived, handlers
re-attached (non-empty tree), and a pre-background marker survived.
180 tests, 0 failures. Verified the new gates fail for the right reasons: flipping contract
values fails the ref-pack checks, and MAUI_TIZEN_RELEASE_VALIDATION=1 fails all four
release-readiness gates on the current tree.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
VALIDATION REVIEW 1. Cross-profile readiness ran inside each matrix profile, where the current profile's result still says status=running and the other profile's artifact does not exist - so it could only ever fail. Moved to release-gate, after all profile artifacts are downloaded. WorkflowOrderingTests asserts the placement and fails if it moves back. 2. The workflow installed but never launched the app, and a plain Release build excludes AddMauiDevFlowAgent() (conventionally '#if DEBUG'), so the driver would have had nothing to talk to. Added launch + bounded wait-for-agent, and the build now passes -p:MauiTizenValidation=true, which the app is expected to map to MAUITIZEN_DEVFLOW. 3. The baseline lane only captured, so it could not fail on a rendering regression. It now uses curl --fail (without it a 501 body is written to a .png and 'capture' succeeds), captures into the baseline folder shape, emits metadata sidecars, and runs ImageComparer, uploading actual/expected/diff. 4. Wired the DevFlow key endpoint to TryInjectKeyAsync and gated ui.key on the inputgenerator privilege. It was advertised on window presence alone, so the endpoint reported success and did nothing - which reaches a driver as 'pressed a key, nothing happened'. 5. Native tap returned success after merely focusing a view. A driver saw 'tap succeeded' while the control's command never ran, sending the investigation to the control's logic instead of to the tap that never happened. Focus is now a separate operation, and the verdict lives in NativeActivationPolicy in the platform-neutral assembly so it is testable on a hosted runner. ARCHITECTURE REVIEW 1. The premise that DevFlow has no custom route mechanism is incorrect, and I checked rather than complied: AgentExtension exposes MapGet/MapPost/MapPut/MapDelete/MapTool, and the abstractions assembly contains AgentExtensionRoute and RegisterExtensionRoutes. The route is now registered through that supported API, DevFlowContractTests pins the exact signatures, and the harness DISCOVERS the endpoint from advertised capabilities instead of composing a URL blind. The app supplies assertions via IConventionAssertionProvider; with none registered the route answers 501 rather than an empty pass. 4. tizen-device-validation is callable via workflow_call and publishes a fail-closed gate_passed output (written false first, set true only after the gate script exits 0). The tizen-release environment is attached to release-gate - the job that decides - rather than to device-matrix, which would gate the work while leaving the verdict ungated. Present-tense approval claims are removed: neither environment exists yet, so no approval is currently enforced, and the release.yml wiring is recorded as outstanding work needing PR #1. 5. Each profile is bound to an explicit serial variable and its own host port, with max-parallel:1. A label alone says which machine to use, not which of several attached targets to drive, so a tv job could silently have run against a handset. 6. Expected mapper keys are now generated from the pinned Microsoft.Maui.Core package, which ships a neutral net11.0 asset, instead of a hand-maintained list that would be wrong in the most damaging direction. Removed the dead assembly-name list that claimed Microsoft.Maui.* names this repository does not ship. Note: ApplicationHandler and the MenuFlyout family legitimately map no properties, so the check distinguishes unreadable mappers from empty ones. 7. The device lane runs only the comparison suite via MAUI_TIZEN_SUITES rather than re-running the hosted lane on scarce lab hardware. 190 hosted tests. Verified the new guards are non-vacuous by reintroducing both ordering bugs and watching them fail. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Redth
added a commit
that referenced
this pull request
Aug 27, 2026
Own-scope follow-up (no rebase - redth-tizen-foundation-import and redth-tizen-validation-harness are both still actively moving; PR #11 is currently DIRTY against its own base, so rebasing onto either now would just be redone shortly). Confirmed the flow already satisfies: - device-validation consumes tizen-device-validation.yml's workflow_call fail-closed (release_validation: true; that workflow's own release-gate job is the source of truth, per per-profile hardware result artifacts). - release-gate uses the literal `tizen-release` protected environment. - pack's workload detection never calls `dotnet workload install tizen --skip-manifest-update` as a probe; it queries nuget.org for the exact Samsung manifest package (samsung.net.sdk.tizen.manifest-<band>), then re-verifies with `dotnet msbuild -t:ReportTizenWorkload` before ever attempting a real install. - docs/governance/samsung-transfer-checklist.md (teams, environments, branch protection, package owners, signing, device runners, recovery contacts, mandatory rehearsal release) and package-metadata-conventions.md's ownership/trusted-publishing sections are all untouched and present. What this commit adds: `sign` and `publish` did not previously touch any artifact, so "sign before push" was only true by job ordering, not by data flow - publish had no way to be blocked from an unsigned package other than the (currently permanent) guard-step failure. Closed that gap: - `sign` now downloads the exact `maui-tizen-packages-unsigned-*` artifact `pack` produced (needs: [release-gate, build], so it can read needs.build.outputs.package_version) before its fails-closed placeholder step, with continue-on-error on the download so an expected "artifact not found" (pack cannot produce real packages before the workload ships) doesn't mask the intentional, actionable failure message in the next step. The commented-out real implementation shows signing writing to artifacts/signed and uploading it as `maui-tizen-packages-signed-*`. - `publish` is now documented and shaped to only ever download `maui-tizen-packages-signed-*` - there is deliberately no fallback to `pack`'s unsigned artifact, so an unsigned package can never reach nuget.org through this workflow even once the guard step is eventually replaced. Validation: actionlint -shellcheck= passes on release.yml (0 errors); every run: script individually re-verified with bash -n and standalone shellcheck (all clean); job dependency graph printed and confirmed: build -> validate -> pack -> device-validation -> release-gate (env: tizen-release) -> sign (env: nuget-signing) -> publish (env: nuget-production). Blockers requiring Samsung action (tracked, not actionable from this repository): the 11.0.100-band Samsung Tizen workload manifest is still unpublished (eng/baselines.json), so pack/device-validation cannot exercise a real signed package end-to-end yet; Samsung's supported installer/local manifest flow (docs/migration.md, Tizen.NET PR #310) is referenced but not concretely wired into this workflow because there is nothing published to install against. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
… directory Rebasing onto main surfaced a real defect in two skip guards. They asked 'does artifacts/packages contain any .nupkg?', which was already the wrong question and became visibly wrong once main added eng/tests/PackReadmeProbe - that probe packs Maui.Tizen.Internal.PackReadmeProbe into the same directory. The consequence was not a false pass but a confusing false failure: the consumer restore test tried to restore a net11.0-tizen11.0 project and failed with NETSDK1139, which reads as a packaging defect rather than the absent Samsung workload it actually is. Both guards now ask per declared package id whether that specific package was produced. PackagingTests additionally holds whatever HAS been produced to its contract instead of skipping wholesale, so a partial pack is still checked. Release gating is unaffected and still fails closed: with MAUI_TIZEN_RELEASE_VALIDATION=1 all four ReleaseReadinessTests gates fail on the current tree, because a release must assert these artifacts exist rather than skip. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Redth
force-pushed
the
redth-tizen-validation-harness
branch
from
August 27, 2026 00:14
022ae37 to
cefed16
Compare
Preserve the additive inventory and validation solution/build-lane entries while keeping DevFlow on the published preview.12 compatibility contract. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4cee2728-fea5-44a3-abec-ce90e922c271
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: ff8bfe05-80c9-4920-9292-64e6f2dd65d2
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: ff8bfe05-80c9-4920-9292-64e6f2dd65d2
…n-harness # Conflicts: # Maui.Tizen.slnx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rebased onto
mainnow that the foundation (75da815) and Maps disposition (3bb505d) have merged. The diff is validation-only.The problem this is shaped around
The primary target is
net11.0-tizen11.0, and nobody can build it today. The Samsung workload manifestsamsung.net.sdk.tizen.manifest-11.0.100is unpublished, so every Tizen TFM fails restore withNETSDK1139.Building validation around "run it on a device" would mean no validation at all until an external dependency ships, and an entirely unexercised harness on the day it finally mattered. So the work is split by what blocks it, not by what it tests.
ubuntu-latestv*tags,[self-hosted, tizen]Results
254 tests discovered: 240 executed, 0 failures, 14 skips. Every skip names what is missing and which lane covers it, and the runner prints them — a suite that quietly skips everything is the failure mode this lane exists to prevent.
Review round 3 — validation + architecture
Cross-profile readiness ran in the wrong job. Inside each matrix profile it could only ever fail: the current profile's result still says
status=runningand the other profile's artifact does not exist. Moved torelease-gateafter all artifacts download;WorkflowOrderingTestsasserts the placement.The app was never launched, and a Release build excludes
AddMauiDevFlowAgent()(conventionally#if DEBUG) — so the driver had nothing to talk to. Added launch + boundedwait-for-agent, and the build passes-p:MauiTizenValidation=true.Baselines were captured but never compared. Now
curl --fail(without it a 501 body is saved as a.pngand "capture" succeeds), captures into the baseline folder shape, emits metadata sidecars, runsImageComparer, and uploads actual/expected/diff.ui.keywas advertised without the privilege — the endpoint reported success and did nothing, which reaches a driver as "pressed a key, nothing happened". Now gated and wired toTryInjectKeyAsync.Native tap returned success after merely focusing. A driver saw "tap succeeded" while the command never ran, sending the investigation to the control's logic instead of the tap that never happened. Focus is now separate; the verdict lives in
NativeActivationPolicyso it is testable on hosted.One architecture item was based on an incorrect premise
The review asked me to remove the extension endpoint because "DevFlow Agent.Core has no custom route mechanism". It does — I verified before complying:
AgentExtensionexposesMapGet/MapPost/MapPut/MapDelete/MapToolAgentExtensionRouteandRegisterExtensionRoutesSo the route is now registered through that supported API,
DevFlowContractTestspins the exact signatures, and — addressing the real underlying risk — the harness discovers the endpoint from advertised capabilities instead of composing a URL blind. The app supplies assertions viaIConventionAssertionProvider; with none registered the route answers 501 rather than an empty pass.The rest
Reusable via
workflow_callwith a fail-closedgate_passedoutput (writtenfalsefirst,trueonly after the gate exits 0).tizen-releaseis attached torelease-gate— the job that decides — not todevice-matrix, which would gate the work while leaving the verdict ungated. Present-tense approval claims removed: neither environment exists yet, so no approval is enforced, and therelease.ymlwiring is recorded as outstanding work needing PR #1.Each profile is bound to an explicit serial variable and its own host port with
max-parallel: 1— a label says which machine to use, not which of several attached targets, so atvjob could otherwise have run against a handset.Expected mapper keys are generated from the pinned
Microsoft.Maui.Corerather than a hand-maintained list, and the deadMicrosoft.Maui.*assembly-name list this repo never ships was removed. The device lane now runs only the comparison suite instead of re-running the hosted lane on scarce lab hardware.Review round 2 — eight required fixes
The release gate had a hole. It inspected only the matrix job's result, and a matrix whose device steps are all conditioned out still reports
success— so a device lane that validated nothing passed a release. Each profile now writes a result file recording whether the lane was available and whether it passed, and the gate requires one per required profile (artifacts, not job outputs — matrix outputs collapse to last-writer-wins, so a passing profile would mask a skipped one). The decision moved out of YAML intoeng/validation/scripts/evaluate-release-gate.shso it is testable;ReleaseGateTestscovers it as a truth table including the exact case that slipped through.No more phantom project. The workflow built
samples/Maui.Tizen.Catalog.csproj, which never existed — the step never ran, so it looked plausible indefinitely. The app under test is now a repository variable, its absence is reported, and a release is blocked rather than passing vacuously.WorkflowReferenceTestsasserts no workflow references a missing path.The Tizen agent now has a compiler.
eng/tests/Api15CompileProbecompiles the agent's sources against the realSamsung.Tizen.Ref.API15assemblies — an ordinary NuGet package — on a hosted runner with warnings-as-errors. It found ~15 real defects that would each have failed a device build:Window.FeedTouchTizen.NUI.WindowSystem.InputGeneratorCapture.Instance,Capture.FinishedEventArgsCapture; top-levelCaptureFinishedEventArgsGetDefaultLayer()returnsViewLayer;Capture.StarttakesContainerPrivacyPrivilegeManager[Obsolete]in API15 →Package.PrivilegesGraphicsTypeManager.ScaleFactorDensityTizen.LogMaui.Tizen.*namespace shadowsTizen.*View/Window/Color/PathMicrosoft.Maui.*underUseMauiButtons now go through the managed
IButton.Clickedpath rather than an unraisable NUI event.On-device assertions run on-device. The device job ran the hosted script on the controller, where no Tizen backend is loaded — so mapper parity and Essentials skipped exactly as on a hosted runner. It now invokes a DevFlow extension endpoint inside the deployed app, and a run reporting zero assertions is a failure.
Release runs enforce instead of skip. The workflow exports
MAUI_TIZEN_RELEASE_VALIDATION=1, andReleaseReadinessTeststurns the skip-on-missing-artifact suites into failures: every declared package packed and matching its contract, every required baseline present, every gating profile reporting a hardware pass. A test asserts the flag stays wired, since losing it would silently restore skipping.Capabilities are no longer frozen at startup. The environment cached window-dependent capabilities at construction, so an agent starting before the first window reported tree/screenshot/interaction as unsupported forever. They are live probes now.
Lifecycle is a real suspend/resume.
app_launcher -kterminates — relaunching is a cold start, which tests process startup rather than suspend/resume, where Tizen apps actually lose state. Backgrounding now goes via the profile-specific home application, and resume assertsapp.processIdis unchanged and the handlers re-attached (non-empty tree).API15 source and reference-pack guards
Two platform facts break code that compiles fine against older Tizen:
Tizen.Mapswas removed, andTizen.NUI.Window.Instanceis deprecated in favour ofWindow.Default.Both are verified, not asserted. The Samsung reference pack is an ordinary NuGet package, so the hosted lane downloads the version pinned in
eng/baselines.json(Samsung.Tizen.Ref.API15 15.0.0.19396) and checks thatTizen.Maps.dllreally is absent from its 105 assemblies, and thatWindow.Instancereally carries[Obsolete("This has been deprecated in API12, please use Default instead")]whileWindow.Defaultexists.That also makes the rules self-retiring: if Samsung restores a removed assembly or drops a deprecation, the reference-pack tests fail and say the rule should be deleted, rather than the repo carrying a workaround for a problem that no longer exists. Verified by flipping the contract values and confirming both tests fail.
Scope is exactly what compiles.
src/Maui.Tizen.*was imported verbatim and setsEnableDefaultCompileItems=false, so those sources are<None>and are out of scope — scanning them would produce hundreds of failures describing upstream history, and the only way to green would be to switch the guard off. Projects enter scope automatically as each wave opts into compiling. Compile sets are resolved by reading project XML, because the Tizen projects cannot be MSBuild-evaluated at all without the Samsung workload.It immediately found three real uses of
Window.Instancein the DevFlow agent, now fixed — plus an adjacent latent bug whereResolveWindowreturned the default window for every index, which would silently capture the wrong surface once multi-window exists.MapServiceis banned butMapServiceTokenis explicitly allowed, and both are recorded:IGeocodingis unsupported on API15 (no replacement API, must not be DI-registered, throwsPlatformNotSupportedException), whileMapServiceTokenstays accepted and no-op so Essentials DI-bridge startup keeps working. Whole-identifier matching is what stops the ban flagging the shim it exists to preserve.The scanner blanks comments and string literals before matching, preserving offsets so line numbers stay exact — not theoretical, since this repo's own docs and the contract file discuss both banned symbols at length.
See
docs/validation/api15-guards.md.Pulling work into the hosted lane
This was the main design goal, since the device lane is blocked indefinitely.
The DevFlow API contract. The real
net11.0-tizen11.0project remains blocked on Samsung's workload, but the hosted API15 compile project compiles the agent sources against the real Samsung reference assemblies. Separately, the hosted DevFlow contract suite loads the plainnet10.0packages and pins every member the Tizen agent overrides. If either platform or DevFlow changes shape, an ordinary PR fails instead of the problem surfacing on a device months later.Agent decision logic. Capability advertisement, privilege gating, platform identity and the native-element registry live in a Tizen-free
Sharedassembly and are fully unit-tested.Dependency policy.
Tizen.UIExtensionscan't be restored on a host, but its declared dependencies can be read from its nuspec. The MAUI Graphics 6.x rule is a tripwire asserted in both directions — it fails today if the violation disappears, prompting the rule to be flipped to enforcing. That's the only reliable way to stop a stale exemption outliving the problem it described.Convention engines. Mapper parity, DI registration and implementation coverage are exercised against in-assembly fakes including cases that must fail. Without that, a broken engine is indistinguishable from a passing one.
Real defects found while building this
eng/build-workload-free.shreported a false green. It usedgrep -qi tizen, which matches themaui-tizenworkload. That workload carries no Tizen platform packs at all — in the MAUI manifest it is only"extends": ["maui-blazor"]. The gate therefore printed "the Tizen lane can now be made required" on a machine where every Tizen build fails withNETSDK1139. Now anchored to a workload id of exactlytizen.Consumer tests were not hermetic. A package produced by one test resolved from the shared global NuGet cache in another test even when absent from the feed under test — turning a negative restore test into a false pass. Each workspace now gets its own
NUGET_PACKAGES.PackageSourceMappingcould not resolve DevFlow (found by the first CI run).Microsoft.Maui.*was mapped exclusively to thedotnet11feed, but DevFlow publishes to nuget.org and its ids start withMicrosoft.Maui.. Added a longer, more specificMicrosoft.Maui.DevFlow.*pattern under nuget.org (longest prefix wins). DevFlow's preview packages were also built against the released MAUI 10.0.x packages, which only exist on nuget.org, soMicrosoft.Maui.*is now listed under both sources — NuGet considers both and selects by version, with versions still centrally pinned. Worth noting this mapping had never actually been exercised: no project in the repository restored a MAUI package before now.Restore depended on machine-level state. A user-level config disabling
nuget.orgsilently switched the source off, and the resultingNU1100lists nuget.org as considered — so it reads like a missing package rather than a disabled feed.nuget.confignow clearsdisabledPackageSources, for the same reason it already clearedpackageSources.xUnit1051only failed in CI.TreatWarningsAsErrorsis conditioned onContinuousIntegrationBuild, so a locally green run still failed. Fixed both halves: tests now flowTestContext.Current.CancellationToken(so a hungdotnet restoreis cancelled with the test), andrun-hosted-validation.shexportsContinuousIntegrationBuild=trueby default, mirroringeng/build-workload-free.sh.Notable choices
continue-on-error. Acontinue-on-errorstep that fails still reports green at job level, so an unavailable lane would look identical to a passing one.availabilityruns on a hosted runner. If the whole workflow needed the self-hosted agent, an offline agent would leave runs queued forever and report "in progress" rather than "unavailable".Honest limitations
alsoValidTargets(tizen10.1/10.0/9.0/8.0) are markedconfirmed: falseand excluded from release gating, because they haven't been verified against real Samsung tooling.Follow-ups (not in this PR)
tests/UnitTeststo xunit v3, then add"test": { "runner": "Microsoft.Testing.Platform" }toglobal.jsonand collapse the runner script todotnet test. Guarded byTestRunnerSplit_IsRecordedRatherThanAssumed.dotnet/maui-labsto addtizento theagent-statusplatform enum. Guarded byDevFlowSpecPlatformEnum_StillLacksTizen.Verification
All five CI jobs are green on final merge-only head
6b242b56c79b611e0f2f91e1a5a6efdac51d5074after merging currentmain(6a4c9e91, including PRs #14, #15, and #16) (run). The only conflict was comment punctuation inMaui.Tizen.slnx; resolution was additive, all shared guards and the DevFlow-agent real Tizen lane remain intact, and no validation feature code changed.Docs:
docs/validation/— lanes, CI gating, DevFlow, baselines, TV focus, Sherpa handoff, and a per-item blocker list with reproductions.