[APM] Add log statements for flaky test#53775
Merged
sorenlouv merged 4 commits intoelastic:masterfrom Dec 24, 2019
Merged
Conversation
Contributor
💚 Build Succeeded
To update your PR or re-run it, just comment with: |
df40484 to
0faa8bf
Compare
Contributor
💚 Build Succeeded
To update your PR or re-run it, just comment with: |
Contributor
💚 Build Succeeded
To update your PR or re-run it, just comment with: |
Contributor
|
Pinging @elastic/apm-ui (Team:apm) |
Contributor
|
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)? |
dgieselaar
approved these changes
Dec 24, 2019
a22b5d6 to
6b2c986
Compare
Contributor
💚 Build SucceededTo update your PR or re-run it, just comment with: |
Contributor
Author
Good idea. Adding in 6b2c986 |
gmmorris
added a commit
to gmmorris/kibana
that referenced
this pull request
Dec 27, 2019
* 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)
jloleysens
added a commit
to jloleysens/kibana
that referenced
this pull request
Dec 30, 2019
…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) ...
jkelastic
pushed a commit
to jkelastic/kibana
that referenced
this pull request
Jan 8, 2020
* [APM] Add log statements for flaky test * Improve logging * Improve logging * Log full index on error
sorenlouv
added a commit
to sorenlouv/kibana
that referenced
this pull request
Feb 6, 2020
* [APM] Add log statements for flaky test * Improve logging * Improve logging * Log full index on error
sorenlouv
added a commit
that referenced
this pull request
Feb 11, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.infoso resorted toconsole.log. Would prefer not usingconsole.logthough.Important log lines indicating that the agent configuration was created:
Important log lines indicating that the agent configuration was found: