Skip to content

Backport(v1.16) test_in_udp: add timeout for message_length_limit test (#4676) - #4789

Merged
daipom merged 1 commit into
v1.16from
backport-pr4676
Jan 29, 2025
Merged

Backport(v1.16) test_in_udp: add timeout for message_length_limit test (#4676)#4789
daipom merged 1 commit into
v1.16from
backport-pr4676

Conversation

@kenhys

@kenhys kenhys commented Jan 28, 2025

Copy link
Copy Markdown
Contributor

Which issue(s) this PR fixes:
Fixes #

What this PR does / why we need it:

On Windows, message_length_limit test always take 300s for execution.

UdpInputTest:
  test:  configure w/o parse section:			.: (0.002351)
  test: configure[ipv4]:				.: (0.002723)
  test: configure[ipv6]:				.: (0.002602)
  test: message size with format[none]:			.: (1.029781)
  test: message size with format[json]:			.: (1.113799)
  test: message size with format[regexp]:		.: (1.110006)
  test: message_length_limit:				.: (300.538596)

The 300 sec comes from

DEFAULT_TIMEOUT = 300
, and it always times out in Windows.

This patch set a short timeout to reduce test execution time on Windows.

Backported from #4676

Docs Changes:

Release Note:

#4676)

On Windows, `message_length_limit` test always take 300s for execution.

```
UdpInputTest:
  test:  configure w/o parse section:			.: (0.002351)
  test: configure[ipv4]:				.: (0.002723)
  test: configure[ipv6]:				.: (0.002602)
  test: message size with format[none]:			.: (1.029781)
  test: message size with format[json]:			.: (1.113799)
  test: message size with format[regexp]:		.: (1.110006)
  test: message_length_limit:				.: (300.538596)
```

The 300 sec comes from https://github.com/fluent/fluentd/blob/a2b935ae2bc4b4d43e5adddbec01092ea4228b9e/lib/fluent/test/driver/base.rb#L36,
and it always times out in Windows.

This patch set a short timeout to reduce test execution time on Windows.

Signed-off-by: Watson <fujita@clear-code.com>
Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
@kenhys kenhys added this to the v1.16.7 milestone Jan 28, 2025
@kenhys

kenhys commented Jan 28, 2025

Copy link
Copy Markdown
Contributor Author

Backport with:

git switch -c backport-pr4676 --track origin/v1.16
git cherry-pick 38d464a28da5fb9e08a99501c0da6cbc7847a357

@kenhys
kenhys requested a review from daipom January 28, 2025 09:04

@daipom daipom left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

@daipom
daipom merged commit 5c08ab6 into v1.16 Jan 29, 2025
@daipom
daipom deleted the backport-pr4676 branch January 29, 2025 02:08
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.

3 participants