Skip to content

Commit e69830a

Browse files
jamiepineclaude
andcommitted
ci(release): add Linux bundle-step watchdog + verbose cargo logging
The first v0.4.2 attempt hung inside tauri-action at the bundling stage on ubuntu-22.04 for ~28 min with no output. Same failure mode that drove the March 2026 removal (commit 103e98b). Without visibility we're guessing — probable causes include linuxdeploy/AppImage download stalls (despite --bundles deb,rpm), cargo link on a cold cache, or disk pressure during the final link step. - timeout-minutes: 30 on tauri-action for Ubuntu (45 min elsewhere) — fail fast with logs instead of waiting out the 6hr job timeout. - --verbose added to the Linux build args so cargo streams progress. - CARGO_TERM_VERBOSE + RUST_BACKTRACE=1 exported on tauri-action. - New 'Disk / environment snapshot' step dumps df/free/tool versions right before the tauri step so we can correlate with any later OOM/ENOSPC failure. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a756295 commit e69830a

1 file changed

Lines changed: 25 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
python-version: "3.12"
2828
backend: "pytorch"
2929
- platform: "ubuntu-22.04"
30-
args: "--target x86_64-unknown-linux-gnu --bundles deb,rpm"
30+
args: "--target x86_64-unknown-linux-gnu --bundles deb,rpm --verbose"
3131
python-version: "3.12"
3232
backend: "pytorch"
3333

@@ -153,6 +153,21 @@ jobs:
153153
p12-file-base64: ${{ secrets.APPLE_CERTIFICATE }}
154154
p12-password: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
155155

156+
- name: Disk / environment snapshot (pre-bundle debug)
157+
if: contains(matrix.platform, 'ubuntu') || contains(matrix.platform, 'namespace')
158+
run: |
159+
echo "=== df -h ==="
160+
df -h
161+
echo "=== free -h ==="
162+
free -h
163+
echo "=== Rust / Cargo ==="
164+
rustc --version
165+
cargo --version
166+
echo "=== Bun ==="
167+
bun --version
168+
echo "=== Tauri CLI ==="
169+
cd tauri && bun run tauri --version
170+
156171
- name: Extract release notes from CHANGELOG.md
157172
id: changelog
158173
shell: bash
@@ -176,7 +191,13 @@ jobs:
176191
echo "CHANGELOG_EOF"
177192
} >> "$GITHUB_OUTPUT"
178193
194+
# Linux hang watchdog: previous releases silently wedged inside tauri
195+
# bundling (possibly linuxdeploy/AppImage download, possibly cargo link).
196+
# Cap the step at 30 min so we get logs instead of waiting out the 6hr
197+
# job timeout. Other platforms historically complete in ~25 min, so 45
198+
# is comfortable.
179199
- uses: tauri-apps/tauri-action@v0.6
200+
timeout-minutes: ${{ (contains(matrix.platform, 'ubuntu') || contains(matrix.platform, 'namespace')) && 30 || 45 }}
180201
env:
181202
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
182203
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
@@ -188,6 +209,9 @@ jobs:
188209
APPLE_PROVIDER_SHORT_NAME: ${{ secrets.APPLE_PROVIDER_SHORT_NAME }}
189210
APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}
190211
APPLE_API_KEY: ${{ secrets.APPLE_API_KEY }}
212+
# Stream subprocess stdout/stderr so the hang is visible in logs.
213+
CARGO_TERM_VERBOSE: "true"
214+
RUST_BACKTRACE: "1"
191215
with:
192216
projectPath: tauri
193217
tagName: v__VERSION__

0 commit comments

Comments
 (0)