This repository was archived by the owner on May 13, 2026. It is now read-only.
ci(tauri-release): always dump + upload smoke-test app logs - #796
Merged
Conversation
The dmg-smoke step launches the bundled app and probes /api/health, but only `cat $RUNNER_TEMP/app.log` on failure. Successful runs silently discarded the app's startup output, which made debugging flaky cases require a flaky case to have already happened. Replace the failure-only dump with a `if: always()` step that prints both log sources: - `$RUNNER_TEMP/app.log` — process stdout/stderr (panics, early prints before the tracing subscriber is composed) - `~/Library/Logs/com.folddb.app/FoldDB.log` — tauri-plugin-log output written by the pre-Builder file logger added in #777 Also upload both as a `dmg-smoke-app-logs` artifact (14-day retention) so they survive past the workflow's log-truncation window and can be downloaded for offline triage. Both logs are small (a few KB at most for a 30s smoke run) so the extra artifact is cheap. `if-no-files-found: ignore` keeps the step quiet when one or both logs are absent (e.g. early process exit before either logger initialises).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Tauri `dmg-smoke` step launches the bundled app and probes `/api/health`, but only prints `$RUNNER_TEMP/app.log` on failure. Successful runs discarded the app's startup output entirely, which made debugging anything (flaky behavior, slow startup, deprecation warnings) require a failure to have already happened.
This PR makes the smoke logs always visible:
Why both logs
The two streams capture different startup phases. stdout has panics + the few seconds before the tracing subscriber is wired; the file logger has structured `tracing::*` output once `init_pre_builder_file_logger()` runs. Triaging a startup failure usually needs the union — printing only stdout was leaving the structured-trace half on the floor.
Test plan
🤖 Generated with Claude Code