Skip to content

ci: capture thread stacks when tests stall - #604

Merged
Seb-GRAF merged 1 commit into
mainfrom
ci/capture-stalled-tests
Nov 12, 2026
Merged

Seb-GRAF merged 1 commit into
mainfrom
ci/capture-stalled-tests

Conversation

@Seb-GRAF

@Seb-GRAF Seb-GRAF commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

The latest main CI run, 43212032624, stalled during tests on both attempts and reached the 20-minute timeout without a thread stack. This blocked the requested stable release.

Changes

Capture thread stacks from SwiftPM and its direct test subprocess after three minutes of testing. Keep the original test exit status and job timeout, and upload samples with the existing test-results artifact.

The test suite passed on this branch before sampling was needed. The intermittent hang has not been diagnosed; this change provides evidence if it returns. No speculative app changes are included.

Testing

  • GitHub Test, Build release, Docs images, Package and CodeRabbit checks passed on 89385e4.
  • The test-results artifact contains Swift Testing results and no stack samples.
  • Embedded Python syntax, git diff --check and scripts/check.sh --quick passed.
  • No app or configuration changes. Screen rendering remains in progress.

Merging

Merge after the remaining checks finish. The diagnostic remains available for future stalls; main CI must pass and publish its beta before the stable release is dispatched.

GPT-6 Astra via the Codex harness in T3 Code.

@Seb-GRAF
Seb-GRAF requested a review from M4n0x as a code owner November 12, 2026 12:43
@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The CI test step now runs swift test --skip-build --xunit-output test-results/results.xml through a Python subprocess wrapper. The wrapper adds process diagnostics after a 180-second timeout and exits with the test process’s return code.

Changes: CI Test Diagnostics

Layer / File(s) Summary
Test step timeout diagnostics
.github/workflows/ci.yml
The test step runs the Swift test command through Python. If the wait exceeds 180 seconds, the wrapper captures process information, samples the test process and its direct children, then waits for completion and exits with the test process’s return code.

Possibly related PRs

  • Seb-GRAF/StableBar#486: Adds the test-results artifact behavior used by this workflow’s Swift test command and diagnostic output.
Merge Risk: Minimal · up to 89385

This change only adds CI diagnostics for the test stall and does not change the app. No merge-blocking risk was found. The PR is meant to diagnose the hang, not fix it, so the author plans to keep the branch open until the cause is addressed.

Architecture risk: Low · up to 89385

The changed surface does not map to a changed system, dependency edge, entrypoint, or external dependency.

Changed systems: None identified.

Architecture concerns
No architecture-level concerns identified.

Review details

Before / after behavior

  • observed — Modified behavior in .github/workflows/ci.yml: The test step replaces its direct swift test invocation with a Python subprocess wrapper. It waits up to 180 seconds; if that expires, it captures process listings, samples the test process and its direct children, waits for the test process to finish, and exits with its return code.
Pre-merge checks: Passed 3

Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description covers the problem, the changes, and testing, and it ends with the model and harness line. It links the failing run and explains the diagnostic intent. The Problem section does not con…
Full details: Description check

Explanation

The description covers the problem, the changes, and testing, and it ends with the model and harness line. It links the failing run and explains the diagnostic intent. The Problem section does not contain a closing reference such as "Fixes #" and the description does not say whether it closes PR #604 or an issue. The Merging section states the merge method only loosely. It does not say whether the author expects a merge commit, a rebase merge, or a squash, and the template asks for that choice because semantic-release reads each commit. The Testing section reports results and notes that screen rendering is still in progress, so the testing coverage is adequate. The description also mentions that the diagnostic is to be merged after checks finish, while the PR objectives say to keep the branch open until the stall is fixed. This conflict affects the Merging guidance. Overall the description is mostly complete.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 3e2a1aa and 89385e4.

Files selected for processing: 1

  • .github/workflows/ci.yml

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@Seb-GRAF Seb-GRAF changed the title ci: diagnose the test hang blocking stable release ci: capture thread stacks when tests stall Nov 12, 2026
@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Before and after

main at 3e2a1aa → this pull request at 89385e4 · 158 screens drawn in one CI job · 0 changed

158 unchanged screens

