Skip to content

Commit 3d18f31

Browse files
authored
Update multiverse_test.yml
1 parent 9d16168 commit 3d18f31

1 file changed

Lines changed: 6 additions & 57 deletions

File tree

.github/workflows/multiverse_test.yml

Lines changed: 6 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
name: "🌠 LIVE - Omnipkg Quantum Multiverse Warp"
23

34
on:
@@ -35,7 +36,6 @@ jobs:
3536
python -m pip install --upgrade pip
3637
# Use -e . for editable install
3738
pip install -e . redis rich==13.7.1
38-
3939
- name: Configure omnipkg for non-interactive use
4040
run: |
4141
python - << 'EOF'
@@ -45,22 +45,18 @@ jobs:
4545
from pathlib import Path
4646
import os
4747
import sysconfig
48-
4948
try:
5049
site_packages_path = site.getsitepackages()[0]
5150
except (IndexError, AttributeError):
5251
site_packages_path = sysconfig.get_paths()['purelib']
53-
5452
# Get the correct site-packages path to set for the config, which is critical for omnipkg
5553
# The logic below ensures it points to the root environment's site-packages where interpreters are managed
5654
omnipkg_base_path = Path(sys.executable).parent.parent / 'lib' / f'python{sys.version_info.major}.{sys.version_info.minor}' / 'site-packages'
57-
5855
project_root = Path(os.environ['GITHUB_WORKSPACE'])
5956
builder_script = project_root / 'omnipkg' / 'package_meta_builder.py'
6057
if not builder_script.exists():
6158
print(f"Error: {builder_script} does not exist")
6259
sys.exit(1)
63-
6460
config_data = {
6561
# Use the derived path instead of generic site.getsitepackages()
6662
'site_packages_path': str(omnipkg_base_path),
@@ -75,7 +71,6 @@ jobs:
7571
'auto_cleanup': True,
7672
'cleanup_threshold_days': 30
7773
}
78-
7974
config_dir = Path.home() / '.config' / 'omnipkg'
8075
config_dir.mkdir(parents=True, exist_ok=True)
8176
config_path = config_dir / 'config.json'
@@ -89,7 +84,6 @@ jobs:
8984
print(f"Error writing config: {e}")
9085
sys.exit(1)
9186
EOF
92-
9387
- name: Adopt Required Python Versions
9488
run: |
9589
echo "--- Adopting Python Versions for Multiverse Test ---"
@@ -118,49 +112,6 @@ jobs:
118112
done
119113
120114
echo "All required Python versions have been adopted!"
121-
122-
- name: Pre-Install Packages into All Interpreters
123-
run: |
124-
echo "--- Pre-installing exact rich versions for the Multiverse Demo to ensure cache hits ---"
125-
126-
# 1. Install rich==13.4.2 into Python 3.9 environment
127-
echo "Installing rich 13.4.2 for Python 3.9..."
128-
if timeout 300 omnipkg swap python 3.9; then
129-
echo "✅ Successfully swapped to Python 3.9"
130-
if timeout 300 omnipkg install rich==13.4.2; then
131-
echo "✅ rich==13.4.2 installed in Python 3.9"
132-
else
133-
echo "❌ Failed to install rich==13.4.2 in Python 3.9"
134-
exit 1
135-
fi
136-
else
137-
echo "❌ Failed to swap to Python 3.9"
138-
exit 1
139-
fi
140-
141-
# 2. Install rich==13.6.0 into Python 3.10 environment
142-
echo "Installing rich 13.6.0 for Python 3.10..."
143-
if timeout 300 omnipkg swap python 3.10; then
144-
echo "✅ Successfully swapped to Python 3.10"
145-
if timeout 300 omnipkg install rich==13.6.0; then
146-
echo "✅ rich==13.6.0 installed in Python 3.10"
147-
else
148-
echo "❌ Failed to install rich==13.6.0 in Python 3.10"
149-
exit 1
150-
fi
151-
else
152-
echo "❌ Failed to swap to Python 3.10"
153-
exit 1
154-
fi
155-
156-
# 3. Swap back to the starting Python 3.11 environment
157-
if timeout 300 omnipkg swap python 3.11; then
158-
echo "✅ Swapped back to Python 3.11 (native host)"
159-
else
160-
echo "❌ Failed to swap back to Python 3.11"
161-
exit 1
162-
fi
163-
164115
- name: Run Quantum Multiverse Demo and Verify
165116
id: run_multiverse_demo
166117
run: |
@@ -193,17 +144,17 @@ jobs:
193144
fi
194145
195146
# Core Success Check 3: All 3 Python versions swapped context successfully
196-
PYTHON_39_SWITCH=$(grep -c "Context switched to Python 3.9" /tmp/omnipkg-artifacts/multiverse_demo_output.txt || echo "0")
197-
PYTHON_310_SWITCH=$(grep -c "Context switched to Python 3.10" /tmp/omnipkg-artifacts/multiverse_demo_output.txt || echo "0")
198-
PYTHON_311_SWITCH=$(grep -c "Context switched to Python 3.11" /tmp/omnipkg-artifacts/multiverse_demo_output.txt || echo "0")
147+
PYTHON_39_SWITCH=$(grep -c "Context switched to Python 3.9" /tmp/omnipkg-artifacts/multiverse_demo_output.txt)
148+
PYTHON_310_SWITCH=$(grep -c "Context switched to Python 3.10" /tmp/omnipkg-artifacts/multiverse_demo_output.txt)
149+
PYTHON_311_SWITCH=$(grep -c "Context switched to Python 3.11" /tmp/omnipkg-artifacts/multiverse_demo_output.txt)
199150
200151
if [ $PYTHON_39_SWITCH -ge 1 ] && [ $PYTHON_310_SWITCH -ge 1 ] && [ $PYTHON_311_SWITCH -ge 1 ]; then
201152
echo "✅ Core functionality PASSED! All 3 Python versions successfully swapped context (3.9: ${PYTHON_39_SWITCH}, 3.10: ${PYTHON_310_SWITCH}, 3.11: ${PYTHON_311_SWITCH})."
202153
echo "demo_outcome=success" >> $GITHUB_OUTPUT
203154
204155
# --- Artifact Summary ---
205156
echo "## Quantum Multiverse Demo Summary" >> $GITHUB_STEP_SUMMARY
206-
grep -E "DIMENSION TEST COMPLETE|Total Concurrent Runtime" /tmp/omnipkg-artifacts/multiverse_demo_output.txt >> $GITHUB_STEP_SUMMARY || echo "Summary patterns not found" >> $GITHUB_STEP_SUMMARY
157+
grep -E "DIMENSION TEST COMPLETE|Total Concurrent Runtime" /tmp/omnipkg-artifacts/multiverse_demo_output.txt >> $GITHUB_STEP_SUMMARY
207158
echo '```bash' >> $GITHUB_STEP_SUMMARY
208159
tail -n 20 /tmp/omnipkg-artifacts/multiverse_demo_output.txt >> $GITHUB_STEP_SUMMARY
209160
echo '```' >> $GITHUB_STEP_SUMMARY
@@ -213,11 +164,9 @@ jobs:
213164
echo " - Python 3.9 switches: $PYTHON_39_SWITCH"
214165
echo " - Python 3.10 switches: $PYTHON_310_SWITCH"
215166
echo " - Python 3.11 switches: $PYTHON_311_SWITCH"
216-
echo ""
217-
echo "--- Full output for debugging ---"
218-
cat /tmp/omnipkg-artifacts/multiverse_demo_output.txt
219167
exit 1
220168
fi
169+
# The unnecessary 'Verify Multiverse Success Indicators' step has been removed.
221170

222171
- name: Archive Multiverse Demo Output
223172
if: always()

0 commit comments

Comments
 (0)