Graduate Unity package authority to EveUnity
This commit is contained in:
parent
2355032c56
commit
a5595d009b
57 changed files with 90 additions and 4474 deletions
|
|
@ -81,7 +81,6 @@ try {
|
|||
--expect-command-boundary-coverage aetheria:aetheria.daemon.editor:electron-shell:covered:EveElectron:electron-shell `
|
||||
--expect-command-boundary-coverage aetheria:aetheria.daemon.editor:tui:covered:EveTui:tui `
|
||||
--expect-split-target-proof "EveUnity:Aetheria daemon 3D ARPG world lowers through a generic EveUnity playable-world client" `
|
||||
--expect-runtime-capture-artifact unity-uitoolkit:json-projection:gamecult.eve.unity_uitoolkit_projection.v1:aetheria:aetheria.daemon.game `
|
||||
--expect-runtime-capture-probe electron-shell:contract-artifact-present:png:EveElectron `
|
||||
--expect-runtime-witness electron-shell:aetheria:aetheria.daemon.game:cold:pass `
|
||||
--expect-runtime-capture-artifact tui:json-grid:gamecult.eve.tui_grid.v1:aetheria:aetheria.daemon.game `
|
||||
|
|
@ -91,9 +90,6 @@ try {
|
|||
--expect-split-target-proof "EveElectron:Aetheria consumes EveElectron for generic window and preload authority" `
|
||||
--expect-split-target-blocker "EveTui:TUI package release is cut from EveTui rather than Eve incubation" `
|
||||
--expect-split-target-blocker "EveTui:TUI capture path is owned by EveTui rather than Eve incubation" `
|
||||
--expect-split-handoff-move EveUnity:unity-uitoolkit:aetheria-unity-consumer-boundary:observed-provider:exists:Packages/manifest.json `
|
||||
--expect-split-handoff-move EveUnity:unity-uitoolkit:aetheria-unity-consumer-boundary:observed-provider:exists:GameCult.Eve.UnityUIToolkit.csproj `
|
||||
--expect-split-handoff-move EveUnity:unity-uitoolkit:aetheria-unity-consumer-boundary:observed-provider:exists:Aetheria.State.Unity/AetheriaRuntimeCatalogClient.cs `
|
||||
--expect-provider-command aetheria:aetheria.daemon.commands `
|
||||
--expect-provider-receipt-state aetheria:accepted `
|
||||
--expect-provider-receipt-state aetheria:pending `
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ try {
|
|||
--expect-screenshot-metric web:eve-world-smoke:text-presence:pass `
|
||||
--expect-screenshot-metric web:eve-world-smoke:bounding-boxes:pass `
|
||||
--expect-screenshot-metric electron-shell:aetheria-world:bounding-boxes:pending-capture `
|
||||
--expect-runtime-capture-probe unity-uitoolkit:semantic-artifact-present-capture-pending:png:EveUnity `
|
||||
--expect-runtime-capture-probe unity-uitoolkit:contract-artifact-missing:png:EveUnity `
|
||||
--expect-runtime-capture-probe unity-scene:control-artifact-present-product-capture-pending:png:EveUnity `
|
||||
--expect-runtime-capture-probe electron-shell:contract-artifact-present:png:EveElectron `
|
||||
--expect-runtime-witness electron-shell:eve.world-smoke:eve.world-smoke.surface:cold:pass `
|
||||
|
|
|
|||
|
|
@ -1,99 +0,0 @@
|
|||
param(
|
||||
[string] $CapabilityManifestPath = "packages\org.gamecult.eve.unity-uitoolkit\eve-runtime-capability.json",
|
||||
[string] $AdvertisementPath = "web\fixtures\aetheria.provider-advertisement.json",
|
||||
[string] $OutputPath = "artifacts\eveunity-uitoolkit-capture-contract\latest\capture-request.json",
|
||||
[string] $Stamp = "smoke"
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$projectRoot = Split-Path -Parent $PSScriptRoot
|
||||
$absoluteCapabilityPath = if ([System.IO.Path]::IsPathRooted($CapabilityManifestPath)) {
|
||||
$CapabilityManifestPath
|
||||
} else {
|
||||
Join-Path $projectRoot $CapabilityManifestPath
|
||||
}
|
||||
$absoluteAdvertisementPath = if ([System.IO.Path]::IsPathRooted($AdvertisementPath)) {
|
||||
$AdvertisementPath
|
||||
} else {
|
||||
Join-Path $projectRoot $AdvertisementPath
|
||||
}
|
||||
$absoluteOutputPath = if ([System.IO.Path]::IsPathRooted($OutputPath)) {
|
||||
$OutputPath
|
||||
} else {
|
||||
Join-Path $projectRoot $OutputPath
|
||||
}
|
||||
|
||||
foreach ($path in @($absoluteCapabilityPath, $absoluteAdvertisementPath)) {
|
||||
if (-not (Test-Path -LiteralPath $path)) {
|
||||
throw "EveUnity capture contract input not found: $path"
|
||||
}
|
||||
}
|
||||
|
||||
$manifest = Get-Content -LiteralPath $absoluteCapabilityPath -Raw | ConvertFrom-Json
|
||||
$captureContract = $manifest.lifecycle.capture.captureContract
|
||||
if ($null -eq $captureContract) {
|
||||
throw "EveUnity capture contract missing lifecycle.capture.captureContract"
|
||||
}
|
||||
foreach ($field in @("ownerRepo", "runtimeId", "targetId", "requestSchema", "requestBuilder", "advertisementPath", "captureKind", "artifactKind", "artifactPattern", "conformanceAttachment", "requiredProvider", "requiredSurface", "authority", "publishProof")) {
|
||||
if (-not $captureContract.$field) {
|
||||
throw "EveUnity capture contract missing $field"
|
||||
}
|
||||
}
|
||||
if ($captureContract.ownerRepo -ne "EveUnity") {
|
||||
throw "Unexpected EveUnity capture owner: $($captureContract.ownerRepo)"
|
||||
}
|
||||
if ($captureContract.runtimeId -ne "unity-uitoolkit") {
|
||||
throw "Unexpected EveUnity capture runtime: $($captureContract.runtimeId)"
|
||||
}
|
||||
if ($captureContract.targetId -ne "unity-uitoolkit") {
|
||||
throw "Unexpected EveUnity capture target: $($captureContract.targetId)"
|
||||
}
|
||||
if ($captureContract.requestSchema -ne "gamecult.eve.runtime_capture_request.v1") {
|
||||
throw "Unexpected EveUnity capture request schema: $($captureContract.requestSchema)"
|
||||
}
|
||||
|
||||
$builderPath = Join-Path $projectRoot $captureContract.requestBuilder
|
||||
if (-not (Test-Path -LiteralPath $builderPath)) {
|
||||
throw "EveUnity capture request builder not found: $($captureContract.requestBuilder)"
|
||||
}
|
||||
if ((Join-Path $projectRoot $captureContract.advertisementPath) -ne $absoluteAdvertisementPath) {
|
||||
throw "EveUnity capture advertisement path mismatch: $($captureContract.advertisementPath) vs $AdvertisementPath"
|
||||
}
|
||||
|
||||
node --test (Join-Path $projectRoot "tools\eveunity\eveunity-capture-contract.test.mjs")
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "EveUnity capture contract tests failed with exit code $LASTEXITCODE"
|
||||
}
|
||||
|
||||
node $builderPath --capability $absoluteCapabilityPath --advertisement $absoluteAdvertisementPath --output $absoluteOutputPath --stamp $Stamp
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "EveUnity capture request builder failed with exit code $LASTEXITCODE"
|
||||
}
|
||||
if (-not (Test-Path -LiteralPath $absoluteOutputPath)) {
|
||||
throw "EveUnity capture request was not written: $absoluteOutputPath"
|
||||
}
|
||||
|
||||
$request = Get-Content -LiteralPath $absoluteOutputPath -Raw | ConvertFrom-Json
|
||||
foreach ($expectation in @(
|
||||
@{ field = "schema"; value = "gamecult.eve.runtime_capture_request.v1" },
|
||||
@{ field = "runtimeId"; value = "unity-uitoolkit" },
|
||||
@{ field = "ownerRepo"; value = "EveUnity" },
|
||||
@{ field = "providerId"; value = "aetheria" },
|
||||
@{ field = "surfaceId"; value = "aetheria.daemon.game" },
|
||||
@{ field = "targetId"; value = "unity-uitoolkit" },
|
||||
@{ field = "commandBoundary"; value = "aetheria.daemon.commands" },
|
||||
@{ field = "receiptSchema"; value = "aetheria.eve_command_acceptance_status.v1" },
|
||||
@{ field = "captureKind"; value = "unity-editor-or-batchmode-png" },
|
||||
@{ field = "artifactKind"; value = "png" },
|
||||
@{ field = "conformanceAttachment"; value = "runtime.captureArtifacts[]" }
|
||||
)) {
|
||||
if ($request.($expectation.field) -ne $expectation.value) {
|
||||
throw "EveUnity capture request $($expectation.field) expected $($expectation.value) got $($request.($expectation.field))"
|
||||
}
|
||||
}
|
||||
if ($request.artifactPath -ne "artifacts/eveunity-uitoolkit-capture/$Stamp/unity-uitoolkit.png") {
|
||||
throw "Unexpected EveUnity capture artifact path: $($request.artifactPath)"
|
||||
}
|
||||
|
||||
Write-Host "EveUnity capture contract smoke passed: $absoluteOutputPath"
|
||||
|
|
@ -1,289 +0,0 @@
|
|||
param(
|
||||
[string] $CapabilityManifestPath = "packages\org.gamecult.eve.unity-uitoolkit\eve-runtime-capability.json",
|
||||
[switch] $RunUnityEditMode
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$projectRoot = Split-Path -Parent $PSScriptRoot
|
||||
$absoluteManifestPath = if ([System.IO.Path]::IsPathRooted($CapabilityManifestPath)) {
|
||||
$CapabilityManifestPath
|
||||
} else {
|
||||
Join-Path $projectRoot $CapabilityManifestPath
|
||||
}
|
||||
|
||||
if (-not (Test-Path -LiteralPath $absoluteManifestPath)) {
|
||||
throw "EveUnity runtime capability manifest not found: $absoluteManifestPath"
|
||||
}
|
||||
|
||||
$manifest = Get-Content -LiteralPath $absoluteManifestPath -Raw | ConvertFrom-Json
|
||||
|
||||
if ($manifest.schema -ne "gamecult.eve.runtime_capability.v1") {
|
||||
throw "Unexpected EveUnity manifest schema: $($manifest.schema)"
|
||||
}
|
||||
if ($manifest.runtimeId -ne "unity-uitoolkit") {
|
||||
throw "Unexpected EveUnity runtime id: $($manifest.runtimeId)"
|
||||
}
|
||||
if ($manifest.owner -ne "EveUnity") {
|
||||
throw "Unexpected EveUnity owner: $($manifest.owner)"
|
||||
}
|
||||
if ($manifest.incubation.ownerRepo -ne "EveUnity") {
|
||||
throw "Unexpected EveUnity incubation owner: $($manifest.incubation.ownerRepo)"
|
||||
}
|
||||
if ($manifest.incubation.currentHostRepo -ne "Eve") {
|
||||
throw "Unexpected EveUnity current host repo: $($manifest.incubation.currentHostRepo)"
|
||||
}
|
||||
if ($manifest.incubation.splitTarget -ne "EveUnity") {
|
||||
throw "Unexpected EveUnity split target: $($manifest.incubation.splitTarget)"
|
||||
}
|
||||
if (-not $manifest.incubation.splitHandoff.manifestPath) {
|
||||
throw "EveUnity manifest missing split handoff path"
|
||||
}
|
||||
|
||||
foreach ($feature in @("embeddedDocuments")) {
|
||||
if (-not ($manifest.supportedFeatures -contains $feature)) {
|
||||
throw "EveUnity manifest missing supported feature: $feature"
|
||||
}
|
||||
}
|
||||
|
||||
$pluginClaims = @{}
|
||||
foreach ($plugin in $manifest.supportedPlugins) {
|
||||
$pluginClaims[$plugin.pluginId] = @($plugin.capabilities)
|
||||
}
|
||||
foreach ($claim in @(
|
||||
@{ pluginId = "sai.vn"; capabilities = @("vn.stage", "story.choose", "story.continue", "story.jump") },
|
||||
@{ pluginId = "norn.graph"; capabilities = @("embed.norn") },
|
||||
@{ pluginId = "tex.math"; capabilities = @("embed.tex", "tex.inline", "tex.block") }
|
||||
)) {
|
||||
if (-not $pluginClaims.ContainsKey($claim.pluginId)) {
|
||||
throw "EveUnity manifest missing plugin claim: $($claim.pluginId)"
|
||||
}
|
||||
foreach ($capability in $claim.capabilities) {
|
||||
if (-not ($pluginClaims[$claim.pluginId] -contains $capability)) {
|
||||
throw "EveUnity manifest missing plugin capability: $($claim.pluginId):$capability"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($manifest.commandTransport.schema -ne "gamecult.eve.command_invocation.v1") {
|
||||
throw "Unexpected EveUnity command schema: $($manifest.commandTransport.schema)"
|
||||
}
|
||||
|
||||
foreach ($stage in @("release", "test", "capture")) {
|
||||
$stageDocument = $manifest.lifecycle.$stage
|
||||
if ($null -eq $stageDocument) {
|
||||
throw "EveUnity lifecycle missing stage: $stage"
|
||||
}
|
||||
if ($stageDocument.ownerRepo -ne "EveUnity") {
|
||||
throw "EveUnity lifecycle stage $stage has unexpected owner: $($stageDocument.ownerRepo)"
|
||||
}
|
||||
if (-not $stageDocument.status) {
|
||||
throw "EveUnity lifecycle stage $stage missing status"
|
||||
}
|
||||
foreach ($evidencePath in $stageDocument.evidencePaths) {
|
||||
$absoluteEvidencePath = Join-Path $projectRoot $evidencePath
|
||||
if (-not (Test-Path -LiteralPath $absoluteEvidencePath)) {
|
||||
throw "EveUnity lifecycle stage $stage missing evidence path: $evidencePath"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$releaseContract = $manifest.lifecycle.release.releaseContract
|
||||
if ($null -eq $releaseContract) {
|
||||
throw "EveUnity release lifecycle missing releaseContract"
|
||||
}
|
||||
if ($releaseContract.ownerRepo -ne "EveUnity") {
|
||||
throw "EveUnity release contract has unexpected owner: $($releaseContract.ownerRepo)"
|
||||
}
|
||||
if ($releaseContract.packageName -ne "org.gamecult.eve.unity-uitoolkit") {
|
||||
throw "EveUnity release contract has unexpected package name: $($releaseContract.packageName)"
|
||||
}
|
||||
if ($releaseContract.artifactKind -ne "upm-package") {
|
||||
throw "EveUnity release contract has unexpected artifact kind: $($releaseContract.artifactKind)"
|
||||
}
|
||||
if ($releaseContract.requestSchema -ne "gamecult.eve.runtime_release_request.v1") {
|
||||
throw "EveUnity release contract has unexpected request schema: $($releaseContract.requestSchema)"
|
||||
}
|
||||
if (-not ($releaseContract.tagPattern -match "\{version\}")) {
|
||||
throw "EveUnity release contract tag pattern must include {version}: $($releaseContract.tagPattern)"
|
||||
}
|
||||
if (-not ($releaseContract.artifactPattern -match "\{version\}")) {
|
||||
throw "EveUnity release contract artifact pattern must include {version}: $($releaseContract.artifactPattern)"
|
||||
}
|
||||
foreach ($pathProperty in @("packageRoot", "versionSource", "requestBuilder", "artifactBuilder")) {
|
||||
$relativePath = $releaseContract.$pathProperty
|
||||
if (-not $relativePath) {
|
||||
throw "EveUnity release contract missing $pathProperty"
|
||||
}
|
||||
$absolutePath = Join-Path $projectRoot $relativePath
|
||||
if (-not (Test-Path -LiteralPath $absolutePath)) {
|
||||
throw "EveUnity release contract $pathProperty does not exist: $relativePath"
|
||||
}
|
||||
}
|
||||
$packageManifest = Get-Content -LiteralPath (Join-Path $projectRoot $releaseContract.versionSource) -Raw | ConvertFrom-Json
|
||||
if ($packageManifest.name -ne $releaseContract.packageName) {
|
||||
throw "EveUnity release contract package name does not match package manifest: $($releaseContract.packageName) vs $($packageManifest.name)"
|
||||
}
|
||||
if (-not $packageManifest.version) {
|
||||
throw "EveUnity release contract package manifest missing version"
|
||||
}
|
||||
if ($packageManifest.dependencies."org.gamecult.eve.surface" -ne "0.1.0") {
|
||||
throw "EveUnity package manifest missing org.gamecult.eve.surface dependency"
|
||||
}
|
||||
$surfaceDependency = @($releaseContract.requiredPackageDependencies) | Where-Object { $_.packageName -eq "org.gamecult.eve.surface" } | Select-Object -First 1
|
||||
if (-not $surfaceDependency) {
|
||||
throw "EveUnity release contract missing required org.gamecult.eve.surface dependency contract"
|
||||
}
|
||||
if ($surfaceDependency.ownerRepo -ne "Eve" -or $surfaceDependency.packageManager -ne "upm") {
|
||||
throw "EveUnity release contract has unexpected surface dependency owner/package manager: $($surfaceDependency.ownerRepo)/$($surfaceDependency.packageManager)"
|
||||
}
|
||||
if ($surfaceDependency.version -ne $packageManifest.dependencies."org.gamecult.eve.surface") {
|
||||
throw "EveUnity release contract surface dependency version mismatch: $($surfaceDependency.version)"
|
||||
}
|
||||
|
||||
& (Join-Path $projectRoot "scripts\run-eveunity-release-contract-smoke.ps1")
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "EveUnity release contract smoke failed with exit code $LASTEXITCODE"
|
||||
}
|
||||
|
||||
& (Join-Path $projectRoot "scripts\run-eveunity-release-artifact-smoke.ps1")
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "EveUnity release artifact smoke failed with exit code $LASTEXITCODE"
|
||||
}
|
||||
|
||||
$testContract = $manifest.lifecycle.test.testContract
|
||||
if ($null -eq $testContract) {
|
||||
throw "EveUnity test lifecycle missing testContract"
|
||||
}
|
||||
if ($testContract.ownerRepo -ne "EveUnity") {
|
||||
throw "EveUnity test contract has unexpected owner: $($testContract.ownerRepo)"
|
||||
}
|
||||
if ($testContract.runnerKind -ne "unity-editmode-batchmode") {
|
||||
throw "EveUnity test contract has unexpected runner kind: $($testContract.runnerKind)"
|
||||
}
|
||||
if ($testContract.packageName -ne "org.gamecult.eve.unity-uitoolkit") {
|
||||
throw "EveUnity test contract has unexpected package name: $($testContract.packageName)"
|
||||
}
|
||||
if ($testContract.testAssembly -ne "GameCult.Eve.UnityUIToolkit.Tests") {
|
||||
throw "EveUnity test contract has unexpected test assembly: $($testContract.testAssembly)"
|
||||
}
|
||||
if ($testContract.testPlatform -ne "EditMode") {
|
||||
throw "EveUnity test contract has unexpected test platform: $($testContract.testPlatform)"
|
||||
}
|
||||
$managedDependencies = @($testContract.managedAssemblyDependencies)
|
||||
$testAssemblyDefinitionPath = Join-Path $projectRoot "packages\org.gamecult.eve.unity-uitoolkit\Tests\Editor\GameCult.Eve.UnityUIToolkit.Tests.asmdef"
|
||||
$testAssemblyDefinition = Get-Content -LiteralPath $testAssemblyDefinitionPath -Raw | ConvertFrom-Json
|
||||
foreach ($dependency in @(
|
||||
@{ assemblyName = "GameCult.Caching.dll"; packageId = "GameCult.Caching" },
|
||||
@{ assemblyName = "GameCult.Mesh.dll"; packageId = "GameCult.Mesh" },
|
||||
@{ assemblyName = "MessagePack.Annotations.dll"; packageId = "MessagePack.Annotations" }
|
||||
)) {
|
||||
$record = $managedDependencies | Where-Object { $_.assemblyName -eq $dependency.assemblyName } | Select-Object -First 1
|
||||
if (-not $record) {
|
||||
throw "EveUnity test contract missing managed assembly dependency: $($dependency.assemblyName)"
|
||||
}
|
||||
if ($record.packageId -ne $dependency.packageId -or $record.packageManager -ne "nuget" -or $record.ownerRepo -ne "CultLib") {
|
||||
throw "EveUnity test contract has unexpected managed dependency record for $($dependency.assemblyName)"
|
||||
}
|
||||
if ($null -eq $record.dependencyContract) {
|
||||
throw "EveUnity test contract missing dependency contract for $($dependency.assemblyName)"
|
||||
}
|
||||
if ($record.dependencyContract.sourceAuthority -ne "CultLib" -or $record.dependencyContract.packageSource -ne "nuget") {
|
||||
throw "EveUnity test contract has unexpected dependency source for $($dependency.assemblyName): $($record.dependencyContract.sourceAuthority)/$($record.dependencyContract.packageSource)"
|
||||
}
|
||||
if ($record.dependencyContract.packageId -ne $dependency.packageId -or $record.dependencyContract.assemblyName -ne $dependency.assemblyName) {
|
||||
throw "EveUnity test contract dependency contract does not match managed dependency identity for $($dependency.assemblyName)"
|
||||
}
|
||||
foreach ($field in @("versionPolicy", "unityResolution", "handoffRequirement")) {
|
||||
if (-not $record.dependencyContract.$field) {
|
||||
throw "EveUnity test contract dependency contract missing $field for $($dependency.assemblyName)"
|
||||
}
|
||||
}
|
||||
if (-not (@($testAssemblyDefinition.precompiledReferences) -contains $dependency.assemblyName)) {
|
||||
throw "EveUnity test asmdef missing managed dependency precompiled reference: $($dependency.assemblyName)"
|
||||
}
|
||||
}
|
||||
foreach ($pathProperty in @("runnerScript", "consumerProject")) {
|
||||
$candidate = $testContract.$pathProperty
|
||||
if (-not $candidate) {
|
||||
throw "EveUnity test contract missing $pathProperty"
|
||||
}
|
||||
$absolutePath = if ([System.IO.Path]::IsPathRooted($candidate)) {
|
||||
$candidate
|
||||
} else {
|
||||
Join-Path $projectRoot $candidate
|
||||
}
|
||||
if (-not (Test-Path -LiteralPath $absolutePath)) {
|
||||
throw "EveUnity test contract $pathProperty does not exist: $candidate"
|
||||
}
|
||||
}
|
||||
$runnerSource = Get-Content -LiteralPath (Join-Path $projectRoot $testContract.runnerScript) -Raw
|
||||
foreach ($expectedText in @($testContract.packageName, $testContract.testAssembly, $testContract.testPlatform, "testables", "Restore-Manifest")) {
|
||||
if (-not $runnerSource.Contains($expectedText)) {
|
||||
throw "EveUnity test contract runner script missing expected text: $expectedText"
|
||||
}
|
||||
}
|
||||
|
||||
$captureContract = $manifest.lifecycle.capture.captureContract
|
||||
if ($null -eq $captureContract) {
|
||||
throw "EveUnity capture lifecycle missing captureContract"
|
||||
}
|
||||
if ($captureContract.ownerRepo -ne "EveUnity") {
|
||||
throw "EveUnity capture contract has unexpected owner: $($captureContract.ownerRepo)"
|
||||
}
|
||||
if ($captureContract.runtimeId -ne "unity-uitoolkit") {
|
||||
throw "EveUnity capture contract has unexpected runtime: $($captureContract.runtimeId)"
|
||||
}
|
||||
if ($captureContract.targetId -ne "unity-uitoolkit") {
|
||||
throw "EveUnity capture contract has unexpected target: $($captureContract.targetId)"
|
||||
}
|
||||
if ($captureContract.requestSchema -ne "gamecult.eve.runtime_capture_request.v1") {
|
||||
throw "EveUnity capture contract has unexpected request schema: $($captureContract.requestSchema)"
|
||||
}
|
||||
if ($captureContract.captureKind -ne "unity-editor-or-batchmode-png") {
|
||||
throw "EveUnity capture contract has unexpected capture kind: $($captureContract.captureKind)"
|
||||
}
|
||||
if ($captureContract.artifactKind -ne "png") {
|
||||
throw "EveUnity capture contract has unexpected artifact kind: $($captureContract.artifactKind)"
|
||||
}
|
||||
foreach ($field in @("requestBuilder", "advertisementPath", "artifactPattern", "conformanceAttachment", "requiredProvider", "requiredSurface", "authority", "publishProof")) {
|
||||
if (-not $captureContract.$field) {
|
||||
throw "EveUnity capture contract missing $field"
|
||||
}
|
||||
}
|
||||
foreach ($pathProperty in @("requestBuilder", "advertisementPath")) {
|
||||
$relativePath = $captureContract.$pathProperty
|
||||
$absolutePath = Join-Path $projectRoot $relativePath
|
||||
if (-not (Test-Path -LiteralPath $absolutePath)) {
|
||||
throw "EveUnity capture contract $pathProperty does not exist: $relativePath"
|
||||
}
|
||||
}
|
||||
|
||||
& (Join-Path $projectRoot "scripts\run-eveunity-capture-contract-smoke.ps1")
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "EveUnity capture contract smoke failed with exit code $LASTEXITCODE"
|
||||
}
|
||||
|
||||
& (Join-Path $projectRoot "scripts\run-eveunity-uitoolkit-capture-smoke.ps1")
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "EveUnity UI Toolkit capture smoke failed with exit code $LASTEXITCODE"
|
||||
}
|
||||
|
||||
& (Join-Path $projectRoot "scripts\run-aetheria-unity-package-smoke.ps1")
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "Aetheria Unity package smoke failed with exit code $LASTEXITCODE"
|
||||
}
|
||||
|
||||
& (Join-Path $projectRoot "scripts\run-eveunity-split-handoff-smoke.ps1")
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "EveUnity split handoff smoke failed with exit code $LASTEXITCODE"
|
||||
}
|
||||
|
||||
if ($RunUnityEditMode) {
|
||||
& (Join-Path $projectRoot "scripts\run-aetheria-unity-editmode-tests.ps1")
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "Aetheria Unity EditMode smoke failed with exit code $LASTEXITCODE"
|
||||
}
|
||||
}
|
||||
|
||||
Write-Host "EveUnity lifecycle smoke passed: $absoluteManifestPath"
|
||||
44
scripts/run-eveunity-owner-smoke.ps1
Normal file
44
scripts/run-eveunity-owner-smoke.ps1
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
param(
|
||||
[string] $EveUnityRoot = "E:\Projects\EveUnity",
|
||||
[string] $AetheriaRoot = "E:\Projects\Aetheria"
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$requiredOwnerPaths = @(
|
||||
"packages\org.gamecult.eve.surface\package.json",
|
||||
"packages\org.gamecult.eve.unity-uitoolkit\package.json",
|
||||
"packages\org.gamecult.eve.unity-uitoolkit\eve-runtime-capability.json",
|
||||
"packages\org.gamecult.eve.unity-scene\package.json",
|
||||
"packages\org.gamecult.eve.unity-scene\eve-runtime-capability.json",
|
||||
"scripts\pack-uitoolkit.ps1",
|
||||
"scripts\run-uitoolkit-tests.ps1"
|
||||
)
|
||||
|
||||
foreach ($relativePath in $requiredOwnerPaths) {
|
||||
$path = Join-Path $EveUnityRoot $relativePath
|
||||
if (-not (Test-Path -LiteralPath $path -PathType Leaf)) {
|
||||
throw "EveUnity owner path is missing: $path"
|
||||
}
|
||||
}
|
||||
|
||||
$aetheriaManifest = Get-Content (Join-Path $AetheriaRoot "Packages\manifest.json") -Raw | ConvertFrom-Json
|
||||
$expectedDependencies = @{
|
||||
"org.gamecult.eve.surface" = "file:../../EveUnity/packages/org.gamecult.eve.surface"
|
||||
"org.gamecult.eve.unity-uitoolkit" = "file:../../EveUnity/packages/org.gamecult.eve.unity-uitoolkit"
|
||||
"org.gamecult.eve.unity-scene" = "file:../../EveUnity/packages/org.gamecult.eve.unity-scene"
|
||||
}
|
||||
|
||||
foreach ($entry in $expectedDependencies.GetEnumerator()) {
|
||||
$actual = $aetheriaManifest.dependencies.($entry.Key)
|
||||
if ($actual -ne $entry.Value) {
|
||||
throw "Aetheria dependency $($entry.Key) resolves to '$actual', expected '$($entry.Value)'."
|
||||
}
|
||||
}
|
||||
|
||||
& (Join-Path $EveUnityRoot "scripts\pack-uitoolkit.ps1")
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "EveUnity UI Toolkit package smoke failed."
|
||||
}
|
||||
|
||||
Write-Host "EveUnity owns the Unity packages and Aetheria consumes them from the owner repo."
|
||||
|
|
@ -1,107 +0,0 @@
|
|||
param(
|
||||
[string] $CapabilityManifestPath = "packages\org.gamecult.eve.unity-uitoolkit\eve-runtime-capability.json",
|
||||
[string] $RequestOutputPath = "artifacts\eveunity-uitoolkit-release-contract\latest\release-request.json",
|
||||
[string] $ProofOutputPath = "artifacts\eveunity-uitoolkit-release\latest\release-artifact.json",
|
||||
[string] $ReleaseContractSmokePath = "scripts\run-eveunity-release-contract-smoke.ps1"
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$projectRoot = Split-Path -Parent $PSScriptRoot
|
||||
$absoluteCapabilityPath = if ([System.IO.Path]::IsPathRooted($CapabilityManifestPath)) {
|
||||
$CapabilityManifestPath
|
||||
} else {
|
||||
Join-Path $projectRoot $CapabilityManifestPath
|
||||
}
|
||||
$absoluteRequestOutputPath = if ([System.IO.Path]::IsPathRooted($RequestOutputPath)) {
|
||||
$RequestOutputPath
|
||||
} else {
|
||||
Join-Path $projectRoot $RequestOutputPath
|
||||
}
|
||||
$absoluteProofOutputPath = if ([System.IO.Path]::IsPathRooted($ProofOutputPath)) {
|
||||
$ProofOutputPath
|
||||
} else {
|
||||
Join-Path $projectRoot $ProofOutputPath
|
||||
}
|
||||
|
||||
if (-not (Test-Path -LiteralPath $absoluteCapabilityPath)) {
|
||||
throw "EveUnity release artifact input not found: $absoluteCapabilityPath"
|
||||
}
|
||||
|
||||
$manifest = Get-Content -LiteralPath $absoluteCapabilityPath -Raw | ConvertFrom-Json
|
||||
$releaseContract = $manifest.lifecycle.release.releaseContract
|
||||
if ($null -eq $releaseContract) {
|
||||
throw "EveUnity release artifact smoke missing lifecycle.release.releaseContract"
|
||||
}
|
||||
if ($releaseContract.ownerRepo -ne "EveUnity") {
|
||||
throw "Unexpected EveUnity release artifact owner: $($releaseContract.ownerRepo)"
|
||||
}
|
||||
if ($releaseContract.artifactKind -ne "upm-package") {
|
||||
throw "Unexpected EveUnity release artifact kind: $($releaseContract.artifactKind)"
|
||||
}
|
||||
if (-not $releaseContract.artifactBuilder) {
|
||||
throw "EveUnity release contract missing artifactBuilder"
|
||||
}
|
||||
$artifactBuilderPath = Join-Path $projectRoot $releaseContract.artifactBuilder
|
||||
if (-not (Test-Path -LiteralPath $artifactBuilderPath)) {
|
||||
throw "EveUnity release artifact builder not found: $($releaseContract.artifactBuilder)"
|
||||
}
|
||||
$releaseContractSmoke = if ([System.IO.Path]::IsPathRooted($ReleaseContractSmokePath)) {
|
||||
$ReleaseContractSmokePath
|
||||
} else {
|
||||
Join-Path $projectRoot $ReleaseContractSmokePath
|
||||
}
|
||||
if (-not (Test-Path -LiteralPath $releaseContractSmoke)) {
|
||||
throw "EveUnity release contract smoke not found: $ReleaseContractSmokePath"
|
||||
}
|
||||
|
||||
node --test (Join-Path $projectRoot "tools\eveunity\eveunity-release-artifact.test.mjs")
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "EveUnity release artifact tests failed with exit code $LASTEXITCODE"
|
||||
}
|
||||
|
||||
& $releaseContractSmoke `
|
||||
-CapabilityManifestPath $CapabilityManifestPath `
|
||||
-OutputPath $RequestOutputPath
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "EveUnity release contract smoke failed with exit code $LASTEXITCODE"
|
||||
}
|
||||
|
||||
node $artifactBuilderPath `
|
||||
--project-root $projectRoot `
|
||||
--request $RequestOutputPath `
|
||||
--proof-output $ProofOutputPath
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "EveUnity release artifact builder failed with exit code $LASTEXITCODE"
|
||||
}
|
||||
|
||||
if (-not (Test-Path -LiteralPath $absoluteProofOutputPath)) {
|
||||
throw "EveUnity release artifact proof was not written: $absoluteProofOutputPath"
|
||||
}
|
||||
|
||||
$proof = Get-Content -LiteralPath $absoluteProofOutputPath -Raw | ConvertFrom-Json
|
||||
foreach ($expectation in @(
|
||||
@{ field = "schema"; value = "gamecult.eve.runtime_release_artifact.v1" },
|
||||
@{ field = "ownerRepo"; value = "EveUnity" },
|
||||
@{ field = "repository"; value = "GameCult/EveUnity" },
|
||||
@{ field = "packageName"; value = $releaseContract.packageName },
|
||||
@{ field = "artifactKind"; value = "upm-package" }
|
||||
)) {
|
||||
if ($proof.($expectation.field) -ne $expectation.value) {
|
||||
throw "EveUnity release artifact proof $($expectation.field) expected $($expectation.value) got $($proof.($expectation.field))"
|
||||
}
|
||||
}
|
||||
if ($proof.artifactSizeBytes -le 0) {
|
||||
throw "EveUnity release artifact proof has invalid size: $($proof.artifactSizeBytes)"
|
||||
}
|
||||
|
||||
$artifactPath = if ([System.IO.Path]::IsPathRooted($proof.artifactPath)) {
|
||||
$proof.artifactPath
|
||||
} else {
|
||||
Join-Path $projectRoot $proof.artifactPath
|
||||
}
|
||||
if (-not (Test-Path -LiteralPath $artifactPath)) {
|
||||
throw "EveUnity release artifact was not written: $artifactPath"
|
||||
}
|
||||
|
||||
Write-Host "EveUnity release artifact smoke passed: $artifactPath"
|
||||
|
|
@ -1,106 +0,0 @@
|
|||
param(
|
||||
[string] $CapabilityManifestPath = "packages\org.gamecult.eve.unity-uitoolkit\eve-runtime-capability.json",
|
||||
[string] $OutputPath = "artifacts\eveunity-uitoolkit-release-contract\latest\release-request.json"
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$projectRoot = Split-Path -Parent $PSScriptRoot
|
||||
$absoluteCapabilityPath = if ([System.IO.Path]::IsPathRooted($CapabilityManifestPath)) {
|
||||
$CapabilityManifestPath
|
||||
} else {
|
||||
Join-Path $projectRoot $CapabilityManifestPath
|
||||
}
|
||||
$absoluteOutputPath = if ([System.IO.Path]::IsPathRooted($OutputPath)) {
|
||||
$OutputPath
|
||||
} else {
|
||||
Join-Path $projectRoot $OutputPath
|
||||
}
|
||||
|
||||
if (-not (Test-Path -LiteralPath $absoluteCapabilityPath)) {
|
||||
throw "EveUnity release contract input not found: $absoluteCapabilityPath"
|
||||
}
|
||||
|
||||
$manifest = Get-Content -LiteralPath $absoluteCapabilityPath -Raw | ConvertFrom-Json
|
||||
$releaseContract = $manifest.lifecycle.release.releaseContract
|
||||
if ($null -eq $releaseContract) {
|
||||
throw "EveUnity release contract missing lifecycle.release.releaseContract"
|
||||
}
|
||||
foreach ($field in @("ownerRepo", "packageName", "packageRoot", "versionSource", "tagPattern", "artifactKind", "requestSchema", "requestBuilder", "artifactBuilder", "artifactPattern", "publishProof")) {
|
||||
if (-not $releaseContract.$field) {
|
||||
throw "EveUnity release contract missing $field"
|
||||
}
|
||||
}
|
||||
if ($releaseContract.ownerRepo -ne "EveUnity") {
|
||||
throw "Unexpected EveUnity release owner: $($releaseContract.ownerRepo)"
|
||||
}
|
||||
if ($releaseContract.requestSchema -ne "gamecult.eve.runtime_release_request.v1") {
|
||||
throw "Unexpected EveUnity release request schema: $($releaseContract.requestSchema)"
|
||||
}
|
||||
if ($releaseContract.artifactKind -ne "upm-package") {
|
||||
throw "Unexpected EveUnity release artifact kind: $($releaseContract.artifactKind)"
|
||||
}
|
||||
|
||||
$builderPath = Join-Path $projectRoot $releaseContract.requestBuilder
|
||||
$artifactBuilderPath = Join-Path $projectRoot $releaseContract.artifactBuilder
|
||||
$packagePath = Join-Path $projectRoot $releaseContract.versionSource
|
||||
$packageRoot = Join-Path $projectRoot $releaseContract.packageRoot
|
||||
foreach ($path in @($builderPath, $artifactBuilderPath, $packagePath, $packageRoot)) {
|
||||
if (-not (Test-Path -LiteralPath $path)) {
|
||||
throw "EveUnity release contract path not found: $path"
|
||||
}
|
||||
}
|
||||
|
||||
node --test (Join-Path $projectRoot "tools\eveunity\eveunity-release-contract.test.mjs")
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "EveUnity release contract tests failed with exit code $LASTEXITCODE"
|
||||
}
|
||||
|
||||
node $builderPath --capability $absoluteCapabilityPath --package $packagePath --output $absoluteOutputPath
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "EveUnity release request builder failed with exit code $LASTEXITCODE"
|
||||
}
|
||||
if (-not (Test-Path -LiteralPath $absoluteOutputPath)) {
|
||||
throw "EveUnity release request was not written: $absoluteOutputPath"
|
||||
}
|
||||
|
||||
$request = Get-Content -LiteralPath $absoluteOutputPath -Raw | ConvertFrom-Json
|
||||
$packageManifest = Get-Content -LiteralPath $packagePath -Raw | ConvertFrom-Json
|
||||
foreach ($expectation in @(
|
||||
@{ field = "schema"; value = "gamecult.eve.runtime_release_request.v1" },
|
||||
@{ field = "ownerRepo"; value = "EveUnity" },
|
||||
@{ field = "repository"; value = "GameCult/EveUnity" },
|
||||
@{ field = "packageName"; value = "org.gamecult.eve.unity-uitoolkit" },
|
||||
@{ field = "version"; value = $packageManifest.version },
|
||||
@{ field = "packageRoot"; value = "packages/org.gamecult.eve.unity-uitoolkit" },
|
||||
@{ field = "versionSource"; value = "packages/org.gamecult.eve.unity-uitoolkit/package.json" },
|
||||
@{ field = "artifactKind"; value = "upm-package" }
|
||||
)) {
|
||||
if ($request.($expectation.field) -ne $expectation.value) {
|
||||
throw "EveUnity release request $($expectation.field) expected $($expectation.value) got $($request.($expectation.field))"
|
||||
}
|
||||
}
|
||||
|
||||
$expectedTagName = $releaseContract.tagPattern.Replace("{version}", $packageManifest.version)
|
||||
if ($request.tagName -ne $expectedTagName) {
|
||||
throw "Unexpected EveUnity release tag: $($request.tagName)"
|
||||
}
|
||||
$expectedArtifactPath = $releaseContract.artifactPattern.Replace("{version}", $packageManifest.version)
|
||||
if ($request.artifactPath -ne $expectedArtifactPath) {
|
||||
throw "Unexpected EveUnity release artifact path: $($request.artifactPath)"
|
||||
}
|
||||
if ($request.dependencies."org.gamecult.eve.surface" -ne $packageManifest.dependencies."org.gamecult.eve.surface") {
|
||||
throw "EveUnity release request lost org.gamecult.eve.surface dependency"
|
||||
}
|
||||
$surfaceDependency = @($request.requiredPackageDependencies) | Where-Object { $_.packageName -eq "org.gamecult.eve.surface" } | Select-Object -First 1
|
||||
if (-not $surfaceDependency) {
|
||||
throw "EveUnity release request missing required org.gamecult.eve.surface dependency contract"
|
||||
}
|
||||
if ($surfaceDependency.ownerRepo -ne "Eve" -or $surfaceDependency.packageManager -ne "upm") {
|
||||
throw "EveUnity release request has unexpected surface dependency owner/package manager: $($surfaceDependency.ownerRepo)/$($surfaceDependency.packageManager)"
|
||||
}
|
||||
if ($surfaceDependency.version -ne $packageManifest.dependencies."org.gamecult.eve.surface") {
|
||||
throw "EveUnity release request surface dependency version mismatch: $($surfaceDependency.version)"
|
||||
}
|
||||
|
||||
Write-Host "EveUnity release contract smoke passed: $absoluteOutputPath"
|
||||
|
|
@ -1,139 +0,0 @@
|
|||
param(
|
||||
[string] $HandoffPath = "packages\org.gamecult.eve.unity-uitoolkit\eveunity-split-handoff.json",
|
||||
[string] $CapabilityPath = "packages\org.gamecult.eve.unity-uitoolkit\eve-runtime-capability.json"
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$projectRoot = Split-Path -Parent $PSScriptRoot
|
||||
$absoluteHandoffPath = if ([System.IO.Path]::IsPathRooted($HandoffPath)) {
|
||||
$HandoffPath
|
||||
} else {
|
||||
Join-Path $projectRoot $HandoffPath
|
||||
}
|
||||
$absoluteCapabilityPath = if ([System.IO.Path]::IsPathRooted($CapabilityPath)) {
|
||||
$CapabilityPath
|
||||
} else {
|
||||
Join-Path $projectRoot $CapabilityPath
|
||||
}
|
||||
|
||||
if (-not (Test-Path -LiteralPath $absoluteHandoffPath)) {
|
||||
throw "EveUnity split handoff manifest not found: $absoluteHandoffPath"
|
||||
}
|
||||
if (-not (Test-Path -LiteralPath $absoluteCapabilityPath)) {
|
||||
throw "EveUnity runtime capability manifest not found: $absoluteCapabilityPath"
|
||||
}
|
||||
|
||||
$handoff = Get-Content -LiteralPath $absoluteHandoffPath -Raw | ConvertFrom-Json
|
||||
$capability = Get-Content -LiteralPath $absoluteCapabilityPath -Raw | ConvertFrom-Json
|
||||
|
||||
if ($handoff.schema -ne "gamecult.eve.runtime_split_handoff.v1") {
|
||||
throw "Unexpected EveUnity split handoff schema: $($handoff.schema)"
|
||||
}
|
||||
if ($handoff.splitTarget -ne "EveUnity") {
|
||||
throw "Unexpected EveUnity split handoff target: $($handoff.splitTarget)"
|
||||
}
|
||||
if ($handoff.ownerRepo -ne "EveUnity") {
|
||||
throw "Unexpected EveUnity split handoff owner: $($handoff.ownerRepo)"
|
||||
}
|
||||
if ($handoff.currentHostRepo -ne "Eve") {
|
||||
throw "Unexpected EveUnity split handoff host: $($handoff.currentHostRepo)"
|
||||
}
|
||||
if ($handoff.runtimeId -ne "unity-uitoolkit") {
|
||||
throw "Unexpected EveUnity split handoff runtime: $($handoff.runtimeId)"
|
||||
}
|
||||
if ($capability.incubation.splitHandoff.manifestPath -ne $HandoffPath.Replace("\", "/")) {
|
||||
$expectedPath = $HandoffPath.Replace("\", "/")
|
||||
throw "EveUnity capability manifest does not point at split handoff. Expected $expectedPath got $($capability.incubation.splitHandoff.manifestPath)"
|
||||
}
|
||||
|
||||
$expectedStages = @("release", "test", "capture")
|
||||
foreach ($stage in $expectedStages) {
|
||||
if (-not $capability.lifecycle.$stage) {
|
||||
throw "EveUnity capability lifecycle missing stage: $stage"
|
||||
}
|
||||
}
|
||||
|
||||
$moveSets = @($handoff.moveSets)
|
||||
foreach ($stage in $expectedStages) {
|
||||
$moveSet = $moveSets | Where-Object { $_.stage -eq $stage } | Select-Object -First 1
|
||||
if (-not $moveSet) {
|
||||
throw "EveUnity split handoff missing move set for stage: $stage"
|
||||
}
|
||||
if ($moveSet.destinationOwner -ne "EveUnity") {
|
||||
throw "EveUnity split handoff stage $stage has unexpected destination owner: $($moveSet.destinationOwner)"
|
||||
}
|
||||
if (-not $moveSet.replacementProof) {
|
||||
throw "EveUnity split handoff stage $stage missing replacement proof"
|
||||
}
|
||||
|
||||
$pendingProofs = @($capability.lifecycle.$stage.pendingProofs)
|
||||
if (-not ($pendingProofs -contains $moveSet.replacementProof)) {
|
||||
throw "EveUnity split handoff stage $stage replacement proof is not mirrored in runtime capability pending proofs: $($moveSet.replacementProof)"
|
||||
}
|
||||
|
||||
foreach ($relativePath in @($moveSet.currentPaths)) {
|
||||
$absolutePath = Join-Path $projectRoot $relativePath
|
||||
if (-not (Test-Path -LiteralPath $absolutePath)) {
|
||||
throw "EveUnity split handoff stage $stage references missing current path: $relativePath"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$consumerBoundary = $moveSets | Where-Object { $_.id -eq "aetheria-unity-consumer-boundary" } | Select-Object -First 1
|
||||
if (-not $consumerBoundary) {
|
||||
throw "EveUnity split handoff missing Aetheria Unity consumer-boundary move set"
|
||||
}
|
||||
if ($consumerBoundary.stage -ne "provider-consumer") {
|
||||
throw "Aetheria Unity consumer-boundary move set has unexpected stage: $($consumerBoundary.stage)"
|
||||
}
|
||||
if ($consumerBoundary.destinationOwner -ne "EveUnity") {
|
||||
throw "Aetheria Unity consumer-boundary has unexpected destination owner: $($consumerBoundary.destinationOwner)"
|
||||
}
|
||||
if (-not $consumerBoundary.replacementProof) {
|
||||
throw "Aetheria Unity consumer-boundary missing replacement proof"
|
||||
}
|
||||
foreach ($relativePath in @($consumerBoundary.currentPaths)) {
|
||||
$absolutePath = Join-Path $projectRoot $relativePath
|
||||
if (-not (Test-Path -LiteralPath $absolutePath)) {
|
||||
throw "Aetheria Unity consumer-boundary references missing current path: $relativePath"
|
||||
}
|
||||
}
|
||||
foreach ($providerPath in @($consumerBoundary.observedProviderPaths)) {
|
||||
if (-not ([System.IO.Path]::IsPathRooted($providerPath))) {
|
||||
throw "Aetheria Unity observed provider path must be absolute: $providerPath"
|
||||
}
|
||||
if (-not (Test-Path -LiteralPath $providerPath)) {
|
||||
throw "Aetheria Unity observed provider path is missing: $providerPath"
|
||||
}
|
||||
}
|
||||
foreach ($requiredObservedPath in @(
|
||||
"E:\Projects\Aetheria\Packages\manifest.json",
|
||||
"E:\Projects\Aetheria\GameCult.Eve.UnityUIToolkit.csproj",
|
||||
"E:\Projects\Aetheria\Assets"
|
||||
)) {
|
||||
if (-not (@($consumerBoundary.observedProviderPaths) -contains $requiredObservedPath)) {
|
||||
throw "Aetheria Unity consumer-boundary missing required observed provider path: $requiredObservedPath"
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($contract in @(
|
||||
"gamecult.eve.surface.v1",
|
||||
"gamecult.eve.command.v1",
|
||||
"gamecult.eve.provider_advertisement.v1",
|
||||
"gamecult.eve.plugin_advertisement.v1",
|
||||
"gamecult.eve.plugin.v1",
|
||||
"gamecult.eve.conformance_export.v1"
|
||||
)) {
|
||||
if (-not (@($handoff.contractInputs) -contains $contract)) {
|
||||
throw "EveUnity split handoff missing contract input: $contract"
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($proof in @($handoff.requiredExternalProofs)) {
|
||||
if (-not $proof) {
|
||||
throw "EveUnity split handoff contains an empty required external proof"
|
||||
}
|
||||
}
|
||||
|
||||
Write-Host "EveUnity split handoff smoke passed: $absoluteHandoffPath"
|
||||
|
|
@ -1,80 +0,0 @@
|
|||
param(
|
||||
[string] $CapabilityManifestPath = "packages\org.gamecult.eve.unity-uitoolkit\eve-runtime-capability.json",
|
||||
[string] $AdvertisementPath = "web\fixtures\aetheria.provider-advertisement.json",
|
||||
[string] $SurfacePath = "web\fixtures\aetheria-world-surface.json",
|
||||
[string] $OutputPath = "artifacts\eveunity-uitoolkit-capture\latest\unity-uitoolkit-projection.json",
|
||||
[string] $RequestOutputPath = "artifacts\eveunity-uitoolkit-capture\latest\capture-request.json",
|
||||
[string] $Stamp = "latest",
|
||||
[string] $ExpectedProviderId = "aetheria",
|
||||
[string] $ExpectedSurfaceId = "aetheria.daemon.game",
|
||||
[string] $ExpectedCommandBoundary = "aetheria.daemon.commands",
|
||||
[string] $ExpectedReceiptSchema = "aetheria.eve_command_acceptance_status.v1"
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$projectRoot = Split-Path -Parent $PSScriptRoot
|
||||
function Resolve-RepoPath([string] $candidate) {
|
||||
if ([System.IO.Path]::IsPathRooted($candidate)) {
|
||||
return $candidate
|
||||
}
|
||||
return Join-Path $projectRoot $candidate
|
||||
}
|
||||
|
||||
$absoluteCapabilityPath = Resolve-RepoPath $CapabilityManifestPath
|
||||
$absoluteAdvertisementPath = Resolve-RepoPath $AdvertisementPath
|
||||
$absoluteSurfacePath = Resolve-RepoPath $SurfacePath
|
||||
$absoluteOutputPath = Resolve-RepoPath $OutputPath
|
||||
$absoluteRequestOutputPath = Resolve-RepoPath $RequestOutputPath
|
||||
|
||||
foreach ($path in @($absoluteCapabilityPath, $absoluteAdvertisementPath, $absoluteSurfacePath)) {
|
||||
if (-not (Test-Path -LiteralPath $path)) {
|
||||
throw "EveUnity UI Toolkit capture input not found: $path"
|
||||
}
|
||||
}
|
||||
|
||||
node --test (Join-Path $projectRoot "tools\eveunity\eveunity-uitoolkit-capture-artifact.test.mjs")
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "EveUnity UI Toolkit capture artifact tests failed with exit code $LASTEXITCODE"
|
||||
}
|
||||
|
||||
node (Join-Path $projectRoot "tools\eveunity\eveunity-uitoolkit-capture-artifact.mjs") `
|
||||
--capability $absoluteCapabilityPath `
|
||||
--advertisement $absoluteAdvertisementPath `
|
||||
--surface $absoluteSurfacePath `
|
||||
--output $absoluteOutputPath `
|
||||
--request-output $absoluteRequestOutputPath `
|
||||
--stamp $Stamp
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "EveUnity UI Toolkit capture artifact builder failed with exit code $LASTEXITCODE"
|
||||
}
|
||||
|
||||
foreach ($path in @($absoluteOutputPath, $absoluteRequestOutputPath)) {
|
||||
if (-not (Test-Path -LiteralPath $path)) {
|
||||
throw "EveUnity UI Toolkit capture artifact output missing: $path"
|
||||
}
|
||||
}
|
||||
|
||||
$projection = Get-Content -LiteralPath $absoluteOutputPath -Raw | ConvertFrom-Json
|
||||
foreach ($expectation in @(
|
||||
@{ field = "schema"; value = "gamecult.eve.unity_uitoolkit_projection.v1" },
|
||||
@{ field = "runtimeId"; value = "unity-uitoolkit" },
|
||||
@{ field = "providerId"; value = $ExpectedProviderId },
|
||||
@{ field = "surfaceId"; value = $ExpectedSurfaceId },
|
||||
@{ field = "commandBoundary"; value = $ExpectedCommandBoundary },
|
||||
@{ field = "receiptSchema"; value = $ExpectedReceiptSchema },
|
||||
@{ field = "artifactKind"; value = "json-projection" },
|
||||
@{ field = "captureKind"; value = "unity-uitoolkit-projection-json" }
|
||||
)) {
|
||||
if ($projection.($expectation.field) -ne $expectation.value) {
|
||||
throw "EveUnity UI Toolkit projection $($expectation.field) expected $($expectation.value) got $($projection.($expectation.field))"
|
||||
}
|
||||
}
|
||||
if (-not $projection.root.id) {
|
||||
throw "EveUnity UI Toolkit projection capture must contain a root UI node"
|
||||
}
|
||||
if (-not (@($projection.root.classNames) -contains "eve-component")) {
|
||||
throw "EveUnity UI Toolkit projection capture root missing eve-component class"
|
||||
}
|
||||
|
||||
Write-Host "EveUnity UI Toolkit capture smoke passed: $absoluteOutputPath"
|
||||
|
|
@ -26,16 +26,7 @@ try {
|
|||
-OutputPath "artifacts\web-reference-layout-probe\latest\eve-world-smoke.json" `
|
||||
-Port 8894 `
|
||||
-SkipBuild
|
||||
& (Join-Path $PSScriptRoot "run-eveunity-uitoolkit-capture-smoke.ps1")
|
||||
& (Join-Path $PSScriptRoot "run-eveunity-uitoolkit-capture-smoke.ps1") `
|
||||
-AdvertisementPath "web\fixtures\eve-world-smoke.provider-advertisement.json" `
|
||||
-SurfacePath "web\fixtures\eve-world-smoke-surface.json" `
|
||||
-OutputPath "artifacts\eveunity-uitoolkit-capture\latest\eve-world-smoke-unity-uitoolkit-projection.json" `
|
||||
-RequestOutputPath "artifacts\eveunity-uitoolkit-capture\latest\eve-world-smoke-capture-request.json" `
|
||||
-ExpectedProviderId "eve.world-smoke" `
|
||||
-ExpectedSurfaceId "eve.world-smoke.surface" `
|
||||
-ExpectedCommandBoundary "eve.world-smoke.commands" `
|
||||
-ExpectedReceiptSchema "eve.world_smoke.command_receipt.v1"
|
||||
& (Join-Path $PSScriptRoot "run-eveunity-owner-smoke.ps1")
|
||||
& (Join-Path $PSScriptRoot "run-evetui-capture-smoke.ps1")
|
||||
& (Join-Path $PSScriptRoot "run-evetui-capture-smoke.ps1") `
|
||||
-AdvertisementPath "web\fixtures\eve-world-smoke.provider-advertisement.json" `
|
||||
|
|
@ -56,8 +47,6 @@ try {
|
|||
& (Join-Path $PSScriptRoot "run-eveconformance-handoff-smoke.ps1")
|
||||
& (Join-Path $PSScriptRoot "run-plugin-handoff-smoke.ps1")
|
||||
& (Join-Path $PSScriptRoot "run-aetheria-provider-handoff-smoke.ps1")
|
||||
& (Join-Path $PSScriptRoot "run-eveunity-split-handoff-smoke.ps1")
|
||||
& (Join-Path $PSScriptRoot "run-eveunity-release-artifact-smoke.ps1")
|
||||
& (Join-Path $PSScriptRoot "run-eveelectron-owner-smoke.ps1")
|
||||
& (Join-Path $PSScriptRoot "run-evetui-split-handoff-smoke.ps1")
|
||||
& (Join-Path $PSScriptRoot "run-evetui-lifecycle-smoke.ps1")
|
||||
|
|
|
|||
|
|
@ -150,7 +150,6 @@ node $consumerScript $consumerExport `
|
|||
--expect-provider-runtime-plugin-projection gamecult.home.vn:sai.visual_novel.surface:tui:sai.vn:supported:EveTui `
|
||||
--expect-provider-runtime-plugin-projection gamecult.home.vn:sai.visual_novel.surface:tui:norn.graph:optional-supported:EveTui `
|
||||
--expect-provider-runtime-plugin-projection gamecult.home.vn:sai.visual_novel.surface:tui:tex.math:optional-supported:EveTui `
|
||||
--expect-runtime-handoff unity-uitoolkit `
|
||||
--expect-runtime-command-schema web:gamecult.eve.command_invocation.v1 `
|
||||
--expect-runtime-command-schema windows-flutter:gamecult.eve.command_invocation.v1 `
|
||||
--expect-runtime-command-schema unity-uitoolkit:gamecult.eve.command_invocation.v1 `
|
||||
|
|
@ -161,9 +160,7 @@ node $consumerScript $consumerExport `
|
|||
--expect-runtime-capture-status windows-flutter:golden `
|
||||
--expect-runtime-capture-status linux-flutter:ssh-golden `
|
||||
--expect-runtime-capture-status android-flutter:adb-png `
|
||||
--expect-runtime-capture-status unity-uitoolkit:json-projection `
|
||||
--expect-runtime-capture-artifact unity-uitoolkit:json-projection:gamecult.eve.unity_uitoolkit_projection.v1:aetheria:aetheria.daemon.game `
|
||||
--expect-runtime-capture-artifact unity-uitoolkit:json-projection:gamecult.eve.unity_uitoolkit_projection.v1:eve.world-smoke:eve.world-smoke.surface `
|
||||
--expect-runtime-capture-status unity-uitoolkit:pending-native-capture `
|
||||
--expect-runtime-capture-status unity-scene:partial-world-smoke-playmode-capture `
|
||||
--expect-runtime-capture-status electron-shell:owner-window-png `
|
||||
--expect-runtime-capture-artifact electron-shell:png:image/png:eve.world-smoke:eve.world-smoke.surface `
|
||||
|
|
@ -172,7 +169,7 @@ node $consumerScript $consumerExport `
|
|||
--expect-runtime-capture-artifact tui:json-grid:gamecult.eve.tui_grid.v1:aetheria:aetheria.daemon.game `
|
||||
--expect-runtime-capture-artifact tui:json-grid:gamecult.eve.tui_grid.v1:eve.world-smoke:eve.world-smoke.surface `
|
||||
--expect-runtime-capture-status direct2d:missing `
|
||||
--expect-runtime-capture-probe unity-uitoolkit:semantic-artifact-present-capture-pending:png:EveUnity `
|
||||
--expect-runtime-capture-probe unity-uitoolkit:contract-artifact-missing:png:EveUnity `
|
||||
--expect-runtime-capture-probe unity-scene:control-artifact-present-product-capture-pending:png:EveUnity `
|
||||
--expect-runtime-capture-probe electron-shell:contract-artifact-present:png:EveElectron `
|
||||
--expect-runtime-witness electron-shell:eve.world-smoke:eve.world-smoke.surface:cold:pass `
|
||||
|
|
@ -196,21 +193,21 @@ node $consumerScript $consumerExport `
|
|||
--expect-runtime-lifecycle-status unity-uitoolkit:test:batchmode-editmode-tests-and-consumer-build-smoke `
|
||||
--expect-runtime-lifecycle-status unity-uitoolkit:capture:pending-editor-capture `
|
||||
--expect-runtime-lifecycle-pending "unity-uitoolkit:release:Tagged UPM release" `
|
||||
--expect-runtime-lifecycle-pending "unity-uitoolkit:test:Unity batchmode EditMode runner" `
|
||||
--expect-runtime-lifecycle-pending "unity-uitoolkit:test:Cut and publish the first tagged EveUnity UI Toolkit package release" `
|
||||
--expect-runtime-lifecycle-pending "unity-uitoolkit:capture:Unity batchmode or editor capture artifact" `
|
||||
--expect-runtime-lifecycle-field "unity-uitoolkit:release:releaseContract.packageName:org.gamecult.eve.unity-uitoolkit" `
|
||||
--expect-runtime-lifecycle-field "unity-uitoolkit:release:releaseContract.artifactKind:upm-package" `
|
||||
--expect-runtime-lifecycle-field "unity-uitoolkit:release:releaseContract.requestSchema:gamecult.eve.runtime_release_request.v1" `
|
||||
--expect-runtime-lifecycle-field "unity-uitoolkit:release:releaseContract.requestBuilder:tools/eveunity/eveunity-release-contract.mjs" `
|
||||
--expect-runtime-lifecycle-field "unity-uitoolkit:release:releaseContract.artifactBuilder:tools/eveunity/eveunity-release-artifact.mjs" `
|
||||
--expect-runtime-lifecycle-field "unity-uitoolkit:release:releaseContract.requestBuilder:scripts/pack-uitoolkit.ps1" `
|
||||
--expect-runtime-lifecycle-field "unity-uitoolkit:release:releaseContract.artifactBuilder:scripts/pack-uitoolkit.ps1" `
|
||||
--expect-runtime-lifecycle-field "unity-uitoolkit:release:releaseContract.artifactPattern:artifacts/eveunity-uitoolkit-release/{version}/org.gamecult.eve.unity-uitoolkit-{version}.tgz" `
|
||||
--expect-runtime-lifecycle-field "unity-uitoolkit:release:releaseContract.tagPattern:eveunity-uitoolkit-v{version}" `
|
||||
--expect-runtime-lifecycle-field "unity-uitoolkit:release:releaseContract.packageRoot:packages/org.gamecult.eve.unity-uitoolkit" `
|
||||
--expect-runtime-lifecycle-field "unity-uitoolkit:release:releaseContract.requiredPackageDependencies.0.packageName:org.gamecult.eve.surface" `
|
||||
--expect-runtime-lifecycle-field "unity-uitoolkit:release:releaseContract.requiredPackageDependencies.0.ownerRepo:Eve" `
|
||||
--expect-runtime-lifecycle-field "unity-uitoolkit:release:releaseContract.requiredPackageDependencies.0.ownerRepo:EveUnity" `
|
||||
--expect-runtime-lifecycle-field "unity-uitoolkit:release:releaseContract.requiredPackageDependencies.0.packageManager:upm" `
|
||||
--expect-runtime-lifecycle-field "unity-uitoolkit:test:testContract.runnerKind:unity-editmode-batchmode" `
|
||||
--expect-runtime-lifecycle-field "unity-uitoolkit:test:testContract.runnerScript:scripts/run-aetheria-unity-editmode-tests.ps1" `
|
||||
--expect-runtime-lifecycle-field "unity-uitoolkit:test:testContract.runnerScript:scripts/run-uitoolkit-tests.ps1" `
|
||||
--expect-runtime-lifecycle-field "unity-uitoolkit:test:testContract.packageName:org.gamecult.eve.unity-uitoolkit" `
|
||||
--expect-runtime-lifecycle-field "unity-uitoolkit:test:testContract.testAssembly:GameCult.Eve.UnityUIToolkit.Tests" `
|
||||
--expect-runtime-lifecycle-field "unity-uitoolkit:test:testContract.testPlatform:EditMode" `
|
||||
|
|
@ -227,7 +224,7 @@ node $consumerScript $consumerExport `
|
|||
--expect-runtime-lifecycle-field "unity-uitoolkit:capture:captureContract.artifactKind:png" `
|
||||
--expect-runtime-lifecycle-field "unity-uitoolkit:capture:captureContract.targetId:unity-uitoolkit" `
|
||||
--expect-runtime-lifecycle-field "unity-uitoolkit:capture:captureContract.requestSchema:gamecult.eve.runtime_capture_request.v1" `
|
||||
--expect-runtime-lifecycle-field "unity-uitoolkit:capture:captureContract.requestBuilder:tools/eveunity/eveunity-capture-contract.mjs" `
|
||||
--expect-runtime-lifecycle-field "unity-uitoolkit:capture:captureContract.requestBuilder:scripts/build-uitoolkit-capture-request.ps1" `
|
||||
--expect-runtime-lifecycle-field "unity-uitoolkit:capture:captureContract.advertisementPath:web/fixtures/aetheria.provider-advertisement.json" `
|
||||
--expect-runtime-lifecycle-field "unity-uitoolkit:capture:captureContract.conformanceAttachment:runtime.captureArtifacts[]" `
|
||||
--expect-runtime-lifecycle-field "unity-uitoolkit:capture:captureContract.requiredProvider:aetheria" `
|
||||
|
|
@ -251,7 +248,7 @@ node $consumerScript $consumerExport `
|
|||
--expect-runtime-lifecycle-field "unity-scene:release:releaseContract.artifactBuilder:scripts/pack.ps1" `
|
||||
--expect-runtime-lifecycle-field "unity-scene:release:releaseContract.artifactPattern:artifacts/eveunity-scene-release/{version}/org.gamecult.eve.unity-scene-{version}.tgz" `
|
||||
--expect-runtime-lifecycle-field "unity-scene:release:releaseContract.requiredPackageDependencies.0.packageName:org.gamecult.eve.surface" `
|
||||
--expect-runtime-lifecycle-field "unity-scene:release:releaseContract.requiredPackageDependencies.0.ownerRepo:Eve" `
|
||||
--expect-runtime-lifecycle-field "unity-scene:release:releaseContract.requiredPackageDependencies.0.ownerRepo:EveUnity" `
|
||||
--expect-runtime-lifecycle-field "unity-scene:release:releaseContract.requiredPackageDependencies.0.packageManager:upm" `
|
||||
--expect-runtime-lifecycle-field "unity-scene:test:testContract.runnerKind:unity-editmode-batchmode" `
|
||||
--expect-runtime-lifecycle-field "unity-scene:test:testContract.runnerScript:scripts/run-package-tests.ps1" `
|
||||
|
|
|
|||
|
|
@ -39,16 +39,11 @@ try {
|
|||
--expect-split-target-blocker "EveFlutter:Tagged EveFlutter release" `
|
||||
--expect-split-target EveUnity `
|
||||
--expect-split-target-status EveUnity:incubating `
|
||||
--expect-split-target-proof "EveUnity:Unity lifecycle evidence is declared" `
|
||||
--expect-split-target-proof "EveUnity:EveUnity split handoff is machine-readable" `
|
||||
--expect-split-target-proof "EveUnity:Unity UI Toolkit package lifecycle is owned and tested from EveUnity" `
|
||||
--expect-split-target-proof "EveUnity:Aetheria consumes Unity surface and UI Toolkit packages from EveUnity" `
|
||||
--expect-split-target-proof "EveUnity:Unity scene runtime is owned by EveUnity" `
|
||||
--expect-split-target-proof "EveUnity:Unity scene lifecycle is owned and tested from EveUnity" `
|
||||
--expect-split-target-proof "EveUnity:Aetheria daemon 3D ARPG world lowers through a generic EveUnity playable-world client" `
|
||||
--expect-runtime-capture-artifact unity-uitoolkit:json-projection:gamecult.eve.unity_uitoolkit_projection.v1:aetheria:aetheria.daemon.game `
|
||||
--expect-runtime-capture-artifact unity-uitoolkit:json-projection:gamecult.eve.unity_uitoolkit_projection.v1:eve.world-smoke:eve.world-smoke.surface `
|
||||
--expect-split-handoff-move EveUnity:unity-uitoolkit:aetheria-unity-consumer-boundary:observed-provider:exists:Packages/manifest.json `
|
||||
--expect-split-handoff-move EveUnity:unity-uitoolkit:aetheria-unity-consumer-boundary:observed-provider:exists:GameCult.Eve.UnityUIToolkit.csproj `
|
||||
--expect-split-handoff-move EveUnity:unity-uitoolkit:aetheria-unity-consumer-boundary:observed-provider:exists:Aetheria.State.Unity/AetheriaRuntimeCatalogClient.cs `
|
||||
--expect-split-target-blocker "EveUnity:Tagged UPM release" `
|
||||
--expect-split-target EveElectron `
|
||||
--expect-split-target-status EveElectron:graduated `
|
||||
|
|
|
|||
Loading…
Reference in a new issue