Skip to content

Windows test in_tail: test_emit_with_read_lines_limit randomely fails (AppVeyor CI) #3166

@kenhys

Description

@kenhys

Check CONTRIBUTING guideline first and here is the list to help us investigate the problem.

Describe the bug

test_emit_with_read_lines_limit rin test/plugin/test_in_tail.rb andomely fails.

Here is the link to the log.

https://ci.appveyor.com/project/fluent/fluentd/builds/36204482/job/n4efx2ws29i2k0pc#L601

To Reproduce

Run bundle exec rake test on AppVeyor.

ref. https://github.com/fluent/fluentd/blob/master/appveyor.yml#L16

Expected behavior

Run bundle exec rake test on AppVeyor always suceeds.

Your Environment

  • Fluentd or td-agent version: fluentd --version or td-agent --version
  • fluentd 1.11.5
  • Operating system: cat /etc/os-release
  • Windows (AppVeyor CI)
  • Kernel version: uname -r

Your Configuration

N/A

Your Error Log

................................................................F
===============================================================================
Failure: test_emit_with_read_lines_limit[parse 1](TailInputTest::singleline)
C:/projects/fluentd/test/plugin/test_in_tail.rb:240:in `test_emit_with_read_lines_limit'
     237:       end
     238: 
     239:       events = d.events
  => 240:       assert_equal(true, events.length > 0)
     241:       assert_equal({"message" => msg}, events[0][2])
     242:       assert_equal({"message" => msg}, events[1][2])
     243:       assert num_events <= d.emit_count
<true> expected but was
<false>
diff:
? tru e
? fals 

Additional context

This issue is not bound to specific version of ruby.
Some may happen but some may not.

environment:
  matrix:
    - ruby_version: "26-x64"
    - ruby_version: "26"
    - ruby_version: "25-x64"
    - ruby_version: "25"
    - ruby_version: "24-x64"
    - ruby_version: "24"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions