-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[APM] Add log statements for flaky test #53775
Conversation
💚 Build Succeeded
To update your PR or re-run it, just comment with: |
df40484
to
0faa8bf
Compare
💚 Build Succeeded
To update your PR or re-run it, just comment with: |
💚 Build Succeeded
To update your PR or re-run it, just comment with: |
Pinging @elastic/apm-ui (Team:apm) |
Would it help to log the output in the failing test of: whether the index exists, and a search without filters (e.g. output all documents)? |
a22b5d6
to
6b2c986
Compare
💚 Build SucceededTo update your PR or re-run it, just comment with: |
Good idea. Adding in 6b2c986 |
* master: Possibility to filter when testing scripted fields (elastic#35379) (elastic#44220) Update maps telemetry mappings to account for recent updates (elastic#53803) [Maps] Only show legend when layer is visible (elastic#53781) remove use of experimental fs.promises api (elastic#53346) [APM] Add log statements for flaky test (elastic#53775)
…le-saved-objects * 'master' of github.com:elastic/kibana: (250 commits) Allow chromeless applications to render via non-/app routes (elastic#51527) Add server rendering service to enable standalone route rendering (elastic#52161) Possibility to filter when testing scripted fields (elastic#35379) (elastic#44220) Update maps telemetry mappings to account for recent updates (elastic#53803) [Maps] Only show legend when layer is visible (elastic#53781) remove use of experimental fs.promises api (elastic#53346) [APM] Add log statements for flaky test (elastic#53775) [APM] Transaction page throws unhandled exception if transactions doesn't have `http.request` (elastic#53760) Licensing plugin functional tests (elastic#53580) [Lens] Disable saving visualization until there are no changes to the document (elastic#52982) [Monitoring] Added safeguard for some EUI components (elastic#53318) [Vega] Shim new platform - cleanup vega_visualization dependencies (elastic#53605) Display changed field formats without requiring hard page refresh. (elastic#53746) Upgrade EUI to v17.3.1 (elastic#53655) [APM] Fix missing apm indicies (elastic#53541) Disable inspector for timelion (elastic#53747) Clean up search servie (elastic#53701) [Dashboard] Grid: removing double handler (elastic#53707) Remove SavedObjectRegistryProvider from codebase (elastic#53455) Move ui/courier into data shim plugin (elastic#52359) ...
* [APM] Add log statements for flaky test * Improve logging * Improve logging * Log full index on error
* [APM] Add log statements for flaky test * Improve logging * Improve logging * Log full index on error
I've been unable to reproduce a test failure that occasionally happens on CI. For details about the failure see #51764.
I have a hunch that a race condition is causing the test to fail. The test that is failing tries to verify that an existing agent config can be found when given the correct arguments. However, sometimes it is not found.
My hypothesis is the agent configuration is either not created correctly, or is created in parallel with the search request, causing the search request to be made before the config is created.
I was having problems seeing
log.debug
/log.info
so resorted toconsole.log
. Would prefer not usingconsole.log
though.Important log lines indicating that the agent configuration was created:
Important log lines indicating that the agent configuration was found: