Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Errno::EACCES which occurs while testing on Ruby 3.2 #3883

Merged
merged 8 commits into from
Sep 2, 2022

Commits on Sep 1, 2022

  1. Move lib/fluent/plugin/file_wrapper.rb to lib/fluent

    It doesn't use the name space `Fluent::Plugin`, and seems useful for
    global usage rather than only for plugin.
    
    Signed-off-by: Takuro Ashie <[email protected]>
    ashie committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    531824a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    77472a9 View commit details
    Browse the repository at this point in the history
  3. Use Fluent::FileWrapper.open instead of File.open to create test files

    Try to fix Errno::EACESS on deleting test files, because
    `FileUtils.rm_rf` of Ruby 3.2 doesn't ignore it.
    
    Signed-off-by: Takuro Ashie <[email protected]>
    ashie committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    2e4f3db View commit details
    Browse the repository at this point in the history
  4. FileWrapper::WindowsFile: Support encoding parameter

    Signed-off-by: Takuro Ashie <[email protected]>
    ashie committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    af7972a View commit details
    Browse the repository at this point in the history
  5. test_log: Suppress Errno::EACCES error on Ruby 3.2

    Signed-off-by: Takuro Ashie <[email protected]>
    ashie committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    4ddf423 View commit details
    Browse the repository at this point in the history
  6. test_supervisor: Suppress Errno::EACCES error on Ruby 3.2

    Signed-off-by: Takuro Ashie <[email protected]>
    ashie committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    c068a32 View commit details
    Browse the repository at this point in the history
  7. test_fluentd: Suppress Errno::EACCES error on Ruby 3.2

    Signed-off-by: Takuro Ashie <[email protected]>
    ashie committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    f70cb60 View commit details
    Browse the repository at this point in the history
  8. test_in_tail: Don't remove pos file before shutdown

    It can't removed on Windows and `Errno::EACCES` isn't ignored as of Ruby
    3.2.
    
    Signed-off-by: Takuro Ashie <[email protected]>
    ashie committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    9e34c1b View commit details
    Browse the repository at this point in the history