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

tests: internal: input_chunk: Use the different storage.path per tests #7762

Merged

Conversation

cosmo0920
Copy link
Contributor

This is because different storage.paths should be used per test. Sometimes this cause failure for retrieving the file contents to prepare the data for test cases:

Test input_chunk_exceed_limit...                [ FAILED ]
  input_chunk.c:91: Check getting output file content: ~/GitHub/fluent-bit/tests/internal/data/input_chunk/out/a_thousand_plus_one_bytes.out... failed
[2023/07/28 00:03:09] [error] [~/GitHub/fluent-bit/tests/internal/input_chunk.c:56 errno=0] Success

After splitting the storage.path per test case, this error won't happen.


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.

@cosmo0920 cosmo0920 temporarily deployed to pr July 27, 2023 15:20 — with GitHub Actions Inactive
@cosmo0920 cosmo0920 temporarily deployed to pr July 27, 2023 15:20 — with GitHub Actions Inactive
@cosmo0920 cosmo0920 force-pushed the cosmo0920-divide-storage-path-for-tests-on-input-chunk-test branch from 4e9bf89 to 0e97d2c Compare July 27, 2023 15:24
@cosmo0920 cosmo0920 temporarily deployed to pr July 27, 2023 15:24 — with GitHub Actions Inactive
@cosmo0920 cosmo0920 temporarily deployed to pr July 27, 2023 15:24 — with GitHub Actions Inactive
@cosmo0920 cosmo0920 force-pushed the cosmo0920-divide-storage-path-for-tests-on-input-chunk-test branch from 0e97d2c to 132f16e Compare July 27, 2023 15:37
@cosmo0920 cosmo0920 changed the title input_chunk: Use the different storage.path per tests tests: internal: input_chunk: Use the different storage.path per tests Jul 27, 2023
@cosmo0920 cosmo0920 temporarily deployed to pr July 27, 2023 15:38 — with GitHub Actions Inactive
@cosmo0920 cosmo0920 temporarily deployed to pr July 27, 2023 15:38 — with GitHub Actions Inactive
@cosmo0920 cosmo0920 force-pushed the cosmo0920-divide-storage-path-for-tests-on-input-chunk-test branch from 132f16e to 0ee0578 Compare July 28, 2023 03:44
@cosmo0920 cosmo0920 temporarily deployed to pr July 28, 2023 03:44 — with GitHub Actions Inactive
@cosmo0920 cosmo0920 temporarily deployed to pr July 28, 2023 03:44 — with GitHub Actions Inactive
This is because different storage.paths should be used per test.
Sometimes this cause failure for retrieving the file contents to prepare
the data for input_chunk test cases:

```log
Test input_chunk_exceed_limit...                [ FAILED ]
  input_chunk.c:91: Check getting output file content: ~/GitHub/fluent-bit/tests/internal/data/input_chunk/out/a_thousand_plus_one_bytes.out... failed
[2023/07/28 00:03:09] [error] [~/GitHub/fluent-bit/tests/internal/input_chunk.c:56 errno=0] Success
```

After splitting the storage.path per test case, this error won't happen.

Signed-off-by: Hiroshi Hatake <[email protected]>
@cosmo0920 cosmo0920 force-pushed the cosmo0920-divide-storage-path-for-tests-on-input-chunk-test branch from 0ee0578 to d5a4a6e Compare July 31, 2023 06:01
@cosmo0920 cosmo0920 temporarily deployed to pr July 31, 2023 06:01 — with GitHub Actions Inactive
@cosmo0920 cosmo0920 temporarily deployed to pr July 31, 2023 06:01 — with GitHub Actions Inactive
@cosmo0920 cosmo0920 temporarily deployed to pr July 31, 2023 06:01 — with GitHub Actions Inactive
@cosmo0920 cosmo0920 temporarily deployed to pr July 31, 2023 06:30 — with GitHub Actions Inactive
@edsiper edsiper merged commit adf20cc into master Sep 23, 2023
40 of 42 checks passed
@edsiper edsiper deleted the cosmo0920-divide-storage-path-for-tests-on-input-chunk-test branch September 23, 2023 18:11
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.

2 participants