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
@@ -50,9 +50,9 @@ function collectMatches(content, regex, type) {
|
||||
const allFiles = await walk(repoRoot);
|
||||
const violations = [];
|
||||
|
||||
// After folding media-backend/webui directly into the shared repo, this filter targets
|
||||
// This filter targets
|
||||
// the frontend directories where inline HTML/CSS layout violations are actually possible
|
||||
// (the plain Go backend/ and Go media-backend/ have none; there is no more nested shared/).
|
||||
// (the Go backend/ has none; there is no nested shared/).
|
||||
const includedTopLevelDirs = ['webui/', 'scripts/media/'];
|
||||
|
||||
for (const filePath of allFiles) {
|
||||
|
||||
@@ -100,7 +100,7 @@ fallbackRemoved += removeFallbackDirs(repoRoot);
|
||||
// NOTE: no top-level tests/ dir currently exists and no embedded-postgres JS test tooling was
|
||||
// found anywhere in this repo — this sweep is a harmless no-op today but kept for forward
|
||||
// compatibility / parity with the source script. The former sweep of a nested shared/tests/
|
||||
// was dropped: after folding media-backend/webui directly into the shared repo (no more
|
||||
// was dropped: after the webui was folded directly into the shared repo (no more
|
||||
// vendored shared/ copy), there is no longer a nested "shared" subdirectory to sweep.
|
||||
const pgSweepDirs = [path.join(repoRoot, 'tests')];
|
||||
let pgArtifactsRemoved = 0;
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
* machine parsing. Exit code is non-zero if any package reports errors or warnings (configurable).
|
||||
*
|
||||
* Shared extraction note: the monorepo version of this script discovered the monorepo root by
|
||||
* walking up for a MediaShared/package.json marker and iterated MediaShared/MediaModerator/
|
||||
* MediaViewer/MediaTools using a shared root eslint.config.mjs. None of those sibling packages or
|
||||
* walking up for a root package.json marker and iterated the sibling packages
|
||||
* using a shared root eslint.config.mjs. None of those sibling packages or
|
||||
* the root config exist in this repo — webui/ is the only JS/TS package here, and it already
|
||||
* ships its own local eslint.config.js (picked up automatically, no --config override needed).
|
||||
*/
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
* Exits non‑zero if any package fails its lint step.
|
||||
*
|
||||
* Shared extraction note: the monorepo version of this script discovered the monorepo root
|
||||
* by walking up for a MediaShared/package.json marker, iterated nine sibling Media* packages
|
||||
* by walking up for a root package.json marker, iterated the sibling packages
|
||||
* against a shared root eslint.config.mjs/.stylelintrc.json, and ran Prettier/Stylelint out of
|
||||
* MediaShared/node_modules (npm workspace hoisting). Here the only JS/TS package with a lint
|
||||
* the root node_modules (npm workspace hoisting). Here the only JS/TS package with a lint
|
||||
* target is packages/web-ui, linted with the root eslint.config.js (ESLint is a root
|
||||
* devDependency, so `npx eslint` resolves it). Prettier is checked through the root
|
||||
* `format:check` script, which covers only the files written to the Prettier style (see
|
||||
|
||||
@@ -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