-
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
[kbn/journeys] fix hanging on telemetry call & improve logging #175194
Merged
dmlemeshko
merged 17 commits into
elastic:main
from
dmlemeshko:perf-journeys/fix-hanging-on-telemetry-calls
Jan 22, 2024
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
12baf1b
add logs in after hook
dmlemeshko 6db47af
update script
dmlemeshko 1b1d2da
update logs
dmlemeshko a136c1d
test fix
dmlemeshko 0f32649
force stop kibana
dmlemeshko e72b17c
revert back script changes
dmlemeshko 17b461f
Merge remote-tracking branch 'upstream/main' into debug-login-journey
dmlemeshko 7895c47
update waiting for dashboard list view
dmlemeshko e770753
remove extra logging
dmlemeshko f64a4e3
clean console logs
dmlemeshko 49172aa
remove commented code
dmlemeshko 0a0e48a
more logs cleanup
dmlemeshko f51ee2b
Merge remote-tracking branch 'upstream/main' into debug-login-journey
dmlemeshko 0fcc3ba
revert SIGKILL for kibana poc
dmlemeshko beb0b99
fix logging events to console
dmlemeshko 7dc16c3
restore log
dmlemeshko 562bc2f
fix deprecation warnings
dmlemeshko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,10 @@ export class KibanaPage { | |
}); | ||
} | ||
|
||
async waitForListViewTable() { | ||
await this.page.waitForSelector(subj('table-is-ready'), { state: 'visible' }); | ||
} | ||
Comment on lines
+39
to
+41
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Moving to page object and updating tests for consistency. |
||
|
||
async backToDashboardListing() { | ||
await this.page.click(subj('breadcrumb dashboardListingBreadcrumb first')); | ||
} | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ export const journey = new Journey({ | |
], | ||
maxDuration: '10m', | ||
}, | ||
}).step('Login', async ({ page, kbnUrl, inputDelays, auth, kibanaPage }) => { | ||
}).step('Login', async ({ page, kbnUrl, inputDelays, auth }) => { | ||
await page.goto(kbnUrl.get()); | ||
if (auth.isCloud()) { | ||
await page.click(subj('loginCard-basic/cloud-basic'), { delay: inputDelays.MOUSE_CLICK }); | ||
|
@@ -42,6 +42,7 @@ export const journey = new Journey({ | |
await page.type(subj('loginUsername'), auth.getUsername(), { delay: inputDelays.TYPING }); | ||
await page.type(subj('loginPassword'), auth.getPassword(), { delay: inputDelays.TYPING }); | ||
await page.click(subj('loginSubmit'), { delay: inputDelays.MOUSE_CLICK }); | ||
|
||
await kibanaPage.waitForHeader(); | ||
await page.waitForSelector(subj('userMenuButton'), { | ||
state: 'attached', | ||
}); | ||
Comment on lines
+45
to
+47
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Improve waiting for home page after login |
||
}); |
This file contains 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
This file contains 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
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a few changes to make it work correctly:
telemetryTrackerCount
was always returning1
since it was misplaced before observables.requestFailure$
since we don't have to do anything in case of Telemetry request failure event. We fully rely on kibana service to make things the right way.