This commit is contained in:
@@ -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 }}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user