1615 lines
77 KiB
YAML
1615 lines
77 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 immutable stable release gating on development main
|
||
shell: bash
|
||
run: python3 tools/ci/verify_stable_release_gate.py
|
||
|
||
- name: Verify current-main Gen1 ZIP publisher and secret-safe packaging
|
||
shell: bash
|
||
run: |
|
||
python3 tools/ci/verify_gen1_snapshot_release.py
|
||
python3 tools/release/ogl_gen1_snapshot_zip.py --self-test
|
||
|
||
- name: Test fail-closed OpenGenesisLINK 0.9.3.10 release evidence gate
|
||
shell: bash
|
||
run: |
|
||
python3 -m unittest discover -s tools/ci -p 'test_verify_09310_release_readiness.py' -v
|
||
python3 -m unittest discover -s tools/diagnostics -p 'test_ogl_09310_operator_preflight.py' -v
|
||
# Do not invoke an empty operator manifest as a simulated PASS:
|
||
# the real RC1/Stable evidence check is a separate manual gate.
|
||
|
||
- name: Regression-test 0.9.3.12 RC1 release evidence gate
|
||
shell: bash
|
||
run: |
|
||
python3 -m unittest discover -s tools/ci -p 'test_09312_release_gate.py' -v
|
||
# A blank manifest MUST NOT be accepted as an RC1 sign-off.
|
||
directory="$(mktemp -d)"
|
||
trap 'rm -rf "$directory"' EXIT
|
||
python3 tools/release/ogl_09312_gate.py init --manifest "$directory/manifest.json"
|
||
python3 tools/release/ogl_09312_gate.py inventory --manifest "$directory/manifest.json"
|
||
if python3 tools/release/ogl_09312_gate.py rc1 --manifest "$directory/manifest.json"; then
|
||
echo "::error::0.9.3.12 RC1 gate accepted empty evidence"
|
||
exit 1
|
||
fi
|
||
|
||
- name: Verify OpenGenesisLINK protected admin Control Center
|
||
shell: bash
|
||
run: python3 tools/ci/verify_ogl_docs_admin_ui.py
|
||
- name: Verify World API Sci-Fi admin dashboard navigation and GitHub releases
|
||
shell: bash
|
||
run: python3 tools/ci/verify_worldapi_scifi_admin_center.py
|
||
- name: Verify OpenGenesisLINK public HTTP promo landing and protocol compatibility
|
||
shell: bash
|
||
run: python3 tools/ci/verify_ogl_public_server_home.py
|
||
|
||
- name: Verify OGL.API canonical build, AdminLTE control center and viewer metrics
|
||
shell: bash
|
||
run: python3 tools/ci/verify_ogl_api_adminlte_viewers.py
|
||
|
||
- name: Verify operator CRUD, Audit and NodeId daily log relay
|
||
shell: bash
|
||
run: python3 tools/ci/verify_ogl_operator_logs_admin.py
|
||
|
||
|
||
- name: Verify OpenGenesisLINK 0.9.3.12 dashboard and diagnostic updates
|
||
shell: bash
|
||
run: python3 tools/ci/verify_ogl_worldapi_09312_ux.py
|
||
|
||
- name: Verify Hypergrid friend online status after reconnect
|
||
shell: bash
|
||
run: python3 tools/ci/verify_hg_friends_reconnect_09312.py
|
||
|
||
- name: Verify Feature Control node-specific policy routing
|
||
shell: bash
|
||
run: python3 tools/ci/verify_ogl_feature_policy_routing.py
|
||
|
||
- name: Verify temporary legacy HG inventory opt-in and fail-closed default
|
||
shell: bash
|
||
run: python3 tools/ci/verify_hg_inventory_security_09312.py
|
||
|
||
- name: Security - remote asset deletion must be absent
|
||
shell: bash
|
||
run: python3 tools/ci/verify_no_remote_asset_delete_09312.py
|
||
|
||
- name: Verify LevelUpload precedence for UDP and CAPS
|
||
shell: bash
|
||
run: |
|
||
set -euo pipefail
|
||
python3 tools/ci/verify_asset_upload_level_consistency.py
|
||
dotnet run --configuration Release --project tools/ci/AssetUploadLevelRegression/AssetUploadLevelRegression.csproj
|
||
|
||
- 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: OGL LSL 0.9.3.11 contract inventory and regression
|
||
shell: bash
|
||
run: |
|
||
mkdir -p /tmp/ogl-lsl-parity
|
||
python3 tools/lsl/lsl_matrix.py --verify --output /tmp/ogl-lsl-parity/lsl-matrix.json
|
||
python3 -m unittest discover -s tools/ci -p 'test_lsl_matrix.py' -v
|
||
|
||
- name: Upload LSL contract inventory
|
||
if: always()
|
||
uses: actions/upload-artifact@v4
|
||
with:
|
||
name: ogl-lsl-09311-contract-matrix
|
||
path: /tmp/ogl-lsl-parity/lsl-matrix.json
|
||
if-no-files-found: ignore
|
||
retention-days: 30
|
||
|
||
- name: Verify native OGL region dimensions LSL extension
|
||
shell: bash
|
||
run: python3 tools/ci/verify_ogl_region_dimensions.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 Stadt-NexVerse Berlin login DST configuration
|
||
shell: bash
|
||
run: python3 tools/ci/verify_nexverse_berlin_dst.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 Stadtportal avatar registration and IAR anti-flood policy
|
||
shell: bash
|
||
run: |
|
||
python3 tools/ci/verify_portal_registration_iar_preflight.py
|
||
dotnet run --configuration Release --project tools/ci/OglIarPreflightRegression/OglIarPreflightRegression.csproj
|
||
|
||
- name: Verify authenticated portal self-account deletion
|
||
shell: bash
|
||
run: python3 tools/ci/verify_portal_self_account_delete.py
|
||
|
||
- name: Verify OpenGenesisLINK IAR management foundation
|
||
shell: bash
|
||
run: python3 tools/ci/verify_iar_management.py
|
||
|
||
- name: Verify IAR console progress and legacy preflight wiring
|
||
shell: bash
|
||
run: python3 tools/ci/verify_iar_progress.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 IAR self-service bounded transfer, ownership and ETA
|
||
shell: bash
|
||
run: |
|
||
set -euo pipefail
|
||
python3 tools/ci/verify_iar_self_service.py
|
||
dotnet run --configuration Release --project tools/ci/OglIarSelfServiceRegression/OglIarSelfServiceRegression.csproj
|
||
|
||
- 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 quiet ROBUST audit console and durable audit separation
|
||
shell: bash
|
||
run: python3 tools/ci/verify_audit_console.py
|
||
|
||
- 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 existing World API key scope editor and browser syntax
|
||
shell: bash
|
||
run: python3 tools/ci/verify_worldapi_key_scope_editor.py
|
||
|
||
- 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: Test personal World bearer grant/re-login behavior (Issue 289)
|
||
shell: bash
|
||
run: |
|
||
set -euo pipefail
|
||
dotnet run --configuration Release --project tools/ci/NexPersonalScopeRegression/NexPersonalScopeRegression.csproj
|
||
python3 tools/ci/verify_world_personal_scopes_issue_289.py
|
||
|
||
- name: Verify Region Control Plane mutations
|
||
shell: bash
|
||
run: python3 tools/ci/verify_region_mutations.py
|
||
|
||
- name: Verify graceful avatar relocation before region restart and simulator shutdown
|
||
shell: bash
|
||
run: python3 tools/ci/verify_avatar_evacuation.py
|
||
|
||
- name: Verify World API public statistics degraded-mode correctness
|
||
shell: bash
|
||
run: python3 tools/ci/verify_statistics_fallback.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 R287 World API profile, discovery and groups security
|
||
shell: bash
|
||
run: python3 tools/ci/verify_r287_portal_api.py
|
||
|
||
- name: Verify World API Media API group/profile privacy and routing
|
||
shell: bash
|
||
run: python3 tools/ci/verify_media_api.py
|
||
|
||
- name: Verify World API OpenAPI and ChatGPT MD consistency
|
||
shell: bash
|
||
run: python3 tools/ci/verify_worldapi_chatgpt_openapi.py
|
||
|
||
- name: Verify Chapter 11 NexGroups and NexExperiences
|
||
shell: bash
|
||
run: python3 tools/ci/verify_nexgroups_experiences.py
|
||
|
||
- name: Verify NexGroups authorization and wallet consistency
|
||
shell: bash
|
||
run: python3 tools/ci/verify_nexgroups_security.py
|
||
|
||
- name: Verify one-click World API group land key issuance
|
||
shell: bash
|
||
run: python3 tools/ci/verify_worldapi_group_land_key_setup.py
|
||
|
||
- name: Verify Firestorm Experience acquire and editor security
|
||
shell: bash
|
||
run: python3 tools/ci/verify_experience_viewer_purchase.py
|
||
|
||
- name: Verify compact simulator INIs and automatic HTTP ports
|
||
shell: bash
|
||
run: python3 tools/ci/verify_opensim_autoports.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 Firestorm groups Land & NV$ packet compatibility
|
||
shell: bash
|
||
run: python3 tools/ci/verify_firestorm_group_land_money.py
|
||
|
||
- name: Verify citizen world map integration
|
||
shell: bash
|
||
run: python3 tools/ci/verify_citizen_world_map.py
|
||
|
||
- name: Verify Stadtportal R409 World API counter-audit
|
||
shell: bash
|
||
run: python3 tools/ci/verify_r409_world_portal_contract.py
|
||
|
||
- name: Verify World API OGLWeather portal contracts
|
||
shell: bash
|
||
run: |
|
||
set -euo pipefail
|
||
python3 tools/ci/verify_world_api_oglweather_portal.py
|
||
|
||
- name: Weather Forecast regression and independent addon build
|
||
shell: bash
|
||
run: |
|
||
set -euo pipefail
|
||
python3 tools/ci/verify_ogl_weather.py
|
||
bash -n addon-modules/OGLWeather/build.sh
|
||
dotnet run --configuration Release --project tools/ci/OglWeatherRegression/OglWeatherRegression.csproj
|
||
bash addon-modules/OGLWeather/build.sh Release
|
||
|
||
- name: Verify OGLEnergy simulator addon contracts and deterministic grid regression
|
||
shell: bash
|
||
run: |
|
||
set -euo pipefail
|
||
python3 tools/ci/verify_ogl_energy.py
|
||
dotnet run --configuration Release --project tools/ci/OglEnergyRegression/OglEnergyRegression.csproj
|
||
|
||
- name: Verify Generation-1 Inworld LSL companion scripts
|
||
shell: bash
|
||
run: |
|
||
set -euo pipefail
|
||
python3 tools/ci/verify_gen1_inworld_lsl_packs.py
|
||
|
||
- name: Regression-test Nex city modules and build independent addons
|
||
shell: bash
|
||
run: |
|
||
set -euo pipefail
|
||
python3 tools/ci/verify_gen1_nex_city_addons.py
|
||
bash -n addon-modules/build-nex-city-addon.sh
|
||
bash -n addon-modules/NexTraffic/build.sh
|
||
bash -n addon-modules/NexTransit/build.sh
|
||
bash -n addon-modules/NexSmartLight/build.sh
|
||
dotnet run --configuration Release --project tools/ci/NexCityAddonsRegression/NexCityAddonsRegression.csproj
|
||
bash addon-modules/NexTraffic/build.sh Release
|
||
bash addon-modules/NexTransit/build.sh Release
|
||
bash addon-modules/NexSmartLight/build.sh Release
|
||
|
||
|
||
- name: Regression-test World API Hypergrid friends and last online
|
||
shell: bash
|
||
run: |
|
||
set -euo pipefail
|
||
python3 tools/ci/verify_worldapi_hg_friend_activity.py
|
||
dotnet run --configuration Release --project tools/ci/NexRelationshipPresenceRegression/NexRelationshipPresenceRegression.csproj
|
||
|
||
- 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: Verify removed OGL Pathfinding does not re-enter 0.9.3.10
|
||
shell: bash
|
||
run: python3 tools/ci/verify_no_ogl_pathfinding.py
|
||
|
||
- name: Regression-test voice and Experiences preflight
|
||
shell: bash
|
||
run: python3 -m unittest discover -s tools/diagnostics -p 'test_ogl_voice_pathfinding_preflight.py' -v
|
||
|
||
- 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: Verify InventoryThumbnailUpload Firestorm capability and asset persistence
|
||
shell: bash
|
||
run: python3 tools/ci/verify_inventory_thumbnail_upload.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 high-speed flight neighbour prefetch
|
||
shell: bash
|
||
run: dotnet run --configuration Release --project tools/ci/FlightNeighbourPrefetchRegression/FlightNeighbourPrefetchRegression.csproj
|
||
|
||
- name: Verify flight crossing velocity hand-off
|
||
shell: bash
|
||
run: python3 tools/ci/verify_cross_region_flight_velocity.py
|
||
|
||
- name: Verify cross-region llListen and NexBus chat forwarding
|
||
shell: bash
|
||
run: |
|
||
python3 tools/ci/verify_cross_region_chat.py
|
||
dotnet run --configuration Release --project tools/ci/CrossRegionChatRegression/CrossRegionChatRegression.csproj
|
||
|
||
- name: Verify estate-wide LSL messaging
|
||
shell: bash
|
||
run: python3 tools/ci/verify_estate_say.py
|
||
|
||
- name: Verify grid-wide cross-estate LSL messaging
|
||
shell: bash
|
||
run: python3 tools/ci/verify_gen1_grid_script_messaging.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 10
|
||
uses: actions/setup-dotnet@v4
|
||
with:
|
||
dotnet-version: '10.0.x'
|
||
|
||
- name: Generate project files
|
||
shell: bash
|
||
run: |
|
||
chmod +x runprebuild.sh
|
||
./runprebuild.sh
|
||
|
||
- name: Verify complete .NET 10 server framework targets and scope
|
||
shell: bash
|
||
run: |
|
||
python3 tools/gen11/verify_net10.py
|
||
python3 tools/ci/verify_gen1_main_net10_scope.py
|
||
|
||
- name: Verify duplicate UseCircuitCode and stale-circuit login guards
|
||
shell: bash
|
||
run: python3 tools/ci/verify_ogl_udp_duplicate_circuits.py
|
||
|
||
- name: Verify 0.9.3.13 extended multi-region visibility and release gates
|
||
shell: bash
|
||
run: python3 tools/ci/verify_ogl_extended_region_visibility.py
|
||
|
||
- name: Verify FastMap updater config and update staging safety
|
||
shell: bash
|
||
run: |
|
||
python3 tools/ci/verify_ogl_fastmap_updater.py
|
||
python3 tools/ci/verify_ogl_empty_assets.py
|
||
python3 -m py_compile tools/ops/ogl-config-example-sync.py tools/ops/ogl-empty-assets-audit.py
|
||
bash -n tools/ops/ogl-node-stage-update.sh
|
||
|
||
- name: Regression-test NPC owner directory across reporting simulators (R617)
|
||
shell: bash
|
||
run: |
|
||
dotnet run --configuration Release --project tools/ci/NexNpcDirectoryRegression/NexNpcDirectoryRegression.csproj
|
||
python3 tools/ci/verify_npc_owner_bridge_r617.py
|
||
|
||
- name: Verify NPC IM archive privacy and MariaDB-only wiring (R620)
|
||
shell: bash
|
||
run: python3 tools/ci/verify_npc_chat_r619.py
|
||
|
||
- name: Regression-test OGL FastMap deferred startup queue
|
||
shell: bash
|
||
run: dotnet run --configuration Release --project tools/ci/OglFastMapStartupRegression/OglFastMapStartupRegression.csproj
|
||
|
||
- name: Regression-test Warp3D Mesh renderer LLSD/zlib visual LOD handling
|
||
shell: bash
|
||
run: dotnet run --configuration Release --project tools/ci/OglWarpMeshRegression/OglWarpMeshRegression.csproj
|
||
|
||
- name: Regression-test LLSD mesh upload fee instances
|
||
shell: bash
|
||
run: dotnet run --configuration Release --project tools/ci/NexMeshUploadFeeRegression/NexMeshUploadFeeRegression.csproj
|
||
|
||
- name: Build Release
|
||
shell: bash
|
||
run: dotnet build --configuration Release OpenSim.sln
|
||
|
||
|
||
- name: Verify patched SQLite dependencies on all AssetService projects
|
||
shell: bash
|
||
run: |
|
||
dotnet restore addons/OGLAssetService.Migration/OGLAssetService.Migration.csproj
|
||
dotnet restore addons/OGLAssetService.Tests/OGLAssetService.Tests.csproj
|
||
python3 tools/ci/verify_sqlite_native_dependency.py --require-addon
|
||
|
||
- name: Smoke-test real .NET 10 ROBUST with isolated loopback HTTP
|
||
shell: bash
|
||
run: python3 tools/gen11/robust_runtime_smoke.py
|
||
|
||
- name: Regression-test .NET 10 Flotsam disk-cache roundtrip and old-format fallback
|
||
shell: bash
|
||
run: dotnet run --configuration Release --project tools/ci/FlotsamCacheNet10Regression/FlotsamCacheNet10Regression.csproj
|
||
|
||
- name: Verify server build includes all five simulator addon DLLs
|
||
shell: bash
|
||
run: |
|
||
set -euo pipefail
|
||
python3 tools/ci/verify_gen1_nex_city_addons.py
|
||
for addon in OGLWeather NexTraffic NexTransit NexSmartLight OGLEnergy; do
|
||
test -s "bin/OpenGenesisLINK.Addons.${addon}.dll" || {
|
||
echo "::error::Release build is missing ${addon} DLL in simulator bin"
|
||
exit 1
|
||
}
|
||
test -s "addons/${addon}/bin/Release/net10.0/OpenGenesisLINK.Addons.${addon}.dll" || {
|
||
echo "::error::Release build is missing ${addon} project output"
|
||
exit 1
|
||
}
|
||
done
|
||
python3 - <<'PY'
|
||
from pathlib import Path
|
||
solution = Path("OpenSim.sln").read_text().replace(chr(92), "/")
|
||
for addon in ("OGLWeather", "NexTraffic", "NexTransit", "NexSmartLight", "OGLEnergy"):
|
||
path = f"addons/{addon}/OpenGenesisLINK.Addons.{addon}.csproj"
|
||
assert path in solution, f"Regenerated solution omitted {addon}"
|
||
print("Release build: five add-on projects and five simulator bin DLLs PASS")
|
||
PY
|
||
|
||
- name: Regression-test World API P0 password recovery against MariaDB
|
||
shell: bash
|
||
run: |
|
||
set -euo pipefail
|
||
docker run --rm -d --name ogl-recovery-mariadb-ci \
|
||
-e MARIADB_ROOT_PASSWORD=ogl_recovery_ci_secret \
|
||
-e MARIADB_DATABASE=ogl_recovery_ci \
|
||
-p 127.0.0.1:33079:3306 mariadb:11.4
|
||
trap 'docker rm -f ogl-recovery-mariadb-ci >/dev/null 2>&1 || true' EXIT
|
||
ready=0
|
||
for attempt in $(seq 1 90); do
|
||
if docker exec ogl-recovery-mariadb-ci mariadb-admin ping \
|
||
-h 127.0.0.1 -u root -pogl_recovery_ci_secret --silent >/dev/null 2>&1; then
|
||
ready=1
|
||
break
|
||
fi
|
||
sleep 1
|
||
done
|
||
if [ "$ready" -ne 1 ]; then
|
||
echo "::error::MariaDB CI instance not ready"
|
||
docker logs ogl-recovery-mariadb-ci
|
||
exit 1
|
||
fi
|
||
export NEX_PASSWORD_RECOVERY_MARIADB="Server=127.0.0.1;Port=33079;Database=ogl_recovery_ci;User ID=root;Password=ogl_recovery_ci_secret;SslMode=None;"
|
||
dotnet run --configuration Release \
|
||
--project tools/ci/NexPasswordRecoveryRegression/NexPasswordRecoveryRegression.csproj
|
||
|
||
- name: Regression-test PBR render-material face deletion
|
||
shell: bash
|
||
run: dotnet run --configuration Release --project tools/ci/OglPbrMaterialRegression/OglPbrMaterialRegression.csproj
|
||
|
||
- name: Runtime regression cross-region llListen delivery (two scenes)
|
||
shell: bash
|
||
run: dotnet run --configuration Release --project tools/ci/CrossRegionListenRuntimeRegression/CrossRegionListenRuntimeRegression.csproj
|
||
|
||
- name: Runtime two-process signed NexBus cross-region llListen
|
||
shell: bash
|
||
run: dotnet run --configuration Release --project tools/ci/CrossRegionNexBusProcessRegression/CrossRegionNexBusProcessRegression.csproj
|
||
|
||
- name: OGL German console and signed feature licenses
|
||
shell: bash
|
||
run: dotnet run --configuration Release --project tools/ci/OglFeatureControlRegression/OglFeatureControlRegression.csproj
|
||
|
||
- name: Regression-test Firestorm Bridge HTTP event string types
|
||
shell: bash
|
||
run: dotnet run --configuration Release --project tools/ci/FirestormBridgeHttpRegression/FirestormBridgeHttpRegression.csproj
|
||
|
||
- name: Runtime LSL core conformance (0.9.3.11)
|
||
shell: bash
|
||
run: dotnet run --configuration Release --project tools/ci/LslConformanceRegression/LslConformanceRegression.csproj
|
||
|
||
- name: Regression-test Firestorm My Outfits system folder against real SQLite inventory
|
||
shell: bash
|
||
run: dotnet run --configuration Release --project tools/ci/OglOutfitInventoryRegression/OglOutfitInventoryRegression.csproj
|
||
|
||
- name: Verify NexVerse native assemblies
|
||
shell: bash
|
||
run: |
|
||
test -f bin/NexVerse.Core.dll
|
||
test -f bin/OGL.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 0.9.3.13 Stable operator decision and unchanged evidence validator
|
||
shell: bash
|
||
run: |
|
||
python3 tools/release/ogl_09313_acceptance_gate.py --self-test
|
||
test -s doc/NexVerse/RELEASE_0.9.3.13_RC1.md
|
||
test -s doc/NexVerse/09313_OPERATOR_RELEASE_DECISION.md
|
||
test -s doc/NexVerse/RELEASE_0.9.3.13.md
|
||
# Operator exception is documented; evidence validator remains fail-closed.
|
||
|
||
- 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.4.0";' OpenSim/Framework/VersionInfo.cs
|
||
grep -F 'public const string AssemblyVersionNumber = "0.9.4.0";' 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.4.0";' 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: Verify Generation 1 Hypergrid asset egress lockdown
|
||
shell: bash
|
||
run: python3 tools/ci/verify_gen1_hg_asset_egress_lockdown.py
|
||
|
||
- name: Regression-test dynamic texture retirement handoff
|
||
shell: bash
|
||
run: |
|
||
set -euo pipefail
|
||
python3 tools/ci/verify_gen1_dynamic_texture_refresh.py
|
||
dotnet run --project tools/ci/OglDynamicTextureRetentionRegression/OglDynamicTextureRetentionRegression.csproj --configuration Release
|
||
|
||
|
||
- name: Verify Generation 1 approved-viewer admission policy
|
||
shell: bash
|
||
run: |
|
||
set -euo pipefail
|
||
python3 tools/ci/verify_gen1_approved_viewer_access.py
|
||
dotnet run --project tools/ci/OglApprovedViewerRegression/OglApprovedViewerRegression.csproj --configuration Release
|
||
|
||
- name: Verify NexBus shutdown race and Wolfvoice integration
|
||
shell: bash
|
||
run: |
|
||
set -euo pipefail
|
||
python3 tools/ci/verify_gen1_nexbus_shutdown.py
|
||
python3 tools/ci/verify_gen1_wolfvoice_compat.py
|
||
bash -n tools/voice/install-wolfvoice-region-addon.sh
|
||
bash -n tools/voice/configure-wolfvoice-region.sh
|
||
|
||
- 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 Generation 1"' /tmp/nexverse-version.json
|
||
grep -F '"generation": "Generation 1"' /tmp/nexverse-version.json
|
||
grep -F '"release_channel": "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"
|
||
history = doc["x_nexverse_version_history"]
|
||
assert [item["server_line"] for item in history[:9]] == [
|
||
"0.9.4.0", "0.9.3.13", "0.9.3.12", "0.9.3.10", "0.9.3.8",
|
||
"0.9.3.7", "0.9.3.6", "0.9.3.5", "0.9.3.4",
|
||
]
|
||
assert history[0]["status"] == "development"
|
||
assert [item["status"] for item in history[:9]] == [
|
||
"development", "release", "release", "release", "release",
|
||
"completed", "completed", "completed", "release",
|
||
]
|
||
assert doc["x_nexverse_changelog"]
|
||
assert doc["x_nexverse_changelog"][0]["version"] == "0.9.4.0"
|
||
assert doc["x_nexverse_changelog"][0]["status"] == "development"
|
||
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 = next(
|
||
item for item in doc["x_nexverse_changelog"]
|
||
if item["title"] == "Persistente Display-Name-Grundlage"
|
||
)
|
||
assert display_change["status"] == "implemented"
|
||
assert display_change["category"] == "identity"
|
||
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.4.0"
|
||
assert roadmap["current_codename"] == "Generation 1"
|
||
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"] == "deferred"
|
||
assert milestones["0.9.3.10"]["status"] == "released"
|
||
assert milestones["0.9.3.12"]["status"] == "released"
|
||
assert milestones["0.9.3.13"]["status"] == "released"
|
||
assert milestones["0.9.4.0"]["status"] == "active"
|
||
assert "Pathfinding 2.0" in milestones["0.9.3.10"]["summary"]
|
||
assert "My Outfits 2.0" in milestones["0.9.3.10"]["summary"]
|
||
|
||
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"]
|
||
# Real simulator Experience routes must appear in OpenAPI with
|
||
# their method, service-only security and typed responses.
|
||
for experience_path, methods in {
|
||
"/api/v1/experiences/script/info": ("get",),
|
||
"/api/v1/experiences/script/search": ("get",),
|
||
"/api/v1/experiences/script/resolve": ("get",),
|
||
"/api/v1/experiences/script/details": ("get",),
|
||
"/api/v1/experiences/script/permission": ("get",),
|
||
"/api/v1/experiences/script/location": ("get",),
|
||
"/api/v1/experiences/script/kv": ("post",),
|
||
"/api/v1/experiences/viewer/permissions": ("get", "put"),
|
||
"/api/v1/experiences/viewer/group": ("get",),
|
||
"/api/v1/experiences/viewer/manage": ("post", "put"),
|
||
}.items():
|
||
for method in methods:
|
||
assert method in doc["paths"][experience_path], (experience_path, method)
|
||
viewer = doc["paths"]["/api/v1/experiences/viewer/permissions"]
|
||
assert viewer["put"]["x-nexverse-scope"] == "experiences:viewer:permissions"
|
||
manager = doc["paths"]["/api/v1/experiences/viewer/manage"]
|
||
for method, schema, result_code in (
|
||
("post", "ExperienceViewerAcquireRequest", "201"),
|
||
("put", "ExperienceViewerProfileRequest", "200"),
|
||
):
|
||
operation = manager[method]
|
||
assert operation["x-nexverse-audience"] == ["service"]
|
||
assert operation["x-nexverse-scope"] == "experiences:viewer:manage"
|
||
assert operation["security"] == [{"apiKeyAuth": []}]
|
||
assert operation["requestBody"]["content"]["application/json"]["schema"]["$ref"] == (
|
||
"#/components/schemas/" + schema)
|
||
assert operation["responses"][result_code]["content"]["application/json"]["schema"]["$ref"] == (
|
||
"#/components/schemas/ExperienceViewerManageResponse")
|
||
assert schemas["ExperienceViewerAcquireRequest"]["required"] == ["owner_id"]
|
||
assert "experience_id" in schemas["ExperienceViewerProfileRequest"]["required"]
|
||
assert viewer["put"]["x-nexverse-audience"] == ["service"]
|
||
assert viewer["put"]["security"] == [{"apiKeyAuth": []}]
|
||
assert viewer["put"]["requestBody"]["content"]["application/json"]["schema"]["$ref"] == (
|
||
"#/components/schemas/ExperienceViewerDecisionRequest")
|
||
assert viewer["get"]["responses"]["200"]["content"]["application/json"]["schema"]["$ref"] == (
|
||
"#/components/schemas/ExperienceViewerPermissionReadResponse")
|
||
assert {p["name"] for p in viewer["get"]["parameters"]} == {
|
||
"resident_id", "experience_id"}
|
||
assert "oneOf" in schemas["ExperienceViewerPermissionReadResponse"]
|
||
assert doc["paths"]["/api/v1/experiences/script/kv"]["post"]["requestBody"][
|
||
"content"]["application/json"]["schema"]["$ref"] == (
|
||
"#/components/schemas/ExperienceKvRequest")
|
||
assert doc["paths"]["/api/v1/experiences/script/info"]["get"]["responses"]["200"][
|
||
"content"]["application/json"]["schema"]["$ref"] == (
|
||
"#/components/schemas/ExperiencePublicInfoResponse")
|
||
assert "check_original" in schemas["ExperienceKvRequest"]["properties"]
|
||
assert doc["x_nexverse_version_history"][0]["status"] == "development"
|
||
assert doc["x_nexverse_version_history"][0]["codename"] == "Generation 1"
|
||
for path, required_methods in {
|
||
"/api/v1/profiles/{principalId}/image": ("get",),
|
||
"/api/v1/events/{eventId}": ("get", "patch", "delete"),
|
||
"/api/v1/classifieds/{classifiedId}": ("get", "patch", "delete"),
|
||
"/api/v1/groups/mine": ("get",),
|
||
}.items():
|
||
for method in required_methods:
|
||
assert method in doc["paths"][path], (path, method)
|
||
profile_image = doc["paths"]["/api/v1/profiles/{principalId}/image"]["get"]
|
||
assert "image/png" in profile_image["responses"]["200"]["content"]
|
||
assert profile_image["responses"]["200"]["content"]["image/png"]["schema"]["format"] == "binary"
|
||
assert doc["paths"]["/api/v1/events/{eventId}"]["patch"]["x-nexverse-scope"] == "discovery:manage"
|
||
assert doc["paths"]["/api/v1/groups/mine"]["get"]["x-nexverse-scope"] == "groups:read"
|
||
assert doc["paths"]["/api/v1/events/{eventId}"]["patch"]["requestBody"][
|
||
"content"]["application/json"]["schema"]["$ref"] == (
|
||
"#/components/schemas/DiscoveryEventPatch")
|
||
assert doc["paths"]["/api/v1/classifieds/{classifiedId}"]["patch"]["requestBody"][
|
||
"content"]["application/json"]["schema"]["$ref"] == (
|
||
"#/components/schemas/DiscoveryClassifiedPatch")
|
||
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 'OpenGenesisLINK – Control Center' /tmp/nexverse-api-docs.html
|
||
# Same-path POST must reach the dedicated auth handler, never return
|
||
# the HTML login shell with a misleading HTTP 200. This synthetic
|
||
# smoke runs in public-only mode, so real admin login is disabled.
|
||
DOCS_LOGIN_STATUS="$(curl --silent --max-time 3 --output /tmp/ogl-docs-login.json --write-out '%{http_code}' \
|
||
-X POST -H 'Content-Type: application/json' \
|
||
--data '{"username":"ci-user","password":"not-a-real-password"}' \
|
||
http://127.0.0.1:19090/api/v1/docs)"
|
||
test "$DOCS_LOGIN_STATUS" = 503
|
||
grep -F '"error":"admin_login_unavailable"' /tmp/ogl-docs-login.json
|
||
# Full Control Center HTML must never be returned without a
|
||
# server-verified local administrator token, regardless of UI scripts.
|
||
DOCS_STATUS="$(curl --silent --output /tmp/ogl-docs-denied.txt --write-out '%{http_code}' --max-time 3 http://127.0.0.1:19090/api/v1/docs/panel)"
|
||
test "$DOCS_STATUS" = 401
|
||
if grep -F 'id="page-explorer"' /tmp/ogl-docs-denied.txt; then
|
||
echo "::error::Protected OGL admin HTML was exposed anonymously"
|
||
exit 1
|
||
fi
|
||
# The full dashboard is protected and cannot be downloaded anonymously.
|
||
# Verify retained explorer/grid functions in its compiled HTML source.
|
||
DOCS_SOURCE=../NexVerse/Server/Api/NexApiDocsPage.cs
|
||
grep -F 'Was ist neu?' $DOCS_SOURCE
|
||
grep -F 'OpenGenesisLINK Entwicklungsplan' $DOCS_SOURCE
|
||
grep -F 'Was ist neu?' $DOCS_SOURCE
|
||
grep -F 'OpenGenesisLINK Entwicklungsplan' $DOCS_SOURCE
|
||
grep -F 'x_nexverse_changelog' $DOCS_SOURCE
|
||
grep -F 'x_nexverse_roadmap' $DOCS_SOURCE
|
||
grep -F '/api/v1/openapi.json' $DOCS_SOURCE
|
||
grep -F 'ChatGPT / Portale' $DOCS_SOURCE
|
||
grep -F '/api/v1/chatgpt-instructions.md' $DOCS_SOURCE
|
||
grep -F '/api/v1/chatgpt-buergerportal.md' $DOCS_SOURCE
|
||
grep -F '/api/v1/chatgpt-admin.md' $DOCS_SOURCE
|
||
grep -F 'data-audience-target="citizen"' $DOCS_SOURCE
|
||
grep -F 'data-endpoint-audience="admin"' $DOCS_SOURCE
|
||
grep -F 'Interaktiver Grid-Planer' $DOCS_SOURCE
|
||
grep -F '/api/v1/grid/layout' $DOCS_SOURCE
|
||
grep -F '/api/v1/grid/validate-placement' $DOCS_SOURCE
|
||
grep -F 'regions:read' $DOCS_SOURCE
|
||
grep -F 'Simulator-Nodes' $DOCS_SOURCE
|
||
grep -F '/api/v1/nodes' $DOCS_SOURCE
|
||
grep -F 'simulators:read' $DOCS_SOURCE
|
||
grep -F 'Region erstellen' $DOCS_SOURCE
|
||
grep -F 'createGridRegion' $DOCS_SOURCE
|
||
grep -F 'moveGridRegion' $DOCS_SOURCE
|
||
grep -F 'gridRegionSearch' $DOCS_SOURCE
|
||
grep -F 'jumpGridRegion' $DOCS_SOURCE
|
||
grep -F 'startGridRegion' $DOCS_SOURCE
|
||
grep -F 'stopGridRegion' $DOCS_SOURCE
|
||
grep -F 'restartGridRegion' $DOCS_SOURCE
|
||
grep -F 'loadGridEstates' $DOCS_SOURCE
|
||
grep -F 'gridEstateOptions' $DOCS_SOURCE
|
||
grep -F 'loadEstateManagement' $DOCS_SOURCE
|
||
grep -F 'createEstateManagement' $DOCS_SOURCE
|
||
grep -F 'updateEstateManagement' $DOCS_SOURCE
|
||
grep -F 'assignEstateRegion' $DOCS_SOURCE
|
||
grep -F 'estates:read' $DOCS_SOURCE
|
||
grep -F 'estates:manage' $DOCS_SOURCE
|
||
grep -F '/api/v1/estates' $DOCS_SOURCE
|
||
grep -F '/api/v1/regions/' $DOCS_SOURCE
|
||
grep -F '/lifecycle' $DOCS_SOURCE
|
||
grep -F '/api/v1/region-operations/' $DOCS_SOURCE
|
||
if grep -F 'localStorage' /tmp/nexverse-api-docs.html || grep -F 'localStorage' "$DOCS_SOURCE"; 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 'OpenGenesisLINK 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
|
||
grep -F 'experiences:viewer:permissions' /tmp/nexverse-chatgpt.md
|
||
grep -F 'experiences:viewer:manage' /tmp/nexverse-chatgpt.md
|
||
grep -F 'Script-/Service-Integrationen' /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
|
||
grep -F 'Viewer-CAPS' /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
|
||
grep -F 'experiences:viewer:permissions' /tmp/nexverse-chatgpt-admin.md
|
||
grep -F 'experiences:viewer:manage' /tmp/nexverse-chatgpt-admin.md
|
||
|
||
# Validate the actual server-generated Markdown, not merely source
|
||
# markers: every documented full-index path must equal the running
|
||
# server OpenAPI, and citizen/admin indexes must respect audiences.
|
||
curl --silent --fail --max-time 5 \
|
||
http://127.0.0.1:19090/api/v1/openapi.json \
|
||
> /tmp/nexverse-chatgpt-openapi.json
|
||
python3 "$GITHUB_WORKSPACE/tools/ci/verify_worldapi_chatgpt_runtime.py" \
|
||
--openapi /tmp/nexverse-chatgpt-openapi.json \
|
||
--all /tmp/nexverse-chatgpt.md \
|
||
--citizen /tmp/nexverse-chatgpt-citizen.md \
|
||
--admin /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:
|
||
- 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:
|
||
- 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 10
|
||
uses: actions/setup-dotnet@v4
|
||
with:
|
||
dotnet-version: '10.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=${{ job.services.mariadb.ports[3306] }};Database=ogl_ledger_ci;User ID=ledger;Password=ledgerpass;Old Guids=true;SslMode=None;"
|
||
NEX_LEDGER_POSTGRESQL: "Host=127.0.0.1;Port=${{ job.services.postgres.ports[5432] }};Database=ogl_ledger_ci;Username=ledger;Password=ledgerpass;SSL Mode=Disable;"
|
||
run: dotnet run --configuration Release --project tools/ci/NexLedgerSqlMatrixRegression/NexLedgerSqlMatrixRegression.csproj
|
||
|
||
- name: Run real MariaDB NexPortalIM archive regression
|
||
shell: bash
|
||
env:
|
||
NEX_PORTAL_IM_MARIADB: "Data Source=127.0.0.1;Port=${{ job.services.mariadb.ports[3306] }};Database=ogl_ledger_ci;User ID=ledger;Password=ledgerpass;Old Guids=true;SslMode=None;"
|
||
run: dotnet run --configuration Release --project tools/ci/NexPortalImMariaDbRegression/NexPortalImMariaDbRegression.csproj
|
||
|
||
- name: Run real MariaDB NPC owner direct-IM archive regression (R620)
|
||
shell: bash
|
||
env:
|
||
NEX_NPC_CHAT_MARIADB: "Data Source=127.0.0.1;Port=${{ job.services.mariadb.ports[3306] }};Database=ogl_ledger_ci;User ID=ledger;Password=ledgerpass;Old Guids=true;SslMode=None;"
|
||
run: dotnet run --configuration Release --project tools/ci/NexNpcChatStoreRegression/NexNpcChatStoreRegression.csproj
|
||
|
||
- name: Run real MariaDB NexGroups authorization and invitation regression
|
||
shell: bash
|
||
env:
|
||
NEX_GROUPS_MARIADB: "Data Source=127.0.0.1;Port=${{ job.services.mariadb.ports[3306] }};Database=ogl_ledger_ci;User ID=ledger;Password=ledgerpass;Old Guids=true;SslMode=None;"
|
||
run: |
|
||
chmod +x runprebuild.sh
|
||
./runprebuild.sh
|
||
dotnet run --configuration Release --project tools/ci/NexGroupsSqlAuthorizationRegression/NexGroupsSqlAuthorizationRegression.csproj
|
||
|
||
- name: Run signed bearer HTTP NexGroups authorization regression
|
||
shell: bash
|
||
env:
|
||
NEX_GROUPS_MARIADB: "Data Source=127.0.0.1;Port=${{ job.services.mariadb.ports[3306] }};Database=ogl_ledger_ci;User ID=ledger;Password=ledgerpass;Old Guids=true;SslMode=None;"
|
||
run: dotnet run --configuration Release --project tools/ci/NexGroupsHttpRegression/NexGroupsHttpRegression.csproj
|