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

Debounce input reload on autodiscover #35645

Merged
merged 15 commits into from
Jun 20, 2023

Commits on Jun 19, 2023

  1. Debounce input reload on Kubernetes autodiscover

    The Kubernetes autodiscover feature now incorporates a debounce logic
    when reloading inputs. By default, it waits for at least 1 second
    before invoking the Reload method. In case of an error, it introduces
    a 10-second delay before retrying.
    
    The channel used for test synchronisation has been removed and tests
    now use (assert/require).Eventually.
    
    When Autodiscover calls `cfgfile.NewRunnerList` to instantiate a
    RunnerList, it now specifies a different logger name, enabling more
    granular log filtering.
    
    Debug logs now provide information about the reasons for invoking
    Reload.
    
    Certain tests that perform sequential actions now utilise `require`
    instead of `assert` to maintain a consistent state avoid cascading
    failures.
    
    Tests that required updates now leverage `require.Eventually` instead
    of `wait`, providing additional information on failure causes.
    
    Documentation for `cfgfile.RunnerList` has been improved to enhance
    clarity.
    belimawr committed Jun 19, 2023
    Configuration menu
    Copy the full SHA
    a602e0b View commit details
    Browse the repository at this point in the history
  2. Make linter happy

    belimawr committed Jun 19, 2023
    Configuration menu
    Copy the full SHA
    f1507d3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b1a541d View commit details
    Browse the repository at this point in the history
  4. PR improvements

    belimawr committed Jun 19, 2023
    Configuration menu
    Copy the full SHA
    e127631 View commit details
    Browse the repository at this point in the history
  5. Increase test timeout

    This tests seems flaky on CI, increasing the timeout might help.
    belimawr committed Jun 19, 2023
    Configuration menu
    Copy the full SHA
    f842cb4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    135223e View commit details
    Browse the repository at this point in the history
  7. Debug logs for failing test

    belimawr committed Jun 19, 2023
    Configuration menu
    Copy the full SHA
    b1ff90b View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    1370448 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    992cc1c View commit details
    Browse the repository at this point in the history
  10. improve test debug

    belimawr committed Jun 19, 2023
    Configuration menu
    Copy the full SHA
    ed78bb7 View commit details
    Browse the repository at this point in the history
  11. fix autodiscover

    belimawr committed Jun 19, 2023
    Configuration menu
    Copy the full SHA
    15983ac View commit details
    Browse the repository at this point in the history
  12. pr improvements

    belimawr committed Jun 19, 2023
    Configuration menu
    Copy the full SHA
    dd830a9 View commit details
    Browse the repository at this point in the history
  13. add tests to ensure the changes actually work

    Test the case when handle(Start|Stop) is called multiple times
    and on at least on the last one they return false.
    belimawr committed Jun 19, 2023
    Configuration menu
    Copy the full SHA
    9b85c3b View commit details
    Browse the repository at this point in the history
  14. PR improvements

    belimawr committed Jun 19, 2023
    Configuration menu
    Copy the full SHA
    e67e829 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2023

  1. speed up tests

    belimawr committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    87e8eee View commit details
    Browse the repository at this point in the history