Repository navigation
Release & governance preparation (pre-Samsung-transfer) - #1
Conversation
f84d108 to
660a094
Compare
|
Rebased onto Validation note: this environment's local |
…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>
660a094 to
db8cbdf
Compare
|
Rebased onto the latest
Also swapped one inline Validated via |
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>
Adds policy, metadata, and release-automation-shape groundwork ahead of eventual Samsung ownership, conceptually stacked on redth-tizen-foundation-import. No runtime/source code or CI build logic is touched; this is documentation, templates, and a safely-gated workflow skeleton only. - .NET 11-aligned package versioning policy and MAUI/Tizen workload dependency rules (docs/governance/versioning-policy.md) - NuGet package metadata conventions, ownership, and trusted-publishing model with no secrets or personal-account dependencies (docs/governance/package-metadata-conventions.md) - Release/servicing policy, API compatibility policy, deprecation policy, and a Tizen support matrix template - Repository governance files for eventual Samsung ownership: CODEOWNERS (placeholder teams), CONTRIBUTING, SECURITY, SUPPORT, issue/PR templates - Release workflow skeleton (.github/workflows/release.yml): build -> validate -> sign -> pack -> publish, gated behind GitHub Environments and a literal "PUBLISH" confirmation input; publish and sign steps fail closed until real credentials/ownership are configured. Validated with actionlint. - Samsung transfer checklist (teams, environments, branch protection, package owners, signing, device runners, recovery contacts, and a mandatory Samsung-owned rehearsal release) - Upstream cutover checklist for dotnet/maui and Samsung Tizen.NET templates/docs, sequencing deprecation before removal without performing any deletion or publication here Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
- versioning-policy: primary TFM is versioned net11.0-tizen11.0, with lower Tizen API-level TFMs as optional matrix-driven entries only - versioning-policy/tizen-support-matrix/upstream-cutover-checklist: correct the Tizen workload identity to tizen (not maui-tizen) and stop documenting a specific dotnet workload install invocation; defer the exact Samsung installer/manifest flow to the support matrix - release.yml: restructure control flow so build/validate/pack always succeed without signing credentials and produce unsigned CI packages; sign and publish are now both gated behind the literal PUBLISH input plus their respective GitHub Environments, and only run after pack. Re-validated with actionlint (0 errors). - release.yml: point DOTNET_SDK_VERSION at the current .NET 11 preview band (11.0.100-preview.7) instead of a nonexistent stable version, with a note to source it from global.json once published - SECURITY.md: drop the Microsoft-affiliated/MSRC framing; GitHub private vulnerability reporting is the sole interim channel, with an explicit placeholder requirement to replace it with Samsung's designated channel at transfer - samsung-transfer-checklist: update the security-contact checklist item to match the revised SECURITY.md channel Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Rebases redth-tizen-release-governance onto the now-pushed and green redth-tizen-foundation-import (79aa0f3), replacing the temporary SDK-version hardcode and build placeholders with the foundation's real entrypoints: - build job: setup-dotnet now reads global-json-file: global.json instead of a hardcoded DOTNET_SDK_VERSION env var, and calls ./eng/build-workload-free.sh (the same entrypoint used by .github/workflows/ci.yml) instead of an echo placeholder. - validate job: adds a check that eng/baselines.json's target TFM (net11.0-tizen11.0) and package ID prefix (Maui.Tizen) stay aligned with docs/governance/versioning-policy.md, so the two cannot silently drift. - pack job: setup-dotnet also reads global.json; the pack step now probes for the Samsung Tizen workload (dotnet workload install tizen --skip-manifest-update, mirroring the probe in ci.yml's tizen-workload-gate job) and reports the external-gate status instead of fabricating fake packages, since net11.0-tizen11.0 cannot be built/packed until Samsung publishes the workload manifest (see eng/baselines.json). - Publish gating is unchanged: sign/publish still require the literal "PUBLISH" input plus their own GitHub Environments (nuget-signing/nuget-production), neither of which exists yet. Validation note: this machine's local actionlint (1.7.12) + shellcheck (0.11.0) combination hangs when running the built-in shellcheck integration against this repository's multi-job workflow files - reproduced identically against the already-merged, CI-green .github/workflows/ci.yml, confirming it is a local tool/environment issue and not specific to this change. Validated instead via: - `actionlint -shellcheck=` on both release.yml and ci.yml (0 errors; covers YAML structure, job dependency graph, and expression contexts) - every run: script extracted and independently checked with both `bash -n` and standalone `shellcheck` (all clean) - cross-checked net11.0-tizen11.0 and the `tizen` workload identity directly against eng/baselines.json and Directory.Build.props Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Rebases redth-tizen-release-governance onto the now-updated redth-tizen-foundation-import (1b4960f), and fixes the last release workflow defect: release.yml no longer runs `dotnet workload install tizen --skip-manifest-update` to detect the Samsung Tizen workload. That command cannot succeed on a clean runner regardless of whether Samsung has shipped, because the Samsung manifest is third-party and side-loaded and is not discoverable through the SDK's public workload search - it can only report a false negative, or worse, silently resolve MAUI's unrelated empty `maui-tizen` alias instead. This is the same reasoning .github/workflows/ci.yml's tizen-workload-gate job already documents and acts on. pack job now: - Probes nuget.org's flat-container feed directly for a published Samsung workload manifest package (checking both ID spellings and the SDK band from eng/baselines.json), mirroring .github/workflows/ci.yml's tizen-workload-gate probe logic line-for-line rather than reinventing it. - If absent: stops before pack with an explicit external-gate result (matches eng/baselines.json's own recorded "unavailable" status; verified live against nuget.org - both ID spellings currently 404) and does not fabricate a package. - If present: installs through Samsung's supported installer/local manifest path per docs/migration.md and Samsung workload PR #310 (not yet concretely wired up here, since Samsung has not published anything to install - this step fails loudly by design the moment it would ever run, the same way ci.yml's own "Build Tizen projects" placeholder does), then re-verifies with the repository's own `dotnet msbuild -t:ReportTizenWorkload` detection target (the exact target eng/tests/test-workload-detection.sh pins) before proceeding to pack. build/validate/pack still succeed end-to-end today with no credentials and produce unsigned, non-fabricated CI artifacts; sign/ publish gating is unchanged. Also replaced one inline `${{ }}` expression inside a bash `if` condition with an `env:`-passed variable, avoiding a spurious shellcheck SC2050 "constant expression" false positive and matching this repo's existing convention (env vars, not inline expressions, inside conditionals). Validation: re-confirmed actionlint -shellcheck= passes (0 errors), and every run: script individually verified with `bash -n` and standalone `shellcheck` (all clean). The full actionlint+shellcheck integration still hangs in this local environment on any multi-job workflow in this repo, reproduced identically on the unmodified, already-merged ci.yml - a local tooling issue, not something in this change. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Rebases redth-tizen-release-governance onto the (still-open, but required for this dependency) redth-tizen-validation-harness branch (7085324), which is itself stacked on foundation and adds .github/workflows/tizen-device-validation.yml - a reusable workflow with a workflow_call trigger and a release-gate job whose pass/fail is derived from per-profile hardware result artifacts (eng/validation/scripts/evaluate-release-gate.sh), not from a job result that a fully-conditioned-out matrix could fake. release.yml now actually consumes that gate before sign/publish, rather than describing one or triggering validation after a tag: - New `device-validation` job: `uses: ./.github/workflows/tizen-device-validation.yml` with `release_validation: true`. Only runs when confirm_publish == PUBLISH (device runs need hardware and are slow, so they are not part of the always-safe build/validate/pack lane). Fails the whole call unless every release-gating Tizen profile actually ran on real hardware and passed. - New `release-gate` job: requires the `tizen-release` GitHub Environment (human approval) and only runs once `device-validation` has actually succeeded - this is the literal job the task asked for, using that literal environment name. - `sign`'s `needs` moved from `pack` to `release-gate`, so signing (and therefore publish) cannot proceed without both a real passing hardware validation result and a human approval through `tizen-release`. Preserved unchanged: the fail-closed Samsung workload probe/install flow in `pack` (feed probe -> supported-installer placeholder that fails loudly -> dotnet msbuild -t:ReportTizenWorkload re-verification -> pack), and the existing `nuget-signing`/`nuget-production` environment + literal "PUBLISH" gating on sign/publish. build/validate/ pack remain safe and always succeed with no credentials. Validation: `actionlint -shellcheck=` passes on release.yml (0 errors), including resolving and type-checking the new `uses: ./.github/workflows/tizen-device-validation.yml` reference against that workflow's real workflow_call input schema (`release_validation: boolean`) - not merely YAML-shape-checked. Every run: script individually re-verified with `bash -n` and standalone `shellcheck` (all clean). Noted in passing: actionlint flags tizen-device-validation.yml's own `runs-on: [self-hosted, tizen]` as an unrecognized custom label - a pre-existing, expected finding in that PR's own file (unmodified by this change; silenced by adding an actionlint.yaml custom-label config, which is that workstream's call, not this one's). Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
db8cbdf to
a3627f6
Compare
|
Rebased onto
Preserved unchanged: the fail-closed Samsung workload probe/install flow in Validated with Noted in passing (not touched, not mine to fix): |
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>
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>
|
Own-scope follow-up (no rebase this round — Confirmed the flow already satisfies the four hard requirements:
Closed a gap found on review:
Validated: Blockers requiring Samsung action (tracked, not actionable from this repo):
|
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>
022ae37 to
cefed16
Compare
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 339aaa1d-ff4d-405b-915e-c2e156549ccf
|
Final release/security review requested on stable head The branch is now based on |
Bind release validation, signing, provenance, and retries to exact package manifests and workflow attempts while keeping publishing fail-closed. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8a402911-8fc6-4b6f-ac37-80d7b8127499
Reject prior-attempt artifacts and require an environment-scoped governance token for ruleset and runner-group preflight. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8a402911-8fc6-4b6f-ac37-80d7b8127499
Integrate the merged Core, Controls, Essentials, alerts, and Blazor layers while preserving release-contract and mutation validation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7a37339a-ace9-487d-b025-3262b9d414d9
Preserve isolated package provenance, resilient failure aggregation, release-contract regressions, and the complete backend validation matrix. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7a37339a-ace9-487d-b025-3262b9d414d9
Restore governance's immutable action policy for the build/tasks Windows execution lane introduced by the final pipeline merge. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7a37339a-ace9-487d-b025-3262b9d414d9
Keep protected-branch release policy synchronized with the newly required packaged MSBuild execution check and pin the relationship in hosted validation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7a37339a-ace9-487d-b025-3262b9d414d9
Support policy-listed servicing branches, require exact-SHA CI success, add exact major-break approvals and standalone API baselines, align package metadata, and include Templates in the release closure. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7a37339a-ace9-487d-b025-3262b9d414d9
Allow protected policy-approved servicing refs through reusable device validation and bind standalone baseline generation to the actual release-manifest schema. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7a37339a-ace9-487d-b025-3262b9d414d9
Include only the package-owned buildTransitive task assembly in managed API comparison while excluding native and copy-local dependency DLLs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7a37339a-ace9-487d-b025-3262b9d414d9
Treat only the package-owned buildTransitive task assembly as signable managed API, matching release package inspection and excluding native/dependency DLLs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7a37339a-ace9-487d-b025-3262b9d414d9
Keep exact managed-binary signing coverage while explicitly permitting the Maui.Tizen.Templates package to report an empty Authenticode set. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7a37339a-ace9-487d-b025-3262b9d414d9
Disable Python bytecode emission so exact-head validation does not leave an untracked release-contract cache behind. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7a37339a-ace9-487d-b025-3262b9d414d9
Summary
Governance, policy, and release-automation-shape groundwork for Maui.Tizen, prepared ahead of an eventual transfer to Samsung ownership. This PR is conceptually stacked on
redth-tizen-foundation-import(core scaffolding/CI, owned by a parallel workstream) — it is opened againstmainbecause that foundation branch isn't pushed to the remote yet. No runtime/source/build code is touched; expect a straightforward rebase once foundation CI lands.What's included
Policy documents (
docs/governance/):versioning-policy.md— .NET 11-aligned package versioning scheme + MAUI/Tizen workload dependency rules (lockstepMaui.Tizen.*versioning, TFM conventions, dependency range policy)package-metadata-conventions.md— NuGet metadata conventions, package ID/ownership model, signing, and a trusted-publishing (OIDC) plan with no API-key secrets or personal-account dependenciesrelease-and-servicing-policy.md— release cadence, supported version lines (aligned to .NET's own support policy), release process gateapi-compatibility-policy.md— breaking vs. additive change classification, experimental API carve-out, Tizen profile-specific considerationstizen-support-matrix.md— template matrix of supported Tizen profiles/API levels per release line (all TBD — no support claims made yet)deprecation-policy.md— minimum notice periods for API/profile/version-line deprecationsamsung-transfer-checklist.md— teams, environments, branch protection, package owners, signing, device runners, recovery contacts, and a mandatory Samsung-owned rehearsal release before real publishing is enabledupstream-cutover-checklist.md— sequencing for deprecating in-tree Tizen support in dotnet/maui and updating Samsung Tizen.NET templates/docs — no deletion or publication performedRepository governance files (
.github/):CODEOWNERS(placeholder team handles, clearly marked as pending team creation)CONTRIBUTING.md,SECURITY.md,SUPPORT.mdRelease automation (
.github/workflows/release.yml):signandpublishfail closed by default;publishadditionally requires a literal "PUBLISH" confirmation input plus anuget-productionGitHub Environment that does not exist yetExplicitly out of scope / not done
Remaining external decisions (tracked in the checklists)
main(vs.redth-tizen-foundation-import) should remain this PR's actual merge base once that branch is pushedSafe activation steps (future PRs, not this one)