docs/essentials-clock-settings-dark, docs/essentials-clock-settings-light, docs/essentials-dark, docs/essentials-light, docs/essentials-settings-dark, docs/essentials-settings-light, docs/hero-dark, docs/hero-light, docs/popups-dark, docs/popups-light, docs/settings-dark, docs/settings-light, docs/themes-dark, docs/themes-light, scenes/accessibility-guide-dark, scenes/accessibility-guide-light, scenes/app-menu-popup-dark, scenes/app-menu-popup-light, scenes/apple-menu-settings-dark, scenes/apple-menu-settings-light, scenes/bottom-bar-popup-dark, scenes/bottom-bar-popup-light, scenes/chat-popup-dark, scenes/chat-popup-light, scenes/crowded-edit-bar-dark, scenes/crowded-edit-bar-light, scenes/dock-badges-bar-dark, scenes/dock-badges-bar-light, scenes/edit-bar-wide-group-dark, scenes/edit-bar-wide-group-light, scenes/essentials-clock-popup-dark, scenes/essentials-clock-popup-light, scenes/gruvbox-bar-dark, scenes/gruvbox-bar-light, scenes/horizontal-list-popup-dark, scenes/horizontal-list-popup-light, scenes/increase-contrast-bar-dark, scenes/increase-contrast-bar-light, scenes/increase-contrast-popup-dark, scenes/increase-contrast-popup-light, scenes/input-source-popup-dark, scenes/input-source-popup-light, scenes/notch-flare-bar-dark, scenes/notch-flare-bar-light, scenes/privacy-both-bar-dark, scenes/privacy-both-bar-light, scenes/privacy-hide-when-idle-bar-dark, scenes/privacy-hide-when-idle-bar-light, scenes/privacy-idle-bar-dark, scenes/privacy-idle-bar-light, scenes/privacy-microphone-bar-dark, scenes/privacy-microphone-bar-light, scenes/privacy-settings-dark, scenes/privacy-settings-light, scenes/reduce-transparency-bar-dark, scenes/reduce-transparency-bar-light, scenes/reduce-transparency-glass-bar-dark, scenes/reduce-transparency-glass-bar-light, scenes/settings-bar-dark, scenes/settings-bar-light, scenes/settings-bar-placement-bottom-dark, scenes/settings-bar-placement-bottom-light, scenes/settings-bar-placement-dark, scenes/settings-bar-placement-light, scenes/settings-crashes-dark, scenes/settings-crashes-light, scenes/settings-feedback-dark, scenes/settings-feedback-light, scenes/settings-general-dark, scenes/settings-general-light, scenes/settings-general-macos15-dark, scenes/settings-general-macos15-light, scenes/settings-general-move-dark, scenes/settings-general-move-failed-dark, scenes/settings-general-move-failed-light, scenes/settings-general-move-light, scenes/settings-general-move-moving-dark, scenes/settings-general-move-moving-light, scenes/settings-general-move-replace-dark, scenes/settings-general-move-replace-light, scenes/settings-general-setup-open-dark, scenes/settings-general-setup-open-light, scenes/settings-general-spaces-dark, scenes/settings-general-spaces-light, scenes/settings-help-dark, scenes/settings-help-light, scenes/settings-help-starred-dark, scenes/settings-help-starred-light, scenes/settings-package-dark, scenes/settings-package-light, scenes/settings-package-widget-dark, scenes/settings-package-widget-light, scenes/settings-theme-dark, scenes/settings-theme-light, scenes/settings-uninstall-dark, scenes/settings-uninstall-failed-dark, scenes/settings-uninstall-failed-light, scenes/settings-uninstall-light, scenes/settings-widget-backgrounds-dark, scenes/settings-widget-backgrounds-light, scenes/settings-workspace-hidden-dark, scenes/settings-workspace-hidden-light, scenes/setup-look-below-menu-bar-dark, scenes/setup-look-dark, scenes/setup-look-no-notch-dark, scenes/setup-move-existing-dark, scenes/setup-move-failed-dark, scenes/setup-move-ready-dark, scenes/setup-move-replace-dark, scenes/setup-omniwm-connection-dark, scenes/setup-permissions-dark, scenes/setup-permissions-spaces-dark, scenes/setup-permissions-spaces-ready-dark, scenes/setup-placement-bottom-dark, scenes/setup-placement-dark, scenes/setup-touches-dark, scenes/setup-touches-macos15-dark, scenes/setup-touches-spaces-dark, scenes/setup-try-dark, scenes/setup-yabai-connection-dark, scenes/slider-end-stop-popup-dark, scenes/slider-end-stop-popup-light, scenes/stablebar-widget-bar-dark, scenes/stablebar-widget-bar-light, scenes/stablebar-widget-settings-dark, scenes/stablebar-widget-settings-light, scenes/starter-bar-dark, scenes/starter-bar-light, scenes/starter-edit-bar-dark, scenes/starter-edit-bar-light, scenes/system-monitor-memory-bar-dark, scenes/system-monitor-memory-bar-light, scenes/system-monitor-shows-settings-dark, scenes/system-monitor-shows-settings-light, scenes/update-popup-dark, scenes/update-popup-light, scenes/update-popup-star-github-cli-dark, scenes/update-popup-star-github-cli-light, scenes/update-popup-star-thanks-dark, scenes/update-popup-star-thanks-light, scenes/workspace-hidden-apps-bar-dark, scenes/workspace-hidden-apps-bar-light, site/404-desktop-dark, site/404-desktop, site/404-phone-dark, site/404-phone, site/index-desktop-dark, site/index-desktop, site/index-phone-dark, site/index-phone, site/privacy-desktop-dark, site/privacy-desktop, site/privacy-phone-dark, site/privacy-phone, site/terms-desktop-dark, site/terms-desktop, site/terms-phone-dark, site/terms-phone

Visual review: 158 screens, none changed.

@Seb-GRAF
Seb-GRAF merged commit b2cbc44 into main Nov 12, 2026
18 checks passed
@Seb-GRAF
Seb-GRAF deleted the ci/capture-stalled-tests branch November 12, 2026 13:09
@stablebar-releases

Copy link
Copy Markdown

🎉 This PR is included in version 0.14.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant