[9.3] (backport #14836) Use the checkin on state change mode in integration tests#14841
[9.3] (backport #14836) Use the checkin on state change mode in integration tests#14841mergify[bot] wants to merge 3 commits into
Conversation
* Integration tests now use on_state_change checkin by default. * Speed up polling interval in log level test. * Add test that persisted config sets the correct checkin mode. * Document why the checkin-on-state-change is hidden * Remove unnecessary comment * Include checkin-on-state-change only when enrolling * Only use new flag in versions that support it. (cherry picked from commit cb4ff55) # Conflicts: # internal/pkg/agent/configuration/fleet.go
|
Cherry-pick of cb4ff55 has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
TL;DR
Remediation
Investigation detailsRoot CauseThe run failed in the Evidence
Validation
Follow-up
What is this? | From workflow: PR Actions Detective Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. |
TL;DRBuildkite unit tests are failing due to a nil-pointer panic introduced in the new checkin-on-state-change enroll path. Initialize Remediation
Investigation detailsRoot CauseThis is a code bug. The PR adds checkin-mode wiring in enroll:
But on this backport branch, the default fleet config sets checkin to nil:
So Evidence
if checkinOnStateChange {
cfg.Checkin.Mode = configuration.FleetCheckinModeOnStateChange
}Verification
Follow-up
What is this? | From workflow: PR Buildkite Detective Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. |
Uses the checkin on state change mode in integration tests, to speed up tests that poll for the agent status to change in Fleet. This makes a few test significantly faster, like the log level related tests.
elastic-agent/testing/integration/ess/log_level_test.go
Lines 263 to 272 in 9430866
e
The impact on test execution overall is not that big because these tests weren't on the critical path. It's also bypassed in several of the upgrade tests until I backport this and come back and change the version guard.
This is an automatic backport of pull request #14836 done by Mergify.