Skip to content

Commit a0c23fb

Browse files
authored
Update windows_concurrency_test.yml
1 parent 51cd7f3 commit a0c23fb

1 file changed

Lines changed: 41 additions & 46 deletions

File tree

Lines changed: 41 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "🚀 Windows - Omnipkg Quantum Multiverse Warp (CI - No Redis)"
1+
name: "🚀 Windows - Omnipkg Demo Test (CI - No Redis)"
22

33
on:
44
push:
@@ -15,29 +15,30 @@ jobs:
1515
- name: Checkout repository
1616
uses: actions/checkout@v4
1717

18-
- name: Set up Primary Python (3.11)
18+
- name: Set up Python (3.11)
1919
uses: actions/setup-python@v5
2020
with:
2121
python-version: '3.11'
2222

23-
# STEP REMOVED: No longer installing or starting Redis.
24-
25-
- name: Install dependencies (without Redis)
23+
- name: Install omnipkg
2624
run: |
2725
python -m pip install --upgrade pip
28-
# 'redis' package removed from installation
29-
pip install -e . rich
26+
pip install -e .
27+
shell: pwsh
28+
29+
- name: Install rich via omnipkg
30+
run: |
31+
omnipkg install rich
3032
shell: pwsh
3133

32-
- name: Configure omnipkg for non-interactive use (without Redis)
34+
- name: Configure omnipkg for non-interactive use
3335
run: |
3436
$configDir = "$HOME\.config\omnipkg"
35-
New-Item -ItemType Directory -Force -Path $configDir
37+
New-Item -ItemType Directory -Force -Path $configDir | Out-Null
3638
37-
# Configuration no longer includes the redis_url
3839
$config = @{
39-
"interactive" = $false;
40-
"auto_confirm" = $true
40+
interactive = $false
41+
auto_confirm = $true
4142
}
4243
4344
$config | ConvertTo-Json -Depth 4 | Out-File -FilePath "$configDir\config.json" -Encoding utf8
@@ -46,16 +47,18 @@ jobs:
4647
Get-Content "$configDir\config.json"
4748
shell: pwsh
4849

49-
- name: Adopt All Required Python Versions
50+
- name: Adopt Python Versions (Pre-warm)
5051
run: |
5152
Write-Host "--- Adopting Python Versions ---"
52-
omnipkg python adopt 3.9 -ErrorAction SilentlyContinue
53-
omnipkg python adopt 3.10 -ErrorAction SilentlyContinue
53+
# Suppress errors by redirecting stderr to null
54+
omnipkg python adopt 3.9 2>$null
55+
omnipkg python adopt 3.10 2>$null
56+
Write-Host "✅ Python versions adopted (or already present)"
5457
shell: pwsh
5558

56-
- name: Reset and Prime Environments to Build Knowledge Bases
59+
- name: Prime Python Environments (Trigger KB Rebuild)
5760
run: |
58-
Write-Host "--- Resetting and Priming Python environments ---"
61+
Write-Host "--- Priming Python environments ---"
5962
6063
$PYTHON_INFO = omnipkg info python 2>&1
6164
$PYTHON_39_EXE = ($PYTHON_INFO -split '\r?\n' | Select-String -Pattern 'Python 3.9:' | ForEach-Object { ($_ -split '\s+')[3] })
@@ -75,12 +78,12 @@ jobs:
7578
& $PYTHON_311_EXE -m omnipkg.cli reset --yes 2>$null
7679
}
7780
78-
Write-Host "✅ All Python environments have been primed."
81+
Write-Host "✅ All Python environments primed."
7982
shell: pwsh
8083

81-
- name: Pre-Install Test Packages
84+
- name: Pre-Install Test Packages (Cache Warm)
8285
run: |
83-
Write-Host "--- Pre-installing exact rich versions ---"
86+
Write-Host "--- Pre-installing test packages ---"
8487
8588
$PYTHON_INFO = omnipkg info python 2>&1
8689
$PYTHON_39_EXE = ($PYTHON_INFO -split '\r?\n' | Select-String -Pattern 'Python 3.9:' | ForEach-Object { ($_ -split '\s+')[3] })
@@ -99,34 +102,26 @@ jobs:
99102
Write-Host "Installing rich==13.7.1 for Python 3.11..."
100103
& $PYTHON_311_EXE -m omnipkg.cli install rich==13.7.1 2>$null
101104
}
105+
106+
Write-Host "✅ Test packages pre-installed."
102107
shell: pwsh
103108

104-
- name: Verify Correct State (Bubbles are Present)
109+
- name: Run Demo (Option 8 - Quantum Multiverse)
105110
run: |
106-
Write-Host "--- Verifying Package State ---"
111+
Write-Host "--- Running Omnipkg Demo: Quantum Multiverse ---"
112+
Write-Host ""
107113
108-
$PYTHON_INFO = omnipkg info python 2>&1
109-
$PYTHON_39_EXE = ($PYTHON_INFO -split '\r?\n' | Select-String -Pattern 'Python 3.9:' | ForEach-Object { ($_ -split '\s+')[3] })
110-
$PYTHON_310_EXE = ($PYTHON_INFO -split '\r?\n' | Select-String -Pattern 'Python 3.10:' | ForEach-Object { ($_ -split '\s+')[3] })
111-
$PYTHON_311_EXE = ($PYTHON_INFO -split '\r?\n' | Select-String -Pattern 'Python 3.11:' | ForEach-Object { ($_ -split '\s+')[3] })
114+
# Run demo with option 8 (non-interactive via stdin)
115+
echo "8" | omnipkg demo
112116
113-
function Check-PackageBubble {
114-
param(
115-
[string]$python_exe,
116-
[string]$version,
117-
[string]$python_ver
118-
)
119-
if ($python_exe) {
120-
Write-Host "Verifying state for Python $python_ver..."
121-
$rich_info = & $python_exe -m omnipkg.cli info rich 2>&1
122-
if ($rich_info | Select-String -Pattern "$version \(bubble\)" -Quiet) {
123-
Write-Host "✅ Correct: rich $version is available in a bubble."
124-
return 0
125-
} else {
126-
Write-Host "❌ FAILED: rich $version was not found in a bubble."
127-
Write-Host "Rich info output:"
128-
$rich_info
129-
return 1
130-
}
131-
} else {
132-
Write-Host "⚠️ Python $python_ver executable not found, skipping verifica
117+
$exitCode = $LASTEXITCODE
118+
Write-Host ""
119+
Write-Host "Demo exit code: $exitCode"
120+
121+
if ($exitCode -eq 0) {
122+
Write-Host "✅ Demo completed successfully! (Should be fast ~500ms)"
123+
} else {
124+
Write-Host "❌ Demo failed with exit code: $exitCode"
125+
exit $exitCode
126+
}
127+
shell: pwsh

0 commit comments

Comments
 (0)