ci: preserve evidence when the Mac smoke launch stalls
Build / macos (push) Failing after 1m1s

This commit is contained in:
2026-09-09 23:51:29 +02:00
parent df23c84474
commit cda28cc6be
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -37,11 +37,13 @@ jobs:
- name: Smoke test local API - name: Smoke test local API
run: python3 scripts/smoke_test_api.py "$RUNNER_TEMP/DerivedData/Build/Products/Release/Meetingnotes.app" run: python3 scripts/smoke_test_api.py "$RUNNER_TEMP/DerivedData/Build/Products/Release/Meetingnotes.app"
- name: Package test build - name: Package test build
if: always()
run: | run: |
app_path="$RUNNER_TEMP/DerivedData/Build/Products/Release/Meetingnotes.app" app_path="$RUNNER_TEMP/DerivedData/Build/Products/Release/Meetingnotes.app"
ditto -c -k --sequesterRsrc --keepParent \ ditto -c -k --sequesterRsrc --keepParent \
"$app_path" "$RUNNER_TEMP/Meetingnotes-macOS.zip" "$app_path" "$RUNNER_TEMP/Meetingnotes-macOS.zip"
- name: Upload test build - name: Upload test build
if: always()
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: Meetingnotes-macOS-${{ github.sha }} name: Meetingnotes-macOS-${{ github.sha }}
+3
View File
@@ -40,6 +40,9 @@ with tempfile.TemporaryFile() as log:
raise RuntimeError("Recording status allowed an unauthenticated request") raise RuntimeError("Recording status allowed an unauthenticated request")
print("Local API readiness and authentication checks passed") print("Local API readiness and authentication checks passed")
except Exception: except Exception:
if process.poll() is None:
sample = subprocess.run(["sample", str(process.pid), "1", "1"], capture_output=True, text=True, timeout=10)
print(sample.stdout[:14000], file=sys.stderr)
log.seek(0) log.seek(0)
print(log.read().decode(errors="replace")[-8000:], file=sys.stderr) print(log.read().decode(errors="replace")[-8000:], file=sys.stderr)
raise raise