Neu: Generation 1 0.9.4.0 Stable-Freigabe und Update-Kanaele vorbereiten
Eingefrorene Versionspolitik, einmaliger manueller Stable-Publisher, separater rollender Update-Kanal, Release-Abnahmeprotokoll und CI-Vertraege. Kein Stable-Tag und kein Produktivdeployment.
This commit is contained in:
1 parent
47709b6499
commit
6364f8fd66
10 files changed
+485
-7
No files matched your search
@@ -0,0 +1,27 @@
|
||||
name: Generation 1 Stable and Updates source policy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
release-policy:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
- name: Verify immutable Stable and rolling Updates policy
|
||||
run: python3 tools/ci/verify_g1_release_channels.py
|
||||
- name: Verify package build Python syntax
|
||||
run: python3 -m py_compile tools/release/ogl_gen1_snapshot_zip.py
|
||||
- name: Check Development, Stable and Update packaging fail-closed
|
||||
run: python3 tools/release/ogl_gen1_snapshot_zip.py --self-test
|
||||
@@ -0,0 +1,124 @@
|
||||
name: OpenGenesisLINK Generation 1 (0.9.4.0) einmaliges Stable-Release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
source_sha:
|
||||
description: "Vollstaendiger gepruefter main-Commit-SHA (40 Zeichen)"
|
||||
required: true
|
||||
type: string
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
checks: read
|
||||
|
||||
concurrency:
|
||||
group: ogl-g1-official-stable
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
stable:
|
||||
if: ${{ vars.OGL_GEN1_STABLE_RELEASE_APPROVED == 'true' }}
|
||||
environment: generation1-stable
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 75
|
||||
steps:
|
||||
- name: Checkout explicit release SHA
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ inputs.source_sha }}
|
||||
persist-credentials: false
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Verify immutable target, acceptance and required green checks
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
RELEASE_SHA: ${{ inputs.source_sha }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
[[ "$RELEASE_SHA" =~ ^[0-9a-f]{40}$ ]]
|
||||
test "$(git rev-parse HEAD)" = "$RELEASE_SHA"
|
||||
test "$(gh api "repos/$GITHUB_REPOSITORY/commits/main" --jq .sha)" = "$RELEASE_SHA"
|
||||
if gh api "repos/$GITHUB_REPOSITORY/git/ref/tags/v0.9.4.0" >/dev/null 2>&1; then
|
||||
echo "::error::Official Stable tag already exists; never overwrite"; exit 1
|
||||
fi
|
||||
grep -Fq 'VersionNumber = "0.9.4.0"' OpenSim/Framework/VersionInfo.cs
|
||||
grep -Fq 'VERSION_FLAVOUR = Flavour.Release;' OpenSim/Framework/VersionInfo.cs
|
||||
file=doc/release-acceptance/GEN1_0.9.4.0.md
|
||||
grep -Fxq 'Status: APPROVED' "$file"
|
||||
ACCEPTED_SHA="$(sed -n 's/^Gepruefter Code-Commit: //p' "$file")"
|
||||
[[ "$ACCEPTED_SHA" =~ ^[0-9a-f]{40}$ ]]
|
||||
git cat-file -e "$ACCEPTED_SHA^{commit}"
|
||||
git merge-base --is-ancestor "$ACCEPTED_SHA" "$RELEASE_SHA"
|
||||
changes="$(git diff --name-only "$ACCEPTED_SHA" "$RELEASE_SHA" | grep -v '^doc/release-acceptance/GEN1_0.9.4.0.md$' || true)"
|
||||
if [ -n "$changes" ]; then
|
||||
echo "::error::Source changed after the approved staging code commit: $changes"; exit 1
|
||||
fi
|
||||
grep -Eq '^Freigabe durch: .+' "$file"
|
||||
if grep -Fxq 'Freigabe durch: PENDING' "$file"; then exit 1; fi
|
||||
grep -Eq '^Pruefdatum: 20[0-9]{2}-[0-9]{2}-[0-9]{2}$' "$file"
|
||||
for check in Login_Inventar Teleport_Hypergrid Mesh_Asset LSL_Animesh Feed_Datenloeschung DB_Backup_Restore_Rollback; do
|
||||
grep -Fxq "$check: PASS" "$file"
|
||||
done
|
||||
gh api "repos/$GITHUB_REPOSITORY/commits/$RELEASE_SHA/check-runs?per_page=100" > "$RUNNER_TEMP/checks.json"
|
||||
python3 - "$RUNNER_TEMP/checks.json" <<'PY'
|
||||
import json, sys
|
||||
checks = json.load(open(sys.argv[1], encoding="utf-8"))["check_runs"]
|
||||
names = (
|
||||
"Build NexVerse",
|
||||
"NV dollar live database matrix",
|
||||
".NET 10 generated-project and server build",
|
||||
".NET 10 Windows x64 build",
|
||||
"ROBUST and Simulator .NET 10 ARM64 build + boot",
|
||||
)
|
||||
for name in names:
|
||||
matches = [c for c in checks if c.get("name") == name]
|
||||
assert matches and matches[0].get("conclusion") == "success", f"Missing green gate: {name}"
|
||||
print("All required CI gates succeeded.")
|
||||
PY
|
||||
|
||||
- name: Setup .NET 10
|
||||
uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: '10.0.x'
|
||||
|
||||
- name: Install native build dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libgdiplus libc6-dev
|
||||
|
||||
- name: Build, stage and boot Linux x64 release
|
||||
run: |
|
||||
set -euo pipefail
|
||||
bash runprebuild.sh
|
||||
python3 tools/gen11/verify_net10.py
|
||||
dotnet restore OpenSim.sln
|
||||
dotnet build OpenSim.sln --configuration Release --no-restore
|
||||
python3 tools/gen11/robust_runtime_smoke.py
|
||||
python3 tools/gen11/stage_net10_runtime.py --rid linux-x64 --output "$RUNNER_TEMP/g1-stable"
|
||||
python3 tools/gen11/robust_runtime_smoke.py --bin "$RUNNER_TEMP/g1-stable/bin"
|
||||
python3 tools/release/ogl_gen1_snapshot_zip.py --self-test
|
||||
mkdir -p dist
|
||||
python3 tools/release/ogl_gen1_snapshot_zip.py \
|
||||
--bin-dir "$RUNNER_TEMP/g1-stable/bin" \
|
||||
--output dist/OpenGenesisLINK-Generation1-0.9.4.0-Linux-x64.zip \
|
||||
--sha "${{ inputs.source_sha }}" --channel generation1-stable
|
||||
(cd dist && sha256sum *.zip > OpenGenesisLINK-Generation1-0.9.4.0-Linux-x64.zip.sha256)
|
||||
|
||||
- name: Create immutable Stable release exactly once
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
RELEASE_SHA: ${{ inputs.source_sha }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
test "$(gh api "repos/$GITHUB_REPOSITORY/commits/main" --jq .sha)" = "$RELEASE_SHA"
|
||||
if gh api "repos/$GITHUB_REPOSITORY/git/ref/tags/v0.9.4.0" >/dev/null 2>&1; then
|
||||
echo "::error::Stable tag was created concurrently; refusing overwrite"; exit 1
|
||||
fi
|
||||
printf 'OpenGenesisLINK Generation 1 (0.9.4.0) - offizielles Stable-Release.\n\nGetesteter Commit: %s\nLaufzeit: .NET 10, Linux x64.\nStable-Tag und Artefakte werden nicht ueberschrieben.\nWeitere Generation-1-Verbesserungen folgen im getrennten Update-Kanal gen1-updates.\n' "$RELEASE_SHA" > dist/release-notes.md
|
||||
gh release create v0.9.4.0 \
|
||||
dist/OpenGenesisLINK-Generation1-0.9.4.0-Linux-x64.zip \
|
||||
dist/OpenGenesisLINK-Generation1-0.9.4.0-Linux-x64.zip.sha256 \
|
||||
--repo "$GITHUB_REPOSITORY" --target "$RELEASE_SHA" \
|
||||
--title 'OpenGenesisLINK Generation 1 (0.9.4.0) Stable' \
|
||||
--notes-file dist/release-notes.md --latest
|
||||
@@ -0,0 +1,135 @@
|
||||
name: Publish Generation 1 (0.9.4.0) rolling updates
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ["NexVerse CI"]
|
||||
types: [completed]
|
||||
branches: [main]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
checks: read
|
||||
|
||||
concurrency:
|
||||
group: ogl-g1-rolling-updates
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
if: >-
|
||||
${{ vars.OGL_GEN1_UPDATES_APPROVED == 'true' &&
|
||||
github.event.workflow_run.conclusion == 'success' &&
|
||||
github.event.workflow_run.event == 'push' &&
|
||||
github.event.workflow_run.head_branch == 'main' &&
|
||||
github.event.workflow_run.head_repository.full_name == github.repository }}
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 75
|
||||
steps:
|
||||
- name: Checkout exact successful NexVerse CI SHA
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.workflow_run.head_sha }}
|
||||
persist-credentials: false
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Verify Stable lineage and all mandatory CI checks
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
RELEASE_SHA: ${{ github.event.workflow_run.head_sha }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
test "$(git rev-parse HEAD)" = "$RELEASE_SHA"
|
||||
test "$(gh api "repos/$GITHUB_REPOSITORY/commits/main" --jq .sha)" = "$RELEASE_SHA"
|
||||
grep -Fq 'VersionNumber = "0.9.4.0"' OpenSim/Framework/VersionInfo.cs
|
||||
grep -Fq 'VERSION_FLAVOUR = Flavour.Release;' OpenSim/Framework/VersionInfo.cs
|
||||
stable="$(gh api "repos/$GITHUB_REPOSITORY/git/ref/tags/v0.9.4.0" --jq '.object.sha')"
|
||||
git merge-base --is-ancestor "$stable" "$RELEASE_SHA"
|
||||
# GitHub workflow_run events can arrive before the other build gates finish.
|
||||
# Never publish if any mandatory gate is absent, pending or failed.
|
||||
for i in $(seq 1 30); do
|
||||
gh api "repos/$GITHUB_REPOSITORY/commits/$RELEASE_SHA/check-runs?per_page=100" > "$RUNNER_TEMP/checks.json"
|
||||
if python3 - "$RUNNER_TEMP/checks.json" <<'PY'
|
||||
import json, sys
|
||||
checks = json.load(open(sys.argv[1], encoding="utf-8"))["check_runs"]
|
||||
needed = (
|
||||
"Build NexVerse",
|
||||
"NV dollar live database matrix",
|
||||
".NET 10 generated-project and server build",
|
||||
".NET 10 Windows x64 build",
|
||||
"ROBUST and Simulator .NET 10 ARM64 build + boot",
|
||||
)
|
||||
for name in needed:
|
||||
runs = [c for c in checks if c.get("name") == name]
|
||||
if not runs or runs[0].get("conclusion") != "success":
|
||||
print(f"Gate not green: {name}")
|
||||
raise SystemExit(1)
|
||||
print("All mandatory CI checks are green.")
|
||||
PY
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
sleep 20
|
||||
done
|
||||
echo "::error::Mandatory CI checks did not all pass"; exit 1
|
||||
|
||||
- name: Setup .NET 10
|
||||
uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: '10.0.x'
|
||||
|
||||
- name: Install native build dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libgdiplus libc6-dev
|
||||
|
||||
- name: Build and verify current Linux x64 update ZIP
|
||||
env:
|
||||
RELEASE_SHA: ${{ github.event.workflow_run.head_sha }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
bash runprebuild.sh
|
||||
python3 tools/gen11/verify_net10.py
|
||||
dotnet restore OpenSim.sln
|
||||
dotnet build OpenSim.sln --configuration Release --no-restore
|
||||
python3 tools/gen11/robust_runtime_smoke.py
|
||||
python3 tools/gen11/stage_net10_runtime.py --rid linux-x64 --output "$RUNNER_TEMP/g1-updates"
|
||||
python3 tools/gen11/robust_runtime_smoke.py --bin "$RUNNER_TEMP/g1-updates/bin"
|
||||
mkdir -p dist
|
||||
python3 tools/release/ogl_gen1_snapshot_zip.py \
|
||||
--bin-dir "$RUNNER_TEMP/g1-updates/bin" \
|
||||
--output dist/OpenGenesisLINK-Generation1-Updates-Linux-x64.zip \
|
||||
--sha "$RELEASE_SHA" --channel generation1-updates
|
||||
(cd dist && sha256sum *.zip > OpenGenesisLINK-Generation1-Updates-Linux-x64.zip.sha256)
|
||||
|
||||
- name: Refresh update prerelease, never touch official Stable
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
RELEASE_SHA: ${{ github.event.workflow_run.head_sha }}
|
||||
CI_RUN: ${{ github.event.workflow_run.id }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
test "$(gh api "repos/$GITHUB_REPOSITORY/commits/main" --jq .sha)" = "$RELEASE_SHA"
|
||||
gh api "repos/$GITHUB_REPOSITORY/git/ref/tags/v0.9.4.0" >/dev/null
|
||||
tag="gen1-updates"
|
||||
zip="dist/OpenGenesisLINK-Generation1-Updates-Linux-x64.zip"
|
||||
sum="dist/OpenGenesisLINK-Generation1-Updates-Linux-x64.zip.sha256"
|
||||
printf 'OpenGenesisLINK Generation 1 (0.9.4.0) - aktuelles freigegebenes Update.\n\nCommit: %s\nNexVerse CI: %s\nLaufzeit: .NET 10, Linux x64.\nDies ist ein aktualisierbarer Update-Download, KEIN neues Stable-Release.\nDas offizielle Stable-Release v0.9.4.0 bleibt unveraendert.\nVor Installation Backup und Rollback pruefen.\n' "$RELEASE_SHA" "$CI_RUN" > dist/notes.md
|
||||
if gh release view "$tag" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then
|
||||
test "$(gh api "repos/$GITHUB_REPOSITORY/releases/tags/$tag" --jq .prerelease)" = "true"
|
||||
test "$(gh api "repos/$GITHUB_REPOSITORY/git/ref/tags/$tag" --jq '.object.type')" = "commit"
|
||||
gh api -X PATCH "repos/$GITHUB_REPOSITORY/git/refs/tags/$tag" \
|
||||
-f sha="$RELEASE_SHA" -F force=true >/dev/null
|
||||
gh release edit "$tag" --repo "$GITHUB_REPOSITORY" \
|
||||
--title 'OpenGenesisLINK Generation 1 - Aktuelle Updates' \
|
||||
--notes-file dist/notes.md --prerelease
|
||||
gh release upload "$tag" "$zip" "$sum" --repo "$GITHUB_REPOSITORY" --clobber
|
||||
else
|
||||
if gh api "repos/$GITHUB_REPOSITORY/git/ref/tags/$tag" >/dev/null 2>&1; then
|
||||
echo "::error::Update tag exists without expected prerelease"; exit 1
|
||||
fi
|
||||
gh release create "$tag" "$zip" "$sum" \
|
||||
--repo "$GITHUB_REPOSITORY" --target "$RELEASE_SHA" \
|
||||
--title 'OpenGenesisLINK Generation 1 - Aktuelle Updates' \
|
||||
--notes-file dist/notes.md --prerelease
|
||||
fi
|
||||
echo "Published Generation 1 update for $RELEASE_SHA"
|
||||
@@ -111,13 +111,13 @@ jobs:
|
||||
echo
|
||||
echo "Commit: $RELEASE_SHA"
|
||||
echo "CI validation: GitHub Actions NexVerse CI run $CI_RUN"
|
||||
echo "Platform: Linux x86_64, .NET 8"
|
||||
echo "Platform: Linux x86_64, .NET 10"
|
||||
echo "Download the ZIP and corresponding SHA256 file."
|
||||
echo
|
||||
echo "Production INI files and secrets are excluded from the ZIP."
|
||||
echo "Back up local configuration and data before deployment."
|
||||
echo
|
||||
echo "The official v0.9.3.13 Stable tag and release are unchanged."
|
||||
echo "Stable tags and official release artifacts are never modified by this dev pipeline."
|
||||
} > dist/release-notes.md
|
||||
if gh release view "$tag" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then
|
||||
if [ "$(gh api "repos/$GITHUB_REPOSITORY/releases/tags/$tag" --jq '.prerelease')" != "true" ]; then
|
||||
|
||||
@@ -71,6 +71,18 @@ dotnet OpenSim.dll
|
||||
|
||||
Vor Updates produktiver Systeme Konfigurationen, Datenbanken, Inventar und Assets sichern. Beispielkonfigurationen sind keine fertig eingerichtete Produktivinstallation.
|
||||
|
||||
## Stable-Release und laufende Updates
|
||||
|
||||
Die offizielle **Generation 1 (0.9.4.0)** wird nach produktionsnaher
|
||||
Abnahme einmalig als Stable-Version mit unveraenderlichem Tag
|
||||
`v0.9.4.0` veroeffentlicht. Kompatible Updates folgen ohne neue
|
||||
Versionsreihe ueber den separaten Downloadkanal `gen1-updates`,
|
||||
jeweils nachvollziehbar anhand des Commit-SHA und der SHA256-Pruefsumme.
|
||||
Der aktuelle `main`-Entwicklungsstand ist bis zur Freigabe nicht
|
||||
automatisch Stable.
|
||||
|
||||
Details: [Stable- und Update-Richtlinie](doc/OpenGenesisLINK/GEN1_STABLE_UPDATE_POLICY.md).
|
||||
|
||||
## Weitere Informationen
|
||||
|
||||
**Projektseite, technische Informationen und aktuelle Hinweise:** **[opengenesislink.de](https://opengenesislink.de)**
|
||||
|
||||
@@ -24,3 +24,24 @@ Produktgeneration ist **Generation 1**. Die technische Versionsnummer
|
||||
weiterhin abweichende Namen tragen.
|
||||
|
||||
Weitere Informationen: **https://opengenesislink.de**.
|
||||
|
||||
## Dauerhafte Stable-Linie ab 0.9.4.0
|
||||
|
||||
**Entscheidung:** `v0.9.4.0` wird nach nachgewiesener Produktivabnahme
|
||||
genau einmal als offizielles Stable-Release erstellt. Die oeffentliche
|
||||
Produktgeneration heisst auch danach weiter `OpenGenesisLINK Generation 1`.
|
||||
Innerhalb dieser Generation sind keine weiteren fortlaufenden
|
||||
0.9.4.1-/0.9.5.0-Versionen geplant.
|
||||
|
||||
Neue Fehlerbehebungen, Sicherheitsupdates und kompatible Verbesserungen
|
||||
werden ueber den aktualisierbaren Download `gen1-updates` verteilt.
|
||||
Der unveraenderliche Stable-Tag `v0.9.4.0` bleibt als Referenz erhalten.
|
||||
Jedes Update weist einen eindeutigen Git-Commit-SHA und eine SHA256-Pruefsumme
|
||||
aus. Betreiber sollten diese Build-ID statt allein der Versionsnummer
|
||||
fuer Diagnose, Rollback und Support verwenden.
|
||||
|
||||
Der aktuelle `main` ist bis zur formellen Abnahme **kein freigegebener
|
||||
Stable-Stand**. `Flavour.Dev` bleibt bis zum Release-Gate erhalten.
|
||||
Die technische Dokumentation zu Freigaben, Sicherheitsgrenzen und
|
||||
CI-Gates liegt unter
|
||||
[GEN1_STABLE_UPDATE_POLICY.md](doc/OpenGenesisLINK/GEN1_STABLE_UPDATE_POLICY.md).
|
||||
@@ -0,0 +1,28 @@
|
||||
# OpenGenesisLINK Generation 1 - fester Stable- und Update-Kanal
|
||||
|
||||
Die oeffentliche Produktbezeichnung bleibt **OpenGenesisLINK Generation 1**.
|
||||
Die technische Generation-1-Versionsnummer bleibt **0.9.4.0**. Es gibt keine
|
||||
fortlaufende 0.9.4.1/0.9.5.0-Release-Serie fuer diese Generation.
|
||||
|
||||
## Release-Kanaele
|
||||
|
||||
- `v0.9.4.0`: einmaliger offizieller Stable-Git-Tag und unveraenderliches GitHub Release. Niemals umtaggen, loeschen oder Artefakte ersetzen. Ein Stable-ZIP wird nur nach Staging-Abnahme gebaut.
|
||||
- `gen1-updates`: aktualisierbarer, als Prerelease gekennzeichneter GitHub-Download fuer neue Generation-1-Updates. Je Build ein Commit-SHA im `BUILD-MANIFEST.json` und SHA256-Pruefsumme. Der GitHub-Release-Tag ist bewusst beweglich, **nicht** das offizielle Stable-Tag.
|
||||
- `gen1-main`: bisheriger Entwicklungs-Snapshot (historisch). Solange die Stable-Freigabe aussteht, ist er KEIN Produktionsdownload. Nach Freigabe veroeffentlicht der neue Update-Kanal; der alte Publisher wird durch `Flavour.Release` automatisch inaktiv.
|
||||
|
||||
Build-Identitaet: Git-Commit-SHA im Manifest und fuer Betreiber sichtbare Build-ID, nicht in der oeffentlichen Viewer-Version. API-/DB-Schemata und Protokollkompatibilitaet koennen separat versioniert werden. Bricht ein Update die Kompatibilitaet, muss die Ein-Generationen-Politik neu bewertet werden, statt einen stillen Bruch unter 0.9.4.0 auszuliefern.
|
||||
|
||||
## Freigaberegeln
|
||||
|
||||
1. `main` muss fuer die freizugebende SHA eine vollstaendige gruene NexVerse CI, Linux-x64, Windows-x64 und ARM64 Build-/Boot-CI besitzen.
|
||||
2. Echte Staging-/Viewer-/Hypergrid-/Inventar-/Mesh-/MariaDB-/FSAssets-/Backup-/Rollback-Abnahmen sind mit konkreten Nachweisen in `doc/release-acceptance/GEN1_0.9.4.0.md` dokumentiert.
|
||||
3. `OpenSim/Framework/VersionInfo.cs` wird **erst mit Freigabe** von `Flavour.Dev` auf `Flavour.Release` umgestellt. Die Nummer 0.9.4.0 bleibt unveraendert.
|
||||
4. Der manuelle Workflow `g1-stable-0940.yml` muss vom Betreiber explizit mit dem aktuellen HEAD aufgerufen werden. Das Freigabeprotokoll benennt den getesteten Code-Commit; zwischen diesem und dem finalen HEAD darf ausschliesslich das Freigabeprotokoll geaendert worden sein. Er prueft das Freigabeprotokoll, die CI-Checks, .NET10-Build und Paketinhalt und erstellt nur bei noch nicht vorhandenem `v0.9.4.0`-Tag das Stable-Release.
|
||||
5. Der Update-Publisher `g1-updates.yml` wird nach erfolgreicher CI nur aktiv, wenn Stable-Tag und `Flavour.Release` existieren und die Repository-Variable `OGL_GEN1_UPDATES_APPROVED=true` gesetzt ist.
|
||||
6. Updates duerfen keine INIs, Datenbanken, Assets oder Betreiber-Secrets im ZIP enthalten; vor Installation Backup, Rollback-Moeglichkeit und Kompatibilitaet pruefen.
|
||||
|
||||
**GitHub-Einstellungen nachziehen:** `main` mit Ruleset/Branch-Protection absichern; fuer `v0.9.4.0` ein unveraenderliches Tag-RuleSet setzen; `generation1-stable` als Environment mit Required Reviewers konfigurieren; die beiden Freigabevariablen erst nach Abnahme setzen. Ohne diese Einstellungen bleibt der Workflow durch sein Freigabeprotokoll und den Quellcode-Check gesperrt.
|
||||
|
||||
## Betrieb
|
||||
|
||||
Operatoren sollen Update-ZIPs anhand `BUILD-MANIFEST.json.source_commit`, SHA256 und Changelog identifizieren. Den letzten funktionierenden Commit und den Datenstand fuer Rollback notieren. Eine Versionnummer allein zeigt nicht den installierten Patchstand. Keine automatischen unkontrollierten Updates der live laufenden ROBUST-/Simulator-Prozesse.
|
||||
@@ -0,0 +1,41 @@
|
||||
# OpenGenesisLINK Generation 1 (0.9.4.0) - Stable-Freigabeprotokoll
|
||||
|
||||
**Dieses Dokument ist keine Testbestaetigung.** Solange ein Feld PENDING ist, darf kein offizielles Stable-Release entstehen.
|
||||
|
||||
Status: PENDING
|
||||
Gepruefter Code-Commit: PENDING
|
||||
Pruefdatum: PENDING
|
||||
Freigabe durch: PENDING
|
||||
|
||||
## Echte End-to-End-Abnahme (Staging, kein CI-Smoke-Test)
|
||||
|
||||
Vor einer Freigabe die folgenden Zeilen erst nach nachweislich bestandenem Test auf PASS setzen. Testumgebung, Viewer-Version, Datenbankstand, verwendete Testbenutzer und relevante Protokolle in diesem Dokument ergaenzen.
|
||||
|
||||
Login_Inventar: PENDING
|
||||
Teleport_Hypergrid: PENDING
|
||||
Mesh_Asset: PENDING
|
||||
LSL_Animesh: PENDING
|
||||
Feed_Datenloeschung: PENDING
|
||||
DB_Backup_Restore_Rollback: PENDING
|
||||
|
||||
## Testumfang und Nachweise
|
||||
|
||||
- Login und Logout mit Firestorm und, soweit freigegeben, TrixieStorm; neue und vorhandene Avatare.
|
||||
- Teleports intern und ueber Hypergrid, Rueckreise, Inventarberechtigungen sowie Offline-Zustellung.
|
||||
- Mesh-/PBR-Upload einschliesslich LOD, J2C-/Textur-/Asset-Abruf, Rez, Relog und OAR/IAR.
|
||||
- LSL/OSSL und Animesh: Objektanimation, Rotations-/Bindpose-Faelle, keine Datenverluste.
|
||||
- MariaDB und FSAssets mit realistischer Staging-Kopie; Feed-Opt-in, OAuth, Loeschung, Retention und konkurrierende Schreibzugriffe. Falls Feed nicht abgenommen ist: in allen Release-Defaults deaktivieren und gesondert dokumentieren.
|
||||
- Backup und Wiederherstellung von Datenbank, Konfiguration, Inventar und Assets; nachweislich getesteter Rueckweg auf zuvor eingesetzte G1-Version.
|
||||
- Pruefung aller Netzwerk-/TLS-/World-API-/NV$-Berechtigungen; Sicherheitsgrenzen und optionale Dienste.
|
||||
- Native .NET-10-Laufzeiten fuer Linux x64, Linux ARM64 und Windows x64 aus CI; Paketinhalt und SHA256 verifizieren.
|
||||
|
||||
## Protokoll
|
||||
|
||||
Testumgebung: PENDING
|
||||
Viewer und Version: PENDING
|
||||
MariaDB/FSAssets: PENDING
|
||||
Nachweise/Log-Referenzen: PENDING
|
||||
Bekannte Einschraenkungen: PENDING
|
||||
Rollback-Test und Ergebnis: PENDING
|
||||
|
||||
**Freigabeprozess:** Erst nach dokumentierter Abnahme dieses Dokument in einem PR auf den exakt geprueften Commitstand aktualisieren. Das Abnahmeprotokoll referenziert den letzten tatsaechlich im Staging getesteten CODE-Commit. Danach duerfen bis zum finalen HEAD ausschliesslich Aenderungen an diesem Abnahmeprotokoll erfolgen, damit die Staging-Abnahme weiterhin fuer exakt denselben Code gilt. Der finale HEAD muss erneut alle CI-Gates bestehen. Der Freigabe-Workflow prueft die Commit-Abstammung und den vollstaendigen Diff; der Selbstverweis auf den SHA des Abnahmedokuments wird bewusst vermieden. Die Repository-Variable `OGL_GEN1_STABLE_RELEASE_APPROVED=true` ist eine zweite, explizite Betreiberfreigabe; GitHub Environment `generation1-stable` sollte zusaetzlich erforderliche Reviewer haben.
|
||||
@@ -0,0 +1,46 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Fail-closed source contracts for the Generation 1 immutable stable and rolling updates."""
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
read = lambda p: (ROOT / p).read_text(encoding="utf-8")
|
||||
version = read("OpenSim/Framework/VersionInfo.cs")
|
||||
stable = read(".github/workflows/g1-stable-0940.yml")
|
||||
updates = read(".github/workflows/g1-updates.yml")
|
||||
legacy = read(".github/workflows/publish-gen1-main-snapshot.yml")
|
||||
packager = read("tools/release/ogl_gen1_snapshot_zip.py")
|
||||
acceptance = read("doc/release-acceptance/GEN1_0.9.4.0.md")
|
||||
policy = read("doc/OpenGenesisLINK/GEN1_STABLE_UPDATE_POLICY.md")
|
||||
|
||||
assert 'VersionNumber = "0.9.4.0"' in version
|
||||
assert 'VERSION_FLAVOUR = Flavour.Dev;' in version or 'VERSION_FLAVOUR = Flavour.Release;' in version
|
||||
for marker in (
|
||||
"workflow_dispatch:", "OGL_GEN1_STABLE_RELEASE_APPROVED",
|
||||
"environment: generation1-stable", "source_sha:",
|
||||
"Gepruefter Code-Commit:", "git merge-base --is-ancestor",
|
||||
"git diff --name-only", "Status: APPROVED",
|
||||
"v0.9.4.0", "gh release create v0.9.4.0",
|
||||
"generation1-stable", "version", "checks.json",
|
||||
):
|
||||
assert marker in stable, marker
|
||||
for forbidden in ("gh release delete", "gh release edit", "git/refs/tags/v0.9.4.0"):
|
||||
assert forbidden not in stable, forbidden
|
||||
for marker in (
|
||||
'workflows: ["NexVerse CI"]', "OGL_GEN1_UPDATES_APPROVED",
|
||||
"generation1-updates", 'tag="gen1-updates"',
|
||||
"gh release edit", "gh release upload", "git merge-base --is-ancestor",
|
||||
"NexVerse CI", "v0.9.4.0", ".NET 10 Windows x64 build",
|
||||
):
|
||||
assert marker in updates, marker
|
||||
assert "gh release delete" not in updates
|
||||
assert 'tag="gen1-main"' in legacy
|
||||
assert "Flavour.Dev" in legacy
|
||||
assert "generation1-stable" in packager and "generation1-updates" in packager
|
||||
assert 'Flavour.Release;' in packager and 'net10.0' in packager
|
||||
assert "stable_release" in packager and "testzip()" in packager
|
||||
assert "Status: PENDING" in acceptance or "Status: APPROVED" in acceptance
|
||||
for marker in ("Login_Inventar:", "Teleport_Hypergrid:", "Mesh_Asset:",
|
||||
"LSL_Animesh:", "Feed_Datenloeschung:", "DB_Backup_Restore_Rollback:"):
|
||||
assert marker in acceptance, marker
|
||||
assert "0.9.4.0" in policy and "gen1-updates" in policy
|
||||
print("Generation 1 Stable / Updates release channel contracts PASS")
|
||||
@@ -21,7 +21,25 @@ def allowed(path):
|
||||
and name not in ("secrets.json", "appsettings.production.json")
|
||||
and not (name.endswith(".ini") and not name.endswith(".ini.example")))
|
||||
|
||||
def create_zip(bin_dir, out, sha, repo):
|
||||
def create_zip(bin_dir, out, sha, repo, channel="development-main-snapshot"):
|
||||
channels = ("development-main-snapshot", "generation1-stable", "generation1-updates")
|
||||
if channel not in channels:
|
||||
raise ValueError("Unknown release channel")
|
||||
approved = channel != "development-main-snapshot"
|
||||
if approved:
|
||||
version_info = (repo / "OpenSim/Framework/VersionInfo.cs").read_text(encoding="utf-8")
|
||||
if 'VersionNumber = "0.9.4.0"' not in version_info or "VERSION_FLAVOUR = Flavour.Release;" not in version_info:
|
||||
raise ValueError("Stable and update packages require approved Generation 1 Release source")
|
||||
for host in ("OpenSim", "Robust"):
|
||||
config = bin_dir / (host + ".runtimeconfig.json")
|
||||
if not config.is_file():
|
||||
raise ValueError("Missing .NET 10 runtime config: " + config.name)
|
||||
options = json.loads(config.read_text(encoding="utf-8-sig"))["runtimeOptions"]
|
||||
framework = options.get("framework", {})
|
||||
if (options.get("tfm") != "net10.0" or
|
||||
framework.get("name") != "Microsoft.NETCore.App" or
|
||||
not str(framework.get("version", "")).startswith("10.")):
|
||||
raise ValueError("Invalid .NET 10 runtime config: " + config.name)
|
||||
if len(sha) != 40 or any(c not in "0123456789abcdef" for c in sha):
|
||||
raise ValueError("Expected verified full Git commit SHA")
|
||||
if not bin_dir.is_dir() or any(not (bin_dir / x).is_file() for x in NEEDED):
|
||||
@@ -54,13 +72,16 @@ def create_zip(bin_dir, out, sha, repo):
|
||||
z.write(file, f"{PREFIX}/{dirname}/{file.relative_to(folder).as_posix()}")
|
||||
z.writestr(f"{PREFIX}/BUILD-MANIFEST.json", json.dumps({
|
||||
"product": "OpenGenesisLINK Generation 1",
|
||||
"channel": "development-main-snapshot", "stable_release": False,
|
||||
"channel": channel, "stable_release": approved,
|
||||
"version": "0.9.4.0",
|
||||
"source_commit": sha, "runtime": ".NET 10",
|
||||
"platform": "linux-x64", "built_files": count
|
||||
}, indent=2) + "\n")
|
||||
z.writestr(f"{PREFIX}/INSTALL.txt",
|
||||
"Development build; NOT an approved Stable release.\n"
|
||||
"Do not overwrite production INI files or databases.\n"
|
||||
("Generation 1 (0.9.4.0) official Stable.\\n" if channel == "generation1-stable"
|
||||
else "Generation 1 (0.9.4.0) approved rolling update.\\n" if approved
|
||||
else "Development build; NOT an approved Stable release.\\n")
|
||||
+ "Do not overwrite production INI files or databases.\n"
|
||||
"Back up local configuration and persistent assets first.\n"
|
||||
"Verify BUILD-MANIFEST.json and the published SHA256 checksum.\n")
|
||||
with zipfile.ZipFile(out) as z:
|
||||
@@ -90,6 +111,28 @@ def selftest():
|
||||
assert f"{PREFIX}/bin/system.pass" not in names
|
||||
assert f"{PREFIX}/bin/access.log" not in names
|
||||
assert json.loads(z.read(f"{PREFIX}/BUILD-MANIFEST.json"))["source_commit"] == "a" * 40
|
||||
# Fail closed unless the source and binaries are explicitly release-ready.
|
||||
for channel in ("generation1-stable", "generation1-updates"):
|
||||
try:
|
||||
create_zip(bin_dir, root / (channel + ".zip"), "a" * 40, root, channel)
|
||||
raise AssertionError("Release package accepted development source")
|
||||
except (FileNotFoundError, ValueError):
|
||||
pass
|
||||
version_info = root / "OpenSim/Framework/VersionInfo.cs"
|
||||
version_info.parent.mkdir(parents=True)
|
||||
version_info.write_text('VersionNumber = "0.9.4.0";\nVERSION_FLAVOUR = Flavour.Release;\n')
|
||||
for host in ("OpenSim", "Robust"):
|
||||
(bin_dir / (host + ".runtimeconfig.json")).write_text(json.dumps({
|
||||
"runtimeOptions": {"tfm": "net10.0",
|
||||
"framework": {"name": "Microsoft.NETCore.App", "version": "10.0.0"}}
|
||||
}))
|
||||
for channel in ("generation1-stable", "generation1-updates"):
|
||||
package = root / (channel + ".zip")
|
||||
create_zip(bin_dir, package, "a" * 40, root, channel)
|
||||
with zipfile.ZipFile(package) as built:
|
||||
manifest = json.loads(built.read(f"{PREFIX}/BUILD-MANIFEST.json"))
|
||||
assert manifest["channel"] == channel and manifest["stable_release"]
|
||||
assert manifest["runtime"] == ".NET 10"
|
||||
print("Generation 1 ZIP packaging self-test PASS")
|
||||
|
||||
if __name__ == "__main__":
|
||||
@@ -98,10 +141,11 @@ if __name__ == "__main__":
|
||||
parser.add_argument("--bin-dir", type=Path)
|
||||
parser.add_argument("--output", type=Path)
|
||||
parser.add_argument("--sha")
|
||||
parser.add_argument("--channel", choices=("development-main-snapshot", "generation1-stable", "generation1-updates"), default="development-main-snapshot")
|
||||
args = parser.parse_args()
|
||||
if args.self_test:
|
||||
selftest()
|
||||
else:
|
||||
if args.bin_dir is None or args.output is None or args.sha is None:
|
||||
parser.error("Provide --bin-dir, --output and --sha")
|
||||
create_zip(args.bin_dir, args.output, args.sha, Path(__file__).resolve().parents[2])
|
||||
create_zip(args.bin_dir, args.output, args.sha, Path(__file__).resolve().parents[2], args.channel)
|
||||
Reference in new issue
Block a user