********************** Windows PowerShell transcript start Start time: 20260923124250 Username: DESKTOP-DJ40RL2\Administrator RunAs User: DESKTOP-DJ40RL2\Administrator Configuration Name: Machine: DESKTOP-DJ40RL2 (Microsoft Windows NT 10.0.28000.0) Host Application: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File C:\Users\Administrator\.gemini\antigravity\scratch\ClassNotify\tests\test_rc4_deploy_rollback.ps1 Process ID: 16924 PSVersion: 5.1.28000.2952 PSEdition: Desktop PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.28000.2952 BuildVersion: 10.0.28000.2952 CLRVersion: 4.0.30319.42000 WSManStackVersion: 3.0 PSRemotingProtocolVersion: 2.3 SerializationVersion: 1.1.0.1 ********************** ========================================================================== ClassNotify P1 RC2 鈥?Gate RC-4A & RC-4B: Deploy & Rollback Suite Reviewer Mandate: ChatGPT Architecture Reviewer (RC-4 Approved Plan) Target RCArtifactId: P1-RC2-20260922-151442-F2C14966 Deploy Evidence ID: EVIDENCE-RC4-DEPLOY-20260923-124249 Rollback Evidence ID: EVIDENCE-RC4-ROLLBACK-20260923-124249 ========================================================================== >>> [Pre-Flight] System & Environment Verification... [Timeline/Deploy] [PRE-FLIGHT] START - Verifying baseline environment, artifacts and database version [PASS] Pre-Flight 1: Local ClassNotifySetup.exe SHA256 matches baseline F2C14966E99B47A5A67436F7E4E1FB72A363FCB560BF19C07BDF23DEA5BDADD9 [PASS] Pre-Flight 2: Local Server Tarball SHA256 matches frozen RC2 baseline 85C4614404C846C4BEF49130FDC25FCB0846C943A2498454729E6B0DEBC5F31E [PASS] Pre-Flight 3: Tokyo PostgreSQL 16 verified with NO DRIFT (v16.15) [PASS] Pre-Flight 4: Service running in Session 0 (PID 3424), Client in Session 1 (PID 4156) [PASS] Pre-Flight 5: Teacher & Admin credentials authenticated successfully [PASS] Pre-Flight 6: Target Device dev_59e35e79 reports Online on Tokyo server [PASS] Pre-Flight 7: EF Migrations baseline verified (latest: 20260922130000_AddDeviceCommandDurationMs) [PASS] Pre-Flight 8: Current active release recorded: /var/www/classnotify/releases/20260923-123522-RC4A-85C46144 (PID 436391) [Timeline/Deploy] [PRE-FLIGHT] COMPLETE - All pre-flight checks satisfied >>> [RC-4A / Scenario A1] Fault Injection: Corrupted / Wrong Hash Fail-Closed Rejection... [Timeline/Deploy] [RC-4A-A1-FAULT-INJECTION] START - Uploading package with intentional hash mismatch ========================================================== ClassNotify Atomic Server Deployment: 20260923-124249-RC4A-BADHASH ========================================================== [1/6] Verifying release package SHA256 integrity... ERROR: release archive SHA256 mismatch! Expected SHA256: 0000000000000000000000000000000000000000000000000000000000000000 Actual SHA256: 85c4614404c846c4bef49130fdc25fcb0846c943a2498454729e6b0debc5f31e [PASS] RC-4A Scenario A1: Corrupted / Wrong Hash Fail-Closed Rejection ExitCode: 30 (Expected 30), DurationMs: 2977 (<= 30000), SymlinkPreserved: True, PIDPreserved: True [Timeline/Deploy] [RC-4A-A1-FAULT-INJECTION] PASS - Rejection verified in 2977 ms with ExitCode 30 >>> [RC-4A / Scenario A2] Real P1-RC2 Production Deployment... [Timeline/Deploy] [RC-4A-A2-DEPLOY] START - Uploading frozen P1-RC2 Server tarball to Tokyo VPS [PASS] RC-4A Scenario A2: Remote Tarball SHA256 matches frozen RC2 immutable manifest [Timeline/Deploy] [RC-4A-A2-DEPLOY] EXECUTING - Calling deploy_server.sh with ReleaseId 20260923-124249-RC4A-85C46144 ========================================================== ClassNotify Atomic Server Deployment: 20260923-124249-RC4A-85C46144 ========================================================== [1/6] Verifying release package SHA256 integrity... SHA256 Verified: 85c4614404c846c4bef49130fdc25fcb0846c943a2498454729e6b0debc5f31e [2/6] Extracting release package to /var/www/classnotify/releases/20260923-124249-RC4A-85C46144... [3/6] Recording previous active release... Previous release: /var/www/classnotify/releases/20260923-123522-RC4A-85C46144 [4/6] Atomically updating current symlink... [5/6] Restarting classnotify.service and executing Health Gate... Health Gate check (attempt 1/10)... Local endpoint waiting: '' Health Gate check (attempt 2/10)... Health Gate PASSED: Both Local and Public endpoints reporting Healthy and Connected. [6/6] Deployment Successful! Pruning old releases... Pruning old release: 20260922-105830-EA0D8B4B Pruning old release: 20260921-212617-BB2293AB ========================================================== DEPLOY SUCCESS RELEASE_ID=20260923-124249-RC4A-85C46144 PREVIOUS_RELEASE_ID=20260923-123522-RC4A-85C46144 CURRENT_SYMLINK=/var/www/classnotify/releases/20260923-124249-RC4A-85C46144 DEPLOYMENT_DOWNTIME_MS=4435 ========================================================== [PASS] RC-4A Scenario A2: Public Web SPA returns HTTP 200 HTTP: 200 [PASS] RC-4A Scenario A2: Device reconnected Online on Tokyo server ReconnectMs: 359 (<= 60000) [PASS] RC-4A Scenario A2: EF Migrations schema untouched (before == after) Sending smoke notification 'RC4-POST-DEPLOY'... Smoke notification sent: ID = msg_1790138671356_c8b1 [PASS] RC-4A Scenario A2: Smoke notification RC4-POST-DEPLOY received by client MessageId: msg_1790138671356_c8b1 [PASS] RC-4A Scenario A2: Safe Deployment Acceptance Summary ExitCode: 0, DowntimeMs: 4435, PublicRecoveryMs: 266, DeviceReconnectMs: 359, TotalMs: 8472 [Timeline/Deploy] [RC-4A-A2-DEPLOY] PASS - Safe deployment succeeded in 8472 ms ********************** Windows PowerShell transcript end End time: 20260923124433 **********************