Files
opengenesislinkserver/.github/workflows/nexjast-ci.yml
T
OpenGenesis (MPL 2.0) 5d5371c192 feat(oglvoice): Firestorm WebRTC LLSD gateway, signed media exchange and remote speaker wire (#121)
* feat(oglvoice): include separately enabled signed Firestorm media gateway in grid provider discovery

* feat(oglvoice): gate advertised Firestorm WebRTC capability behind central provider media URL

* feat(oglvoice): gate advertised Firestorm WebRTC capability behind central provider media URL

* feat(oglvoice): encode Firestorm JSEP/ICE media contract and remote speaker data-channel messages

* feat(oglvoice): register Firestorm LLSD voice CAPS, verify scene admission and proxy JSEP/ICE to signed media bridge

* fix(oglvoice): ensure viewer CAP validates scene admission before constructing media payload

* docs(config): opt-in Firestorm media gateway centrally at Robust; no implicit LiveKit URL shortcut

* docs(config): opt-in Firestorm media gateway centrally at Robust; no implicit LiveKit URL shortcut

* docs(config): document Firestorm LLSD voice CAPS inherited from Robust or explicit Standalone mode

* test(oglvoice): verify Firestorm SDP and ICE contract plus all-avatar speaker data-channel frames

* test(oglvoice): verify Firestorm SDP and ICE contract plus all-avatar speaker data-channel frames

* test(oglvoice): guard disabled-by-default Firestorm voice CAPS, signed bridge and remote speaker protocol

* ci(oglvoice): execute Firestorm SDP/ICE and remote-speaking data-channel regressions

* feat(oglvoice): separately authenticate bounded Firestorm SDP/ICE exchanges with large-payload media proof

* fix(oglvoice): support real SDP-sized signed exchanges and stream-limit media gateway responses

* test(oglvoice): compile media HMAC authentication contract in regression project

* test(oglvoice): assert SDP-sized authenticated media payloads, expiry and node binding

* ci(oglvoice): check domain-separated media proof rather than 4KiB session-mint proof

* docs(oglvoice): define exact Firestorm JSEP/ICE backend exchange, speaking-orb frames and unfulfilled media gates

* docs(oglvoice): mark Firestorm CAPS and speaker wire foundations without claiming functional media

* docs(oglvoice): mark Firestorm CAPS and speaker wire foundations without claiming functional media

* fix(oglvoice): bind Firestorm session to active region AgentSessionID and prevent cross-region admission

* test(oglvoice): verify per-region current circuit binding on viewer session requests

* fix(ci): link core admission DTO dependencies into Firestorm wire regression project
2026-10-09 20:14:09 +02:00

1054 lines
50 KiB
YAML

name: NexVerse CI
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
build:
name: Build NexVerse
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Verify repository hygiene
shell: bash
run: |
set -euo pipefail
if git ls-files | grep -E '(^|/)obj/' >/dev/null; then
echo "::error::Tracked obj/ build intermediates found."
git ls-files | grep -E '(^|/)obj/'
exit 1
fi
forbidden_paths=(
"OpenSim/ApplicationPlugins/RemoteController"
"OpenSim/Region/OptionalModules/Avatar/Voice/VivoxVoice"
"OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice"
"OpenSim/Region/OptionalModules/ServiceConnectorsIn/Freeswitch"
"OpenSim/Server/Handlers/Freeswitch"
"OpenSim/Services/Connectors/Freeswitch"
"OpenSim/Services/FreeswitchService"
"OpenSim/Region/OptionalModules/Avatar/Chat/IRCBridgeModule.cs"
"OpenSim/Region/OptionalModules/Avatar/Chat/IRCConnector.cs"
"OpenSim/Server/Handlers/Authentication/OpenIdServerConnector.cs"
"OpenSim/Server/Handlers/Authentication/OpenIdServerHandler.cs"
"OpenSim/Region/OptionalModules/UserStatistics"
"OpenSim/Region/OptionalModules/Example"
)
for path in "${forbidden_paths[@]}"; do
if [ -e "$path" ]; then
echo "::error::Legacy component still exists: $path"
exit 1
fi
done
test -f OpenSim/Region/CoreModules/Scripting/XMLRPC/XMLRPCModule.cs
test -f OpenSim/Region/OptionalModules/Scripting/XmlRpcRouterModule/XmlRpcRouterModule.cs
- name: Verify runtime secrets are not committed
shell: bash
run: python3 tools/ci/verify_no_plaintext_runtime_secrets.py
- name: Verify runtime environment expansion declarations
shell: bash
run: python3 tools/ci/verify_environment_expansions.py
- name: Verify enabled Experiences and NexBus deployment profile
shell: bash
run: |
python3 tools/ci/verify_experiences_nexbus_enabled.py
- name: Verify OSSL policy coverage
shell: bash
run: python3 tools/ci/verify_ossl_policy.py
- name: Verify Hypergrid URI normalization
shell: bash
run: dotnet run --configuration Release --project tools/ci/HypergridUriRegression/HypergridUriRegression.csproj
- name: Verify HG deployment endpoints
shell: bash
run: python3 tools/ci/verify_hg_deployment_endpoints.py
- name: Verify simulator runtime profile
shell: bash
run: python3 tools/ci/verify_simulator_runtime_profile.py
- name: Verify LunaTexture recovery foundation
shell: bash
run: python3 tools/ci/verify_lunatexture.py
- name: Verify Inventory API foundation
shell: bash
run: python3 tools/ci/verify_inventory_api.py
- name: Verify OpenGenesisLINK OAR management foundation
shell: bash
run: python3 tools/ci/verify_oar_management.py
- name: Verify OpenGenesisLINK OAR operation layer
shell: bash
run: python3 tools/ci/verify_oar_operations.py
- name: Verify OpenGenesisLINK OAR World API
shell: bash
run: python3 tools/ci/verify_oar_world_api.py
- name: Verify OpenGenesisLINK IAR management foundation
shell: bash
run: python3 tools/ci/verify_iar_management.py
- name: Verify OpenGenesisLINK IAR World API
shell: bash
run: python3 tools/ci/verify_iar_world_api.py
- name: Verify OpenGenesisLINK encrypted IAR backup
shell: bash
run: python3 tools/ci/verify_iar_encrypted_backup.py
- name: Verify OpenGenesisLINK Job Engine foundation
shell: bash
run: python3 tools/ci/verify_job_engine.py
- name: Verify OAR/IAR Job Engine integration
shell: bash
run: python3 tools/ci/verify_job_api_integration.py
- name: Verify archive job progress
shell: bash
run: python3 tools/ci/verify_archive_job_progress.py
- name: Verify native backup worker
shell: bash
run: python3 tools/ci/verify_native_backup_worker.py
- name: Verify native restore worker
shell: bash
run: python3 tools/ci/verify_native_restore_worker.py
- name: Verify native asset reindex worker
shell: bash
run: python3 tools/ci/verify_native_asset_reindex_worker.py
- name: Verify native region migration worker
shell: bash
run: python3 tools/ci/verify_region_migration_worker.py
- name: Verify native database maintenance worker
shell: bash
run: python3 tools/ci/verify_database_maintenance_worker.py
- name: Verify native inventory repair worker
shell: bash
run: python3 tools/ci/verify_inventory_repair_worker.py
- name: Verify account lifecycle policy
shell: bash
run: python3 tools/ci/verify_account_lifecycle.py
- name: Verify Display Name foundation
shell: bash
run: python3 tools/ci/verify_display_names.py
- name: Verify resident username normalization
shell: bash
run: dotnet run --configuration Release --project tools/ci/NexResidentNameRegression/NexResidentNameRegression.csproj
- name: Verify native access tokens
shell: bash
run: dotnet run --configuration Release --project tools/ci/NexTokenRegression/NexTokenRegression.csproj
- name: Verify API rate limiter
shell: bash
run: dotnet run --configuration Release --project tools/ci/NexRateLimitRegression/NexRateLimitRegression.csproj
- name: Verify persistent audit store
shell: bash
run: dotnet run --configuration Release --project tools/ci/NexAuditRegression/NexAuditRegression.csproj
- name: Verify idempotency store
shell: bash
run: dotnet run --configuration Release --project tools/ci/NexIdempotencyRegression/NexIdempotencyRegression.csproj
- name: Verify scoped API key store
shell: bash
run: dotnet run --configuration Release --project tools/ci/NexApiKeyRegression/NexApiKeyRegression.csproj
- name: Verify OAuth2 OIDC identity flows
shell: bash
run: dotnet run --configuration Release --project tools/ci/NexOAuthRegression/NexOAuthRegression.csproj
- name: Verify OAuth browser login and consent
shell: bash
run: python3 tools/ci/verify_oauth_browser_consent.py
- name: Verify native auth cutover
shell: bash
run: python3 tools/ci/verify_native_auth_cutover.py
- name: Verify user role and scope authorization
shell: bash
run: python3 tools/ci/verify_user_authorization.py
- name: Verify Region Control Plane mutations
shell: bash
run: python3 tools/ci/verify_region_mutations.py
- name: Verify World API online region listing
shell: bash
run: python3 tools/ci/verify_region_listing.py
- name: Verify Estate Control Plane foundation
shell: bash
run: python3 tools/ci/verify_estate_control.py
- name: Verify NexBus distributed core
shell: bash
run: dotnet run --configuration Release --project tools/ci/NexBusRegression/NexBusRegression.csproj
- name: Verify NV dollar ledger contract
shell: bash
run: python3 tools/ci/verify_ledger_foundation.py
- name: Verify durable NV dollar SQL ledger
shell: bash
run: python3 tools/ci/verify_ledger_sql_store.py
- name: Verify NV dollar Robust runtime configuration
shell: bash
run: python3 tools/ci/verify_ledger_runtime_config.py
- name: Verify NV dollar account lifecycle and policy
shell: bash
run: python3 tools/ci/verify_economy_policy.py
- name: Regression-test NV dollar account lifecycle and policy
shell: bash
run: dotnet run --configuration Release --project tools/ci/NexEconomyPolicyRegression/NexEconomyPolicyRegression.csproj
- name: Verify NV dollar World API and Viewer adapter
shell: bash
run: python3 tools/ci/verify_economy_api_viewer.py
- name: Verify NV dollar banking, commerce and land flows
shell: bash
run: python3 tools/ci/verify_banking_commerce.py
- name: Verify segment-aware simple HTTP routing
shell: bash
run: python3 tools/ci/verify_simple_stream_routing.py
- name: Verify Chapter 11 NexGroups and NexExperiences
shell: bash
run: python3 tools/ci/verify_nexgroups_experiences.py
- name: Regression-test NexExperiences persistence and K/V
shell: bash
run: dotnet run --configuration Release --project tools/ci/NexExperiencesRegression/NexExperiencesRegression.csproj
- name: Verify Roadmap 12 NexDiscovery
shell: bash
run: python3 tools/ci/verify_nexdiscovery.py
- name: Verify citizen world map integration
shell: bash
run: python3 tools/ci/verify_citizen_world_map.py
- name: Verify citizen social and profile integration
shell: bash
run: python3 tools/ci/verify_citizen_social_profile.py
- name: Verify bidirectional opt-in portal IM inbox
shell: bash
run: python3 tools/ci/verify_portal_im_inbox.py
- name: Regression-test NexDiscovery persistence and moderation
shell: bash
run: dotnet run --configuration Release --project tools/ci/NexDiscoveryRegression/NexDiscoveryRegression.csproj
- name: Verify NV dollar live database matrix contract
shell: bash
run: python3 tools/ci/verify_ledger_db_matrix.py
- name: Verify NV dollar double-entry ledger
shell: bash
run: dotnet run --configuration Release --project tools/ci/NexLedgerRegression/NexLedgerRegression.csproj
- name: Regression-test private portal IM SQLite archive
shell: bash
run: dotnet run --configuration Release --project tools/ci/NexPortalImStoreRegression/NexPortalImStoreRegression.csproj
- name: Verify avatar appearance cache configuration
shell: bash
run: python3 tools/ci/verify_avatar_appearance_config.py
- name: Verify LLUDP incoming idle watchdog heartbeat
shell: bash
run: python3 tools/ci/verify_lludp_incoming_watchdog.py
- name: Verify OpenGenesisLINK .NET runtime threadpool modernization
shell: bash
run: python3 tools/ci/verify_ogl_runtime_threadpool.py
- name: Regression-test OGL bounded pathfinding A-star core
shell: bash
run: dotnet run --configuration Release --project tools/ci/OglPathfindingRegression/OglPathfindingRegression.csproj
- name: Verify OGL terrain navigation Scene integration
shell: bash
run: python3 tools/ci/verify_ogl_terrain_navigation.py
- name: Regression-test OGL terrain heightfield navigation
shell: bash
run: dotnet run --configuration Release --project tools/ci/OglTerrainNavigationRegression/OglTerrainNavigationRegression.csproj
- name: Verify native owner-checked NPC path-following module
shell: bash
run: python3 tools/ci/verify_ogl_npc_navigation.py
- name: Regression-test OGL NPC waypoint controller
shell: bash
run: dotnet run --configuration Release --project tools/ci/OglNpcNavigationRegression/OglNpcNavigationRegression.csproj
- name: Verify OGLVoice secure provider discovery integration
shell: bash
run: python3 tools/ci/verify_oglvoice_discovery.py
- name: Regression-test OGLVoice signed discovery and HG identities
shell: bash
run: dotnet run --configuration Release --project tools/ci/OglVoiceDiscoveryRegression/OglVoiceDiscoveryRegression.csproj
- name: Verify OGLVoice central session authority and region permission gate
shell: bash
run: python3 tools/ci/verify_oglvoice_session_authority.py
- name: Regression-test OGLVoice LiveKit token privileges and HG binding
shell: bash
run: dotnet run --configuration Release --project tools/ci/OglVoiceSessionRegression/OglVoiceSessionRegression.csproj
- name: Verify Firestorm LLSD voice capabilities and speaker-orb integration
shell: bash
run: python3 tools/ci/verify_oglvoice_firestorm_caps.py
- name: Regression-test Firestorm WebRTC media and speaker data channel wire
shell: bash
run: dotnet run --configuration Release --project tools/ci/OglVoiceFirestormRegression/OglVoiceFirestormRegression.csproj
- name: Verify Firestorm bridge bootstrap compatibility
shell: bash
run: python3 tools/ci/verify_firestorm_bridge_bootstrap.py
- name: Verify attachment logout script-state safety
shell: bash
run: python3 tools/ci/verify_attachment_scriptstate_logout.py
- name: Verify attachment teleport clone lifecycle safety
shell: bash
run: python3 tools/ci/verify_attachment_teleport_clone.py
- name: Verify offline IM email notification
shell: bash
run: python3 tools/ci/verify_offline_im_email.py
- name: Verify secure offline IM email reply relay
shell: bash
run: python3 tools/ci/verify_offline_im_mail_relay.py
- name: Verify cross-region object messaging
shell: bash
run: python3 tools/ci/verify_object_messaging.py
- name: Verify estate-wide LSL messaging
shell: bash
run: python3 tools/ci/verify_estate_say.py
- name: Verify NodeAgent registry projection
shell: bash
run: dotnet run --configuration Release --project tools/ci/NexNodeRegistryRegression/NexNodeRegistryRegression.csproj
- name: Verify NexMetrics OTLP pipeline
shell: bash
run: dotnet run --configuration Release --project tools/ci/NexMetricsRegression/NexMetricsRegression.csproj
- name: Install native dependencies
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y libgdiplus libc6-dev
- name: Setup .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Generate project files
shell: bash
run: |
chmod +x runprebuild.sh
./runprebuild.sh
- name: Build Release
shell: bash
run: dotnet build --configuration Release OpenSim.sln
- name: Verify NexVerse native assemblies
shell: bash
run: |
test -f bin/NexVerse.Core.dll
test -f bin/NexVerse.Server.Api.dll
test -f bin/NexVerse.RegionModules.dll
- name: Runtime smoke test NV dollar Robust bootstrap
shell: bash
run: |
set -euo pipefail
rm -f /tmp/opengenesislink-economy-ci.db /tmp/opengenesislink-economy-ci.db-journal /tmp/opengenesislink-economy-ci.db-wal /tmp/opengenesislink-economy-ci.db-shm
cd bin
dotnet Robust.dll -inifile Robust.NexEconomy.Tests.ini > ../nexverse-economy-smoke.log 2>&1 &
ROBUST_PID=$!
cleanup() {
kill "$ROBUST_PID" 2>/dev/null || true
wait "$ROBUST_PID" 2>/dev/null || true
rm -f /tmp/opengenesislink-economy-ci.db /tmp/opengenesislink-economy-ci.db-journal /tmp/opengenesislink-economy-ci.db-wal /tmp/opengenesislink-economy-ci.db-shm
}
trap cleanup EXIT
READY=0
for i in $(seq 1 120); do
if [ -f /tmp/opengenesislink-economy-ci.db ]; then
if python3 - <<'PY'
import sqlite3
path = "/tmp/opengenesislink-economy-ci.db"
con = sqlite3.connect(path, timeout=1)
try:
tables = {
row[0]
for row in con.execute(
"SELECT name FROM sqlite_master WHERE type='table'"
)
}
required = {
"ogl_ledger_schema",
"ogl_ledger_accounts",
"ogl_ledger_transactions",
"ogl_ledger_postings",
"ogl_ledger_account_state",
"ogl_ledger_account_events",
"ogl_ledger_virtual_accounts",
"ogl_economy_transfer_policies",
"ogl_economy_payment_requests",
"ogl_economy_commerce_orders",
"ogl_economy_land_listings",
"ogl_economy_land_leases",
}
assert required.issubset(tables), (required, tables)
version = con.execute(
"SELECT MAX(version) FROM ogl_ledger_schema"
).fetchone()[0]
assert version == 4, version
assert con.execute(
"SELECT COUNT(*) FROM ogl_ledger_accounts"
).fetchone()[0] == 0
assert con.execute(
"SELECT COUNT(*) FROM ogl_ledger_transactions"
).fetchone()[0] == 0
assert con.execute(
"SELECT COUNT(*) FROM ogl_ledger_postings"
).fetchone()[0] == 0
assert con.execute(
"SELECT COUNT(*) FROM ogl_ledger_account_state"
).fetchone()[0] == 0
assert con.execute(
"SELECT COUNT(*) FROM ogl_ledger_account_events"
).fetchone()[0] == 0
assert con.execute(
"SELECT COUNT(*) FROM ogl_ledger_virtual_accounts"
).fetchone()[0] == 0
for table in (
"ogl_economy_transfer_policies",
"ogl_economy_payment_requests",
"ogl_economy_commerce_orders",
"ogl_economy_land_listings",
"ogl_economy_land_leases",
):
assert con.execute(
"SELECT COUNT(*) FROM " + table
).fetchone()[0] == 0
finally:
con.close()
PY
then
READY=1
break
fi
fi
if ! kill -0 "$ROBUST_PID" 2>/dev/null; then
echo "::error::Robust exited before the NV dollar ledger schema became ready."
cat ../nexverse-economy-smoke.log
exit 1
fi
sleep 0.25
done
if [ "$READY" -ne 1 ]; then
echo "::error::NV dollar ledger schema did not become ready."
cat ../nexverse-economy-smoke.log
exit 1
fi
grep -F '[NEX-ECONOMY]: NV$-Ledger aktiv mit Provider sqlite' ../nexverse-economy-smoke.log
- name: Runtime regression local secret env loading
shell: bash
run: dotnet run --configuration Release --project tools/ci/NexRuntimeSecretRegression/NexRuntimeSecretRegression.csproj
- name: Runtime smoke test successful simulator login placement
shell: bash
run: bash tools/ci/smoke_login_placement.sh
- name: Runtime smoke test Hypergrid HomeAgent Gatekeeper login
shell: bash
run: bash tools/ci/smoke_hypergrid_login.sh
- name: Runtime regression LSL XML-RPC RemoteData compatibility
shell: bash
run: dotnet run --configuration Release --project tools/ci/XmlRpcRemoteDataRegression/XmlRpcRemoteDataRegression.csproj
- name: Verify NexVerse version
shell: bash
run: |
grep -F 'public const string ProductName = "OpenGenesisLINK";' OpenSim/Framework/VersionInfo.cs
grep -F 'public const string VersionNumber = "0.9.3.10";' OpenSim/Framework/VersionInfo.cs
grep -F 'public const string AssemblyVersionNumber = "0.9.3.10";' OpenSim/Framework/VersionInfo.cs
grep -F 'public const Flavour VERSION_FLAVOUR = Flavour.Dev;' OpenSim/Framework/VersionInfo.cs
grep -F 'return global::OpenSim.VersionInfo.ProductName;' OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
grep -F 'private string m_lsl_shard = global::OpenSim.VersionInfo.ProductName;' OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs
grep -F 'public const string MilestoneVersion = "0.9.3.10";' NexVerse/Core/NexVersePlatform.cs
grep -F 'Development checkpoint status: completed 3 October 2026' doc/NexVerse/CHECKPOINT_0.9.3.2.md
grep -F '36/36 explicit checklist items completed' doc/NexVerse/CHECKPOINT_0.9.3.2.md
- name: Runtime smoke test LLLogin protocol
shell: bash
run: bash tools/ci/smoke_lllogin_protocol.sh
- name: Runtime smoke test World API
shell: bash
run: |
set -euo pipefail
cd bin
dotnet Robust.dll -inifile Robust.NexVerseApi.Tests.ini > ../nexverse-api-smoke.log 2>&1 &
ROBUST_PID=$!
cleanup() {
kill "$ROBUST_PID" 2>/dev/null || true
wait "$ROBUST_PID" 2>/dev/null || true
}
trap cleanup EXIT
READY=0
# Robust startup time varies on shared CI runners after full native builds.
# Give the control plane 30 seconds while still failing immediately if the process exits.
for i in $(seq 1 120); do
if curl --silent --fail --max-time 2 http://127.0.0.1:19090/api/v1/health > /tmp/nexverse-health.json; then
READY=1
break
fi
if ! kill -0 "$ROBUST_PID" 2>/dev/null; then
echo "::error::Robust exited before World API became ready."
cat ../nexverse-api-smoke.log
exit 1
fi
sleep 0.25
done
if [ "$READY" -ne 1 ]; then
echo "::error::World API did not become ready."
cat ../nexverse-api-smoke.log
exit 1
fi
grep -F '"status": "ok"' /tmp/nexverse-health.json
curl --silent --fail --max-time 2 http://127.0.0.1:19090/api/v1/version > /tmp/nexverse-version.json
grep -F '"server_version": "OpenGenesisLINK 0.9.3.10 Dev"' /tmp/nexverse-version.json
grep -F '"api_version": "v1"' /tmp/nexverse-version.json
grep -F '"language": "de-DE"' /tmp/nexverse-version.json
curl --silent --fail --max-time 2 http://127.0.0.1:19090/api/v1/openapi.json > /tmp/nexverse-openapi.json
grep -F '"openapi": "3.1.0"' /tmp/nexverse-openapi.json
python3 - <<'PY'
import json
with open("/tmp/nexverse-openapi.json", "r", encoding="utf-8") as handle:
doc = json.load(handle)
schemas = doc["components"]["schemas"]
for required in (
"Error",
"Pagination",
"User",
"Region",
"GridRegionPlacement",
"GridCell",
"GridLayoutResponse",
"GridCellResponse",
"GridPlacementValidationResponse",
"NodeRegion",
"Node",
"NodeListResponse",
"NodeResponse",
"InventoryPermissions",
"InventoryFolder",
"InventoryItem",
"InventoryTreeResponse",
"InventoryFolderContentResponse",
"InventoryItemResponse",
"InventorySearchScan",
"InventorySearchResponse",
"InventoryItemCreateRequest",
"InventoryItemCreateResponse",
"InventoryLinkCreateRequest",
"InventoryLinkCreateResponse",
"InventoryItemCopyRequest",
"InventoryItemCopyResponse",
"InventoryRestoreRequest",
"InventoryFolderRestoreResponse",
"InventoryItemRestoreResponse",
"Estate",
"EstateListResponse",
"EstateResponse",
"EstatePolicies",
"EstateManagement",
"EstateCreateRequest",
"EstateUpdateRequest",
"EstateManagementResponse",
"EstateRegionAssignmentResponse",
"RegionCreateRequest",
"RegionPlacementRequest",
"RegionLifecycleRequest",
"RegionOperation",
"RegionMutationAcceptedResponse",
"RegionOperationResponse",
"UserCreateRequest",
"UserCreateResponse",
"ApiKey",
"AuditEvent",
):
assert required in schemas, f"missing OpenAPI schema: {required}"
user_post = doc["paths"]["/api/v1/users"]["post"]
assert user_post["requestBody"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/UserCreateRequest"
assert user_post["responses"]["201"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/UserCreateResponse"
user_schema = schemas["User"]
for required in ("username", "display_name", "is_display_name_default"):
assert required in user_schema["required"], f"User schema missing required display-name field: {required}"
assert user_schema["properties"]["display_name"]["maxLength"] == 31
assert user_schema["properties"]["display_name_changed"]["minimum"] == 0
assert user_schema["properties"]["display_name_next_update"]["minimum"] == 0
assert schemas["UserUpdateRequest"]["properties"]["display_name"]["maxLength"] == 31
estates_get = doc["paths"]["/api/v1/estates"]["get"]
assert estates_get["x-nexverse-scope"] == "estates:read"
assert estates_get["responses"]["200"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/EstateListResponse"
assert {p["name"] for p in estates_get["parameters"]} == {"q", "owner_id", "limit", "offset"}
assert schemas["Estate"]["required"] == ["estate_id", "name", "owner_id", "parent_estate_id", "region_count"]
estate_get = doc["paths"]["/api/v1/estates/{estateId}"]["get"]
assert estate_get["x-nexverse-scope"] == "estates:read"
assert estate_get["responses"]["200"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/EstateResponse"
assert [p["name"] for p in estate_get["parameters"]] == ["estateId"]
assert estate_get["parameters"][0]["in"] == "path" and estate_get["parameters"][0]["required"]
estate_post = doc["paths"]["/api/v1/estates"]["post"]
assert estate_post["x-nexverse-scope"] == "estates:manage"
assert estate_post["requestBody"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/EstateCreateRequest"
assert estate_post["responses"]["201"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/EstateManagementResponse"
estate_patch = doc["paths"]["/api/v1/estates/{estateId}"]["patch"]
assert estate_patch["x-nexverse-scope"] == "estates:manage"
assert estate_patch["requestBody"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/EstateUpdateRequest"
assert estate_patch["responses"]["200"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/EstateManagementResponse"
estate_management = doc["paths"]["/api/v1/estates/{estateId}/management"]["get"]
assert estate_management["x-nexverse-scope"] == "estates:manage"
assert estate_management["responses"]["200"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/EstateManagementResponse"
estate_region_put = doc["paths"]["/api/v1/estates/{estateId}/regions/{regionId}"]["put"]
assert estate_region_put["x-nexverse-scope"] == "estates:manage"
assert estate_region_put["responses"]["200"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/EstateRegionAssignmentResponse"
assert [p["name"] for p in estate_region_put["parameters"]] == ["estateId", "regionId"]
assert schemas["EstateCreateRequest"]["required"] == ["name", "owner_id"]
for prop in ("managers", "allowed_residents", "banned_residents", "allowed_groups"):
assert schemas["EstateManagement"]["properties"][prop]["type"] == "array"
assert schemas["EstatePolicies"]["properties"]["allow_voice"]["type"] == "boolean"
region_get = doc["paths"]["/api/v1/regions"]["get"]
assert region_get["responses"]["200"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/RegionSearchResponse"
region_post = doc["paths"]["/api/v1/regions"]["post"]
assert region_post["x-nexverse-scope"] == "regions:manage"
assert region_post["requestBody"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/RegionCreateRequest"
assert region_post["responses"]["202"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/RegionMutationAcceptedResponse"
placement_patch = doc["paths"]["/api/v1/regions/{regionId}/placement"]["patch"]
assert placement_patch["x-nexverse-scope"] == "regions:manage"
assert placement_patch["requestBody"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/RegionPlacementRequest"
assert placement_patch["responses"]["202"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/RegionMutationAcceptedResponse"
lifecycle_post = doc["paths"]["/api/v1/regions/{regionId}/lifecycle"]["post"]
assert lifecycle_post["x-nexverse-scope"] == "regions:manage"
assert lifecycle_post["requestBody"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/RegionLifecycleRequest"
assert lifecycle_post["responses"]["202"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/RegionMutationAcceptedResponse"
assert {p["name"] for p in lifecycle_post["parameters"]} == {"regionId", "Idempotency-Key"}
assert schemas["RegionLifecycleRequest"]["properties"]["action"]["enum"] == ["start", "stop", "restart"]
assert schemas["RegionOperation"]["properties"]["operation"]["enum"] == ["create", "move", "start", "stop", "restart"]
operation_get = doc["paths"]["/api/v1/region-operations/{operationId}"]["get"]
assert operation_get["x-nexverse-scope"] == "regions:read"
assert operation_get["responses"]["200"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/RegionOperationResponse"
grid_layout = doc["paths"]["/api/v1/grid/layout"]["get"]
assert grid_layout["x-nexverse-scope"] == "regions:read"
assert grid_layout["responses"]["200"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/GridLayoutResponse"
assert {p["name"] for p in grid_layout["parameters"]} == {"min_x", "max_x", "min_y", "max_y"}
assert all(p["schema"]["type"] == "integer" for p in grid_layout["parameters"])
grid_cell = doc["paths"]["/api/v1/grid/cells/{x}/{y}"]["get"]
assert grid_cell["responses"]["200"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/GridCellResponse"
assert [p["name"] for p in grid_cell["parameters"]] == ["x", "y"]
assert all(p["in"] == "path" and p["required"] for p in grid_cell["parameters"])
placement = doc["paths"]["/api/v1/grid/validate-placement"]["get"]
assert placement["responses"]["200"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/GridPlacementValidationResponse"
assert {p["name"] for p in placement["parameters"]} == {"x", "y", "size_x", "size_y"}
assert schemas["GridCell"]["properties"]["status"]["enum"] == ["free", "occupied", "reserved", "conflict"]
assert schemas["GridRegionPlacement"]["properties"]["size_x"]["maximum"] == 4096
for field in ("grid_x", "grid_y", "world_x", "world_y"):
assert field in schemas["Region"]["required"], f"Region schema missing coordinate: {field}"
assert schemas["Region"]["properties"][field]["type"] == "integer"
assert "node_id" in schemas["GridRegionPlacement"]["properties"]
assert "node_state" in schemas["GridRegionPlacement"]["properties"]
assert schemas["Node"]["properties"]["managed_region_commands"]["type"] == "boolean"
assert schemas["Node"]["properties"]["cross_region_object_messaging"]["type"] == "boolean"
assert schemas["Node"]["properties"]["cross_owner_object_messaging"]["type"] == "boolean"
assert schemas["Node"]["properties"]["object_messages_per_second"]["maximum"] == 200
assert schemas["Node"]["properties"]["object_message_max_age_seconds"]["maximum"] == 300
nodes_get = doc["paths"]["/api/v1/nodes"]["get"]
assert nodes_get["x-nexverse-scope"] == "simulators:read"
assert nodes_get["responses"]["200"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/NodeListResponse"
node_get = doc["paths"]["/api/v1/nodes/{nodeId}"]["get"]
assert node_get["x-nexverse-scope"] == "simulators:read"
assert node_get["responses"]["200"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/NodeResponse"
assert [p["name"] for p in node_get["parameters"]] == ["nodeId"]
assert node_get["parameters"][0]["in"] == "path" and node_get["parameters"][0]["required"]
assert schemas["Node"]["properties"]["state"]["enum"] == ["online", "stale", "offline"]
inventory_search = doc["paths"]["/api/v1/inventory/search"]["get"]
assert inventory_search["x-nexverse-scope"] == "inventory:read"
assert [p["name"] for p in inventory_search["parameters"]] == ["owner_id", "q", "limit"]
inventory_create = doc["paths"]["/api/v1/inventory/items"]["post"]
assert inventory_create["x-nexverse-scope"] == "admin:*"
assert inventory_create["requestBody"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/InventoryItemCreateRequest"
assert inventory_create["responses"]["201"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/InventoryItemCreateResponse"
inventory_links = doc["paths"]["/api/v1/inventory/links"]["post"]
assert inventory_links["x-nexverse-scope"] == "inventory:write"
assert inventory_links["requestBody"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/InventoryLinkCreateRequest"
assert inventory_links["responses"]["201"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/InventoryLinkCreateResponse"
assert schemas["InventorySearchResponse"]["properties"]["scan"]["$ref"] == "#/components/schemas/InventorySearchScan"
assert schemas["InventoryItem"]["properties"]["permissions"]["$ref"] == "#/components/schemas/InventoryPermissions"
inventory_copy = doc["paths"]["/api/v1/inventory/items/copy"]["post"]
assert inventory_copy["requestBody"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/InventoryItemCopyRequest"
folder_restore = doc["paths"]["/api/v1/inventory/folders/{folderId}/restore"]["post"]
assert folder_restore["requestBody"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/InventoryRestoreRequest"
item_restore = doc["paths"]["/api/v1/inventory/items/{itemId}/restore"]["post"]
assert item_restore["responses"]["200"]["content"]["application/json"]["schema"]["$ref"] == "#/components/schemas/InventoryItemRestoreResponse"
for inventory_path in (
"/api/v1/inventory/tree",
"/api/v1/inventory/folders",
"/api/v1/inventory/folders/{folderId}",
"/api/v1/inventory/items",
"/api/v1/inventory/items/{itemId}",
"/api/v1/inventory/items/copy",
"/api/v1/inventory/folders/{folderId}/restore",
"/api/v1/inventory/items/{itemId}/restore",
"/api/v1/inventory/links",
"/api/v1/inventory/lost-and-found",
"/api/v1/inventory/trash/empty",
):
assert inventory_path in doc["paths"], f"Inventory OpenAPI path missing: {inventory_path}"
for discovery_path in (
"/api/v1/search",
"/api/v1/places",
"/api/v1/places/{placeId}",
"/api/v1/events",
"/api/v1/classifieds",
"/api/v1/land-portal",
"/api/v1/land-portal/owned",
"/api/v1/destinations",
"/api/v1/destinations/categories",
"/api/v1/destinations/{destinationId}",
"/api/v1/destinations/{destinationId}/visit",
"/api/v1/destinations/{destinationId}/moderation",
):
assert discovery_path in doc["paths"], f"Discovery OpenAPI path missing: {discovery_path}"
assert doc["paths"]["/api/v1/search"]["get"]["security"] == []
assert doc["paths"]["/api/v1/places"]["get"]["security"] == []
assert doc["paths"]["/api/v1/places"]["post"]["x-nexverse-scope"] == "discovery:manage"
assert doc["paths"]["/api/v1/destinations"]["post"]["x-nexverse-scope"] == "discovery:submit"
assert doc["paths"]["/api/v1/destinations/{destinationId}/moderation"]["post"]["x-nexverse-scope"] == "discovery:manage"
assert doc["components"]["securitySchemes"]["apiKeyAuth"]["name"] == "X-NexVerse-Api-Key"
assert doc["x_nexverse_idempotency"]["protected_operations"] == [
"POST /api/v1/users",
"POST /api/v1/regions",
"PATCH /api/v1/regions/{regionId}/placement",
"POST /api/v1/regions/{regionId}/lifecycle",
]
assert "/api/v1/docs" in doc["paths"]
assert doc["x_nexverse_language"] == "de-DE"
assert doc["x_nexverse_version_history"][0]["api_version"] == "v1"
assert doc["x_nexverse_version_history"][0]["server_line"] == "0.9.3.10"
assert doc["x_nexverse_version_history"][0]["status"] == "development"
assert doc["x_nexverse_version_history"][1]["server_line"] == "0.9.3.8"
assert doc["x_nexverse_version_history"][1]["status"] == "release"
assert doc["x_nexverse_version_history"][2]["server_line"] == "0.9.3.7"
assert doc["x_nexverse_version_history"][2]["status"] == "completed"
assert doc["x_nexverse_version_history"][3]["server_line"] == "0.9.3.6"
assert doc["x_nexverse_version_history"][3]["status"] == "completed"
assert doc["x_nexverse_version_history"][4]["server_line"] == "0.9.3.5"
assert doc["x_nexverse_version_history"][4]["status"] == "completed"
assert doc["x_nexverse_version_history"][5]["server_line"] == "0.9.3.4"
assert doc["x_nexverse_version_history"][5]["status"] == "release"
assert doc["x_nexverse_changelog"]
assert doc["x_nexverse_changelog"][0]["version"] == "0.9.3.3"
assert "0.9.3.1 Dev" not in json.dumps(doc, ensure_ascii=False)
assert "Resident and Hypergrid statistics dashboard" not in json.dumps(doc, ensure_ascii=False)
assert "Legacy Cleanup and Platform Foundation" not in json.dumps(doc, ensure_ascii=False)
display_change = doc["x_nexverse_changelog"][0]
assert display_change["status"] == "implemented"
assert display_change["category"] == "identity"
assert display_change["title"] == "Persistente Display-Name-Grundlage"
assert "/api/v1/users/{principalId}" in display_change["endpoints"]
dev_start = next(item for item in doc["x_nexverse_changelog"] if item["title"] == "NexVerse 0.9.3.3 Dev gestartet")
assert dev_start["status"] == "development"
estate_change = next(item for item in doc["x_nexverse_changelog"] if item["title"] == "Estate-Verwaltung: Owner, Listen, Policies und Regionszuordnung")
assert estate_change["status"] == "implemented"
assert "/api/v1/estates" in estate_change["endpoints"]
assert "/api/v1/estates/{estateId}" in estate_change["endpoints"]
assert "/api/v1/estates/{estateId}/management" in estate_change["endpoints"]
assert "/api/v1/estates/{estateId}/regions/{regionId}" in estate_change["endpoints"]
roadmap = doc["x_nexverse_roadmap"]
assert roadmap["current_milestone"] == "0.9.3.10"
assert roadmap["current_codename"] == ""
milestones = {item["version"]: item for item in roadmap["milestones"]}
assert milestones["0.9.3.1"]["status"] == "released"
assert milestones["0.9.3.2"]["status"] == "completed"
assert milestones["0.9.3.2"]["checklist"] == {"completed": 36, "total": 36, "open": 0}
assert milestones["0.9.3.3"]["status"] == "completed"
assert milestones["0.9.3.4"]["status"] == "released"
assert milestones["0.9.3.5"]["status"] == "completed"
assert milestones["0.9.3.5"]["checklist"] == {"completed": 83, "total": 83, "open": 0}
assert milestones["0.9.3.6"]["status"] == "completed"
assert milestones["0.9.3.7"]["status"] == "completed"
assert milestones["0.9.3.8"]["status"] == "released"
assert milestones["0.9.3.9"]["status"] == "started"
assert milestones["0.9.3.10"]["status"] == "started"
from pathlib import Path
roadmap_text = Path("../doc/NexVerse/ROADMAP.md").read_text(encoding="utf-8")
sections = {}
current = None
for line in roadmap_text.splitlines():
if line.startswith("# Milestone "):
current = line[len("# Milestone "):].strip()
sections[current] = {"completed": 0, "total": 0}
continue
if current and (line.startswith("- [x]") or line.startswith("- [X]") or line.startswith("- [ ]")):
sections[current]["total"] += 1
if line.startswith("- [x]") or line.startswith("- [X]"):
sections[current]["completed"] += 1
for source_name, api_version in (
("0.9.3.1 — NEXJAST", "0.9.3.1"),
("0.9.3.2", "0.9.3.2"),
("0.9.3.3", "0.9.3.3"),
("0.9.3.5", "0.9.3.5"),
):
published = milestones[api_version]["checklist"]
parsed = sections[source_name]
assert published["completed"] == parsed["completed"]
assert published["total"] == parsed["total"]
assert published["open"] == parsed["total"] - parsed["completed"]
stats_get = doc["paths"]["/api/v1/statistics/summary"]["get"]
assert stats_get["x-nexverse-scope"] == "statistics:read"
assert {} in stats_get["security"], "statistics aggregate mode must permit anonymous access"
stats_schema = schemas["StatisticsSummaryResponse"]
for required in ("detail_level", "protected_details"):
assert required in stats_schema["required"], f"statistics schema missing required field: {required}"
assert doc["paths"]["/api/v1/users"]["post"]["x-nexverse-audience"] == ["admin"]
assert doc["paths"]["/api/v1/nodes"]["get"]["x-nexverse-audience"] == ["admin", "service"]
assert doc["paths"]["/api/v1/economy/balance"]["get"]["x-nexverse-audience"] == ["citizen", "admin", "service"]
assert doc["paths"]["/api/v1/inventory/tree"]["get"]["x-nexverse-audience"] == ["citizen", "admin", "service"]
assert "/api/v1/chatgpt-instructions.md" in doc["paths"]
assert "/api/v1/chatgpt-buergerportal.md" in doc["paths"]
assert "/api/v1/chatgpt-admin.md" in doc["paths"]
assert "x-nexverse-ai-instruction" in doc["paths"]["/api/v1/users"]["post"]
assert "x-nexverse-security-constraints" in doc["paths"]["/api/v1/users"]["post"]
print("NexVerse OpenAPI 3.1 schema contract smoke: OK")
PY
STATS_STATUS=$(curl --silent --max-time 2 -o /tmp/nexverse-statistics.json -w '%{http_code}' http://127.0.0.1:19090/api/v1/statistics/summary)
test "$STATS_STATUS" = "503"
grep -F '"error": "statistics_data_unavailable"' /tmp/nexverse-statistics.json
if [ "$STATS_STATUS" = "404" ]; then
echo "::error::Statistics route disappeared while privileged endpoints are disabled."
exit 1
fi
curl --silent --fail --max-time 2 http://127.0.0.1:19090/api/v1/docs > /tmp/nexverse-api-docs.html
grep -F 'NexVerse Welt-API-Kontrollzentrum' /tmp/nexverse-api-docs.html
grep -F 'Was ist neu?' /tmp/nexverse-api-docs.html
grep -F 'NexVerse-Entwicklungsplan' /tmp/nexverse-api-docs.html
grep -F 'Was ist neu?' /tmp/nexverse-api-docs.html
grep -F 'NexVerse-Entwicklungsplan' /tmp/nexverse-api-docs.html
grep -F 'x_nexverse_changelog' /tmp/nexverse-api-docs.html
grep -F 'x_nexverse_roadmap' /tmp/nexverse-api-docs.html
grep -F '/api/v1/openapi.json' /tmp/nexverse-api-docs.html
grep -F 'ChatGPT / Portale' /tmp/nexverse-api-docs.html
grep -F '/api/v1/chatgpt-instructions.md' /tmp/nexverse-api-docs.html
grep -F '/api/v1/chatgpt-buergerportal.md' /tmp/nexverse-api-docs.html
grep -F '/api/v1/chatgpt-admin.md' /tmp/nexverse-api-docs.html
grep -F 'data-audience-target="citizen"' /tmp/nexverse-api-docs.html
grep -F 'data-endpoint-audience="admin"' /tmp/nexverse-api-docs.html
grep -F 'Interaktiver Grid-Planer' /tmp/nexverse-api-docs.html
grep -F '/api/v1/grid/layout' /tmp/nexverse-api-docs.html
grep -F '/api/v1/grid/validate-placement' /tmp/nexverse-api-docs.html
grep -F 'regions:read' /tmp/nexverse-api-docs.html
grep -F 'Simulator-Nodes' /tmp/nexverse-api-docs.html
grep -F '/api/v1/nodes' /tmp/nexverse-api-docs.html
grep -F 'simulators:read' /tmp/nexverse-api-docs.html
grep -F 'Region erstellen' /tmp/nexverse-api-docs.html
grep -F 'createGridRegion' /tmp/nexverse-api-docs.html
grep -F 'moveGridRegion' /tmp/nexverse-api-docs.html
grep -F 'gridRegionSearch' /tmp/nexverse-api-docs.html
grep -F 'jumpGridRegion' /tmp/nexverse-api-docs.html
grep -F 'startGridRegion' /tmp/nexverse-api-docs.html
grep -F 'stopGridRegion' /tmp/nexverse-api-docs.html
grep -F 'restartGridRegion' /tmp/nexverse-api-docs.html
grep -F 'loadGridEstates' /tmp/nexverse-api-docs.html
grep -F 'gridEstateOptions' /tmp/nexverse-api-docs.html
grep -F 'loadEstateManagement' /tmp/nexverse-api-docs.html
grep -F 'createEstateManagement' /tmp/nexverse-api-docs.html
grep -F 'updateEstateManagement' /tmp/nexverse-api-docs.html
grep -F 'assignEstateRegion' /tmp/nexverse-api-docs.html
grep -F 'estates:read' /tmp/nexverse-api-docs.html
grep -F 'estates:manage' /tmp/nexverse-api-docs.html
grep -F '/api/v1/estates' /tmp/nexverse-api-docs.html
grep -F '/api/v1/regions/' /tmp/nexverse-api-docs.html
grep -F '/lifecycle' /tmp/nexverse-api-docs.html
grep -F '/api/v1/region-operations/' /tmp/nexverse-api-docs.html
if grep -F 'localStorage' /tmp/nexverse-api-docs.html; then
echo "::error::API Control Center must not persist credentials in localStorage."
exit 1
fi
curl --silent --fail --max-time 2 http://127.0.0.1:19090/api/v1/chatgpt-instructions.md > /tmp/nexverse-chatgpt.md
grep -F 'NexVerse World API - ChatGPT Gesamtanweisung' /tmp/nexverse-chatgpt.md
grep -F 'Buergerportal / Einwohner-Selbstbedienung' /tmp/nexverse-chatgpt.md
grep -F '## Adminbereich' /tmp/nexverse-chatgpt.md
grep -F '/api/v1/openapi.json' /tmp/nexverse-chatgpt.md
curl --silent --fail --max-time 2 http://127.0.0.1:19090/api/v1/chatgpt-buergerportal.md > /tmp/nexverse-chatgpt-citizen.md
grep -F 'ChatGPT Anweisung Buergerportal' /tmp/nexverse-chatgpt-citizen.md
grep -F 'admin:* gehoeren nicht in das Buergerportal' /tmp/nexverse-chatgpt-citizen.md
curl --silent --fail --max-time 2 http://127.0.0.1:19090/api/v1/chatgpt-admin.md > /tmp/nexverse-chatgpt-admin.md
grep -F 'ChatGPT Anweisung Adminbereich' /tmp/nexverse-chatgpt-admin.md
grep -F 'Administrative Mutationen nur mit ausdruecklicher Benutzerabsicht' /tmp/nexverse-chatgpt-admin.md
ledger-db-matrix:
name: NV dollar live database matrix
runs-on: ubuntu-latest
services:
mariadb:
image: mariadb:11.4
env:
MARIADB_ROOT_PASSWORD: ledgerroot
MARIADB_DATABASE: ogl_ledger_ci
MARIADB_USER: ledger
MARIADB_PASSWORD: ledgerpass
ports:
- 33306:3306
options: >-
--health-cmd="healthcheck.sh --connect --innodb_initialized"
--health-interval=5s
--health-timeout=5s
--health-retries=24
postgres:
image: postgres:16
env:
POSTGRES_DB: ogl_ledger_ci
POSTGRES_USER: ledger
POSTGRES_PASSWORD: ledgerpass
ports:
- 35432:5432
options: >-
--health-cmd="pg_isready -U ledger -d ogl_ledger_ci"
--health-interval=5s
--health-timeout=5s
--health-retries=24
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Verify bundled database providers
shell: bash
run: |
test -f bin/MySql.Data.dll
test -f bin/Npgsql.dll
- name: Run live NV dollar ledger matrix
shell: bash
env:
NEX_LEDGER_MARIADB: "Data Source=127.0.0.1;Port=33306;Database=ogl_ledger_ci;User ID=ledger;Password=ledgerpass;Old Guids=true;SslMode=None;"
NEX_LEDGER_POSTGRESQL: "Host=127.0.0.1;Port=35432;Database=ogl_ledger_ci;Username=ledger;Password=ledgerpass;SSL Mode=Disable;"
run: dotnet run --configuration Release --project tools/ci/NexLedgerSqlMatrixRegression/NexLedgerSqlMatrixRegression.csproj