build(android): upgrade toolchain and migrate Room to KSP
Lint / Lint (push) Successful in 1m29s
Security / Secrets (gitleaks) (push) Successful in 1m11s
Security / Dependencies (Trivy) (push) Successful in 1m59s
Tests / Dashboard checks (push) Successful in 1m49s
Security / Code (Semgrep) (push) Successful in 3m8s
Tests / Go backend (push) Successful in 2m50s
Docker / Docker Build & Push (push) Successful in 8m42s
Lint / Lint (push) Successful in 1m29s
Security / Secrets (gitleaks) (push) Successful in 1m11s
Security / Dependencies (Trivy) (push) Successful in 1m59s
Tests / Dashboard checks (push) Successful in 1m49s
Security / Code (Semgrep) (push) Successful in 3m8s
Tests / Go backend (push) Successful in 2m50s
Docker / Docker Build & Push (push) Successful in 8m42s
- Target API 37 and use build-tools 37 for release signature checks - Adjust list pagination spacing and clarify shared backend docs
This commit is contained in:
1 parent
7150ebd13e
commit
0fd1805502
40 files changed
+912
-690
No files matched your search
@@ -1,6 +1,8 @@
|
||||
[CmdletBinding()]
|
||||
param(
|
||||
[string]$SourceRepository,
|
||||
[string[]]$Consumers,
|
||||
[string]$ConsumersFile,
|
||||
[switch]$Force,
|
||||
[switch]$Commit,
|
||||
[switch]$Push
|
||||
@@ -26,11 +28,9 @@ function New-ConsumerProject {
|
||||
# Destination defaults to 'shared' (the snapshot folder name every consumer
|
||||
# uses) - originally a git submodule, converted to this vendored-copy pattern
|
||||
# for consistency and to drop the private-submodule checkout auth dependency
|
||||
# in CI. The media-family services (CarrierNode, ContentScanner, CraftStudio,
|
||||
# MediaViewer, KioskDisplay, ModerationHub, ProjectConfigurator) used to mount
|
||||
# a shared multi-flavor webui/media-backend at a separate 'engine' folder
|
||||
# instead; each is now its own independent frontend/backend and vendors this
|
||||
# snapshot the same way as every other consumer below.
|
||||
# in CI. Some consumers used to mount a shared multi-flavor webui at a separate 'engine'
|
||||
# folder; each is now its own independent frontend/backend and vendors this snapshot the same
|
||||
# way as every other consumer below.
|
||||
$consumerProjects = @(
|
||||
New-ConsumerProject 'Original/MediaDesktop'
|
||||
New-ConsumerProject 'Original/AutoCode'
|
||||
@@ -45,7 +45,6 @@ $consumerProjects = @(
|
||||
New-ConsumerProject 'Original/InfiniteVideo'
|
||||
New-ConsumerProject 'Fork/MegaBasterd'
|
||||
New-ConsumerProject 'Fork/HordeWorker'
|
||||
New-ConsumerProject 'Original/OutdoorGames'
|
||||
New-ConsumerProject 'Original/KioskDisplay'
|
||||
New-ConsumerProject 'Original/CraftStudio'
|
||||
New-ConsumerProject 'Original/MediaViewer'
|
||||
@@ -57,6 +56,36 @@ $consumerProjects = @(
|
||||
New-ConsumerProject 'Core/OmniLogger'
|
||||
)
|
||||
|
||||
# Targets are chosen per run. Without -Consumers or -ConsumersFile every
|
||||
# catalogue entry is synchronized. The file is the one AutoCode exports from its
|
||||
# Shared sync panel: {"consumers": ["Original/MediaDesktop", ...]}. OutdoorGames
|
||||
# is not in the catalogue because it runs without the shared packages.
|
||||
if ($Consumers -and $ConsumersFile) {
|
||||
throw 'Pass either -Consumers or -ConsumersFile, not both.'
|
||||
}
|
||||
|
||||
$requestedConsumers = $Consumers
|
||||
if ($ConsumersFile) {
|
||||
$targetFile = Get-Content -LiteralPath $ConsumersFile -Raw | ConvertFrom-Json
|
||||
if ($null -eq $targetFile.consumers) {
|
||||
throw "'$ConsumersFile' has no 'consumers' array."
|
||||
}
|
||||
$requestedConsumers = @($targetFile.consumers)
|
||||
}
|
||||
|
||||
$selectedConsumers = $consumerProjects
|
||||
if ($null -ne $requestedConsumers) {
|
||||
$catalogPaths = @($consumerProjects | ForEach-Object { $_.Path })
|
||||
$unknownConsumers = @($requestedConsumers | Where-Object { $catalogPaths -notcontains $_ })
|
||||
if ($unknownConsumers.Count -gt 0) {
|
||||
throw "Unknown consumer(s): $($unknownConsumers -join ', '). Choose from: $($catalogPaths -join ', ')."
|
||||
}
|
||||
$selectedConsumers = @($consumerProjects | Where-Object { $requestedConsumers -contains $_.Path })
|
||||
if ($selectedConsumers.Count -eq 0) {
|
||||
throw 'No consumers selected; nothing to synchronize.'
|
||||
}
|
||||
}
|
||||
|
||||
function Invoke-GitText {
|
||||
param(
|
||||
[Parameter(Mandatory = $true)]
|
||||
@@ -224,9 +253,8 @@ $sourceRoot = Resolve-FullPath $sourceRepositoryRoot
|
||||
# The workspace root is the ancestor directory that contains both 'Original'
|
||||
# and 'Fork' (every consumer project lives under one of those, or under
|
||||
# 'Core' for the central infrastructure services). Walk up from the shared
|
||||
# repo instead of assuming a fixed nesting depth, since shared/ has moved
|
||||
# before (e.g. Web/shared -> Web/Central/shared -> Web/Core/shared, with
|
||||
# 'Forks' renamed to singular 'Fork' at the same time) and may move again.
|
||||
# repo instead of assuming a fixed nesting depth, since the workspace layout has
|
||||
# changed before and may change again.
|
||||
$workspaceRoot = Split-Path -Parent $sourceRoot
|
||||
while ($workspaceRoot -and -not ((Test-Path -LiteralPath (Join-Path $workspaceRoot 'Original') -PathType Container) -and (Test-Path -LiteralPath (Join-Path $workspaceRoot 'Fork') -PathType Container))) {
|
||||
$parent = Split-Path -Parent $workspaceRoot
|
||||
@@ -247,7 +275,7 @@ Write-Host "Synchronizing $($sourceFiles.Count) tracked shared files from $sourc
|
||||
|
||||
$failures = New-Object 'System.Collections.Generic.List[string]'
|
||||
|
||||
foreach ($consumerProject in $consumerProjects) {
|
||||
foreach ($consumerProject in $selectedConsumers) {
|
||||
$relativeProject = $consumerProject.Path
|
||||
$destination = $consumerProject.Destination
|
||||
$projectRoot = Join-Path $workspaceRoot ($relativeProject -replace '/', '\')
|
||||
|
||||
Reference in new issue
Block a user