3535 python -m pip install --upgrade pip
3636 pip install -e . redis numpy==1.26.4 scipy==1.13.0
3737
38- - name : ⚙️ Configure omnipkg for non-interactive use
38+ - name : ⚙️ Configure omnipkg
3939 run : |
4040 python - << 'EOF'
4141 import sys
@@ -83,34 +83,46 @@ jobs:
8383 sys.exit(1)
8484 EOF
8585
86- - name : 🧪 Run the Demo - NumPy + SciPy Stress Test (C-Extensions)
86+ - name : 🧪 Debug Environment
87+ run : |
88+ echo "--- Debugging Environment ---"
89+ python --version
90+ pip show omnipkg redis numpy scipy
91+ redis-cli -h localhost -p 6379 ping
92+
93+ - name : 🧪 Run the Demo - NumPy + SciPy Stress Test
8794 id : run_demo
8895 run : |
8996 echo "--- Running Omnipkg Demo for NumPy + SciPy Stress Test (C-Extensions) ---"
9097 mkdir -p /tmp/omnipkg-artifacts
9198
92- timeout 600 bash -c 'echo "3" | omnipkg demo 2>&1 | tee /tmp/omnipkg-artifacts/numpy_scipy_demo_output.txt'
99+ set -o pipefail
100+ timeout 600 bash -c 'echo "3" | omnipkg demo 2>&1 | tee /tmp/omnipkg-artifacts/numpy_scipy_demo_output.txt; exit ${PIPESTATUS[0]}'
93101 DEMO_EXIT_CODE=$?
94102
103+ echo "DEBUG: omnipkg demo exit code: $DEMO_EXIT_CODE"
95104 echo "## NumPy + SciPy Demo Output" >> $GITHUB_STEP_SUMMARY
96105 echo '```' >> $GITHUB_STEP_SUMMARY
97106 cat /tmp/omnipkg-artifacts/numpy_scipy_demo_output.txt >> $GITHUB_STEP_SUMMARY
98107 echo '```' >> $GITHUB_STEP_SUMMARY
99108
100- if [ $DEMO_EXIT_CODE -eq 0 ]; then
101- echo "Demo completed successfully."
109+ if [ $DEMO_EXIT_CODE -eq 0 ] || \
110+ (grep -q "ALL TESTS PASSED!" /tmp/omnipkg-artifacts/numpy_scipy_demo_output.txt && \
111+ grep -q "OMNIPKG SURVIVED NUCLEAR TESTING" /tmp/omnipkg-artifacts/numpy_scipy_demo_output.txt && \
112+ grep -q "Demo completed successfully" /tmp/omnipkg-artifacts/numpy_scipy_demo_output.txt); then
113+ echo "Demo completed successfully (exit code $DEMO_EXIT_CODE, logs verified)."
102114 echo "demo_outcome=success" >> $GITHUB_OUTPUT
103115 if grep -q "numpy==1.26.4" /tmp/omnipkg-artifacts/numpy_scipy_demo_output.txt && \
104116 grep -q "scipy==1.13.0" /tmp/omnipkg-artifacts/numpy_scipy_demo_output.txt && \
117+ grep -q "numpy==1.24.3" /tmp/omnipkg-artifacts/numpy_scipy_demo_output.txt && \
118+ grep -q "scipy==1.16.1" /tmp/omnipkg-artifacts/numpy_scipy_demo_output.txt && \
105119 grep -q "ALL TESTS PASSED!" /tmp/omnipkg-artifacts/numpy_scipy_demo_output.txt && \
106- grep -q "NUMPY VERSION JUGGLING:" /tmp/omnipkg-artifacts/numpy_scipy_demo_output.txt && \
107- grep -q "SCIPY C-EXTENSION TEST:" /tmp/omnipkg-artifacts/numpy_scipy_demo_output.txt && \
108- grep -q "NUMPY + SCIPY VERSION MIXING:" /tmp/omnipkg-artifacts/numpy_scipy_demo_output.txt && \
109- grep -q "OMNIPKG SURVIVED NUCLEAR TESTING!" /tmp/omnipkg-artifacts/numpy_scipy_demo_output.txt; then
110- echo "NumPy + SciPy demo verified: numpy==1.26.4, scipy==1.13.0, all tests passed, and version mixing succeeded!"
120+ grep -q "OMNIPKG SURVIVED NUCLEAR TESTING" /tmp/omnipkg-artifacts/numpy_scipy_demo_output.txt && \
121+ grep -q "Cleanup complete" /tmp/omnipkg-artifacts/numpy_scipy_demo_output.txt; then
122+ echo "NumPy + SciPy demo verified: numpy==1.26.4, 1.24.3, scipy==1.13.0, 1.16.1, all tests passed, cleanup complete!"
111123 else
112124 echo "Error: Expected NumPy + SciPy demo output not found."
113- echo "Missing one of: 'numpy==1.26.4', 'scipy==1.13.0', 'ALL TESTS PASSED! ', 'NUMPY VERSION JUGGLING: ', 'SCIPY C-EXTENSION TEST: ', 'NUMPY + SCIPY VERSION MIXING: ', or 'OMNIPKG SURVIVED NUCLEAR TESTING! '"
125+ echo "Missing one of: 'numpy==1.26.4', 'scipy==1.13.0', 'numpy==1.24.3 ', 'scipy==1.16.1 ', 'ALL TESTS PASSED! ', 'OMNIPKG SURVIVED NUCLEAR TESTING ', or 'Cleanup complete '"
114126 cat /tmp/omnipkg-artifacts/numpy_scipy_demo_output.txt
115127 exit 1
116128 fi
@@ -132,8 +144,8 @@ jobs:
132144 cat /tmp/omnipkg-artifacts/status_output.txt >> $GITHUB_STEP_SUMMARY
133145 echo '```' >> $GITHUB_STEP_SUMMARY
134146
135- if grep -q "numpy-1.26.4 " /tmp/omnipkg-artifacts/status_output.txt && \
136- grep -q "scipy-1.13.0 " /tmp/omnipkg-artifacts/status_output.txt; then
147+ if grep -q "numpy-1.24.3 " /tmp/omnipkg-artifacts/status_output.txt && \
148+ grep -q "scipy-1.16.1 " /tmp/omnipkg-artifacts/status_output.txt; then
137149 echo "Status verified: NumPy and SciPy bubbles found!"
138150 else
139151 echo "Error: Expected NumPy and SciPy bubbles not found in status output."
0 commit comments