Skip to content

tests: runtime_shell: Add timeouts for runtime shell testing - #12386

Open
cosmo0920 wants to merge 1 commit into
masterfrom
cosmo0920-add-testing-timeouts-on-runtime_shell
Open

tests: runtime_shell: Add timeouts for runtime shell testing#12386
cosmo0920 wants to merge 1 commit into
masterfrom
cosmo0920-add-testing-timeouts-on-runtime_shell

Conversation

@cosmo0920

@cosmo0920 cosmo0920 commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Added a 90-second CTest timeout to all Unix and Windows runtime_shell tests in CMakeLists.txt.

Verified:

  • ctest --test-dir build -R '^in_syslog_.*_expect\.sh$' --output-on-failure: all 5 passed.
  • Deliberately stalled UDP test: cancelled after 90.10 seconds; child process stopped.
  • Windows registration checked; execution unavailable on this Linux host.

Integration/Valgrind runs were not applicable to this CMake-only timeout change.


Enter [N/A] in the box, if an item is not applicable to your change.

Testing
Before we can approve your change; please submit the following in a comment:

  • Example configuration file for the change
  • Debug log output from testing the change
  • Attached Valgrind output that shows no leaks or memory corruption was found

If this is a change to packaging of containers or native binaries then please confirm it works for all targets.

  • Run local packaging test showing all targets (including any new ones) build.
  • Set ok-package-test label to test for all targets (requires maintainer to do).

Documentation

  • Documentation required for this feature

Backporting

  • Backport to latest stable release.

Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.

Summary by CodeRabbit

  • Tests
    • Added a 90-second timeout to each Windows PowerShell and Unix shell runtime test to prevent tests from running indefinitely.

Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 8, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-08T05:12:19.265957Z 30ab4f9 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cosmo0920 cosmo0920 added this to the Fluent Bit v5.1.3 milestone Sep 8, 2026
@coderabbitai

coderabbitai Bot commented Sep 8, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: ef82ab38-2b86-4b39-a9a7-e4c22c7a65b4

📥 Commits

Reviewing files that changed from the base of the PR and between f784724 and 30ab4f9.

📒 Files selected for processing (1)
  • tests/runtime_shell/CMakeLists.txt

Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

The runtime shell CTest entries now use a 90-second timeout for both Windows PowerShell and Unix shell test loops.

Changes

Runtime shell test timeouts

Layer / File(s) Summary
Configure runtime shell test limits
tests/runtime_shell/CMakeLists.txt
The Windows PowerShell and Unix shell test entries now set TIMEOUT 90.

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

Merge Risk: ⚪ Minimal · up to 30ab4

Runtime shell tests now fail after 90 seconds rather than hanging indefinitely. Both platform registration loops are covered, with no remaining merge-readiness risk identified.

Suggested reviewers: leonardo-albertovich

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: adding timeouts to runtime shell tests.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cosmo0920-add-testing-timeouts-on-runtime_shell

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

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 30ab4f9234

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

set_tests_properties(${script} PROPERTIES
ENVIRONMENT "${RUNTIME_SHELL_ENVIRONMENT}"
LABELS "runtime_shell"
TIMEOUT 90

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Allow the Go-building test more than 90 seconds

On Linux, this blanket timeout also covers proxy_logs_expect.sh, which invokes go_plugins/build_test_plugins.sh; on a cold host that script may download and extract Go 1.25.4, verify CGO with a build, download modules, and build the plugin before running Fluent Bit. Per ctest --help-property TIMEOUT, the limit applies to the entire test process and kills it once exceeded, so a valid first run on a slower machine or network can now fail at 90 seconds. Assign this test a longer per-test timeout or move its provisioning outside the timed test.

Useful? React with 👍 / 👎.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant