Skip to content

fix(skills): remove timeout from run_unittests_python.sh - #51

Merged
pedjaradenkovic merged 1 commit into
mainfrom
fix/remove-python-unittest-timeout
Nov 17, 2026
Merged

pedjaradenkovic merged 1 commit into
mainfrom
fix/remove-python-unittest-timeout

Conversation

@NejcS

@NejcS NejcS commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

The Python unit test script no longer stops the tests after 120 seconds.

Why
The script used the timeout command. macOS does not have this command, so the script failed with exit code 127 before any test ran.

What happens now
The script runs the tests with no time limit of its own. The renderer still limits the run with the test-script-timeout setting. This is the same as the script in the codeplain repo.

Summary by CodeRabbit

  • Changes
    • Python unit test runs are no longer stopped after 120 seconds. Their output and exit status continue to be reported.

@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Python unittest script runs discovery without a 120-second timeout. It retains output capture and exit-status handling.

Changes: Python unittest execution

Layer / File(s) Summary
Run unittest discovery without a timeout
forge/skills/implement-unit-testing-script/assets/run_unittests_python.sh
The script removes the 120-second timeout wrapper and the timeout-specific error check and message. Output capture and exit-status handling remain.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Suggested reviewers: zanjonke

Merge Risk: Minimal · up to eb33d

The script now runs unit tests without its own 120-second limit, which fixes the failure on macOS where timeout is unavailable. The renderer still applies the configured test timeout. No concrete merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the change: removing the timeout from run_unittests_python.sh. The raw summary confirms the script no longer runs the unittest discovery command under a 120-second timeout and no longe…
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.
Full details: Title check

Explanation

The title names the change: removing the timeout from run_unittests_python.sh. The raw summary confirms the script no longer runs the unittest discovery command under a 120-second timeout and no longer checks for exit code 124. The objectives state the same aim, which is to fix exit code 127 on macOS caused by the timeout command. The title is specific and matches the main change.

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

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 94c27fbd-278a-4406-aacd-f3007a273c10
Commits

Reviewing files that changed from the base of the PR and between d6c5962 and eb33d5e.

Files selected for processing: 1

  • forge/skills/implement-unit-testing-script/assets/run_unittests_python.sh

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

@pedjaradenkovic pedjaradenkovic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@pedjaradenkovic
pedjaradenkovic merged commit c981a7a into main Nov 17, 2026
9 checks passed
@pedjaradenkovic
pedjaradenkovic deleted the fix/remove-python-unittest-timeout branch November 17, 2026 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants