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: runtime: in_ne: add test for in_node_exporter_metrics #8043

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nokute78
Copy link
Collaborator

This patch is to add test code for in_node_exporter_metrics and pseudo procfs and sysfs files.


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:

  • [N/A] 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.

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

Documentation

  • [N/A] Documentation required for this feature

Backporting

  • [N/A] Backport to latest stable release.

Debug/Valgrind output

$ valgrind --leak-check=full bin/flb-rt-in_node_exporter_metrics 
==125756== Memcheck, a memory error detector
==125756== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==125756== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==125756== Command: bin/flb-rt-in_node_exporter_metrics
==125756== 
Test cpu...                                     [ OK ]
Test meminfo...                                 [ OK ]
Test diskstats...                               [ OK ]
Test uname...                                   [ OK ]
Test stat...                                    [ OK ]
Test time...                                    [ OK ]
Test loadavg...                                 [ OK ]
Test vmstat...                                  [ OK ]
Test netdev...                                  [ OK ]
Test filefd...                                  [ OK ]
SUCCESS: All unit tests have passed.
==125756== 
==125756== HEAP SUMMARY:
==125756==     in use at exit: 0 bytes in 0 blocks
==125756==   total heap usage: 28,680 allocs, 28,680 frees, 12,661,824 bytes allocated
==125756== 
==125756== All heap blocks were freed -- no leaks are possible
==125756== 
==125756== For lists of detected and suppressed errors, rerun with: -s
==125756== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

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.

@nokute78 nokute78 temporarily deployed to pr October 15, 2023 01:48 — with GitHub Actions Inactive
@nokute78 nokute78 temporarily deployed to pr October 15, 2023 01:48 — with GitHub Actions Inactive
@nokute78 nokute78 temporarily deployed to pr October 15, 2023 01:49 — with GitHub Actions Inactive
@nokute78 nokute78 temporarily deployed to pr October 15, 2023 02:13 — with GitHub Actions Inactive
@nokute78
Copy link
Collaborator Author

nokute78 commented Nov 3, 2023

Windows CI failed, but it is not related this PR.
https://ci.appveyor.com/project/fluent/fluent-bit-2e87g/builds/48279470/job/hjgo14ys7wqjwjb5#L4226

31/42 Test #31: flb-it-log .......................***Failed   20.23 sec
Test cache_basic_timeout...                     
------------------------
[ FAILED ]
  log.c:16: Check (*interval >= timeout - 1) && *interval <= timeout... failed
    interval error. got=3 expect=4-5
  log.c:92: Check ret == 0... failed
    update_and_check_interval for TEST_RECORD_01 failed. i=9
  log.c:16: Check (*interval >= timeout - 1) && *interval <= timeout... failed
    interval error. got=3 expect=4-5
  log.c:98: Check ret == 0... failed
    update_and_check_interval for TEST_RECORD_02 failed. i=9
Test cache_one_slot...                          
[ OK ]
FAILED: 1 of 2 unit tests has failed.
      Start 32: flb-it-log_event_decoder
32/42 Test #32: flb-it-log_event_decoder .........   Passed    0.08 sec
      Start 33: flb-it-log_event_enco

Copy link
Contributor

github-actions bot commented Feb 1, 2024

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the Stale label Feb 1, 2024
Signed-off-by: Takahiro Yamashita <[email protected]>
@nokute78
Copy link
Collaborator Author

nokute78 commented Feb 2, 2024

Fix conflict.

Copy link
Contributor

github-actions bot commented May 3, 2024

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the Stale label May 3, 2024
@github-actions github-actions bot removed the Stale label Aug 16, 2024
Copy link
Contributor

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the Stale label Dec 14, 2024
